================
@@ -17,7 +17,7 @@
 // EMPTY-NEXT: FinalAttr 0x{{[0-9A-Fa-f]+}} <<invalid sloc>> Implicit final
 
 // There should be no more occurrances of StructuredBuffer
-// EMPTY-NOT: StructuredBuffer
+// EMPTY-NOT: {{^\W}}StructuredBuffer
----------------
tex3d wrote:

By the way, my suggestion of `{{[^W]}}` was to match any character except `W`.  
`{{^\W}}` looks for `W` at the beginning of the line: `^` outside of character 
set matches the beginning of the line, `\W` is just going to match `W`, I 
think.  It doesn't suppose character classes starting with `\` such as `\W`.  
Instead, you have to use the ones like in my last comment.

Here's a source that I think matches what FileCheck supports pretty well:
https://en.wikibooks.org/wiki/Regular_Expressions/POSIX-Extended_Regular_Expressions

https://github.com/llvm/llvm-project/pull/113477
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to