================
@@ -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();
+       D != DEnd; ++D) {
+    EXPECT_TRUE(D->getLevel() < DiagnosticsEngine::Warning ||
----------------
MythreyaK wrote:

> Are you intentionally disallowing warnings by default?

Yeah, I thought this was helpful when language conveniences are enabled without 
explicit opt-in. I wasn't sure what the norm was; I'll update it to `< Error`, 
which is the norm?

https://github.com/llvm/llvm-project/pull/155561
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to