================
@@ -41,7 +61,16 @@ template <typename InputNode, typename ParamT, typename
InputMatcher,
typename... OutputMatchers>
void expectResolution(llvm::StringRef Code, ResolveFnT<ParamT> ResolveFn,
const InputMatcher &IM, const OutputMatchers &...OMS) {
+ llvm::SmallSet<unsigned int, 16> IgnoredDiagnostics{};
auto TU = tooling::buildASTFromCodeWithArgs(Code, {"-std=c++23"});
+
+ for (auto D = TU->stored_diag_begin(), DEnd = TU->stored_diag_end();
----------------
HighCommander4 wrote:
Only tangentially related, but since we're touching libTooling code anyways
(and since it's not 1998 any more :laughing:), shall we take the opportunity to
add a range wrapper similar to
[this](https://searchfox.org/llvm/rev/1bb8db5d5e1a3ea99525fd2648164a257955cd6d/clang/include/clang/AST/DeclBase.h#2369-2373)
to `ASTUnit`?
https://github.com/llvm/llvm-project/pull/155561
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits