[clang-tools-extra] [llvm] [clang] [CLANG] Fix : More Detailed "No expected directives found" (PR #78338)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 06:17:01 PST 2024


================
@@ -11,7 +11,7 @@
 #error
 // expected-error at -1 {{}}
 
-//      CHECK: error: no expected directives found: consider use of 'expected-no-diagnostics'
+//      CHECK: error: no expected directives found: consider use of '{{.*}}-no-diagnostics'
----------------
tbaederr wrote:

Do all these tests really fail if you leave "expected-no-diagnostics" in the expected output? Or can you just change that to a concrete value instead of the regex?

https://github.com/llvm/llvm-project/pull/78338


More information about the cfe-commits mailing list