[clang] [HLSL] Add RWStructuredBuffer definition to HLSLExternalSemaSource (PR #113477)

Tex Riddell via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 23 11:18:20 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: {{/s}}StructuredBuffer
----------------
tex3d wrote:

Oh yeah, I think you could also use `{{[^W]}}` to exclude matches of `WStructuredBuffer` instead of specifically looking for space.  What if you have `'StructuredBuffer ...'`, with `'` or something other than space right before it?

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


More information about the cfe-commits mailing list