[clang] [HLSL] Add RWStructuredBuffer definition to HLSLExternalSemaSource (PR #113477)
Tex Riddell via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 23 13:53:45 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list