[clang] [HLSL] Add ByteAddressBuffer, RWByteAddressBuffer and RasterizerOrderedByteAddressBuffer definitions to HLSLExternalSemaSource #113477 (PR #116699)

via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 4 11:57:02 PST 2024


================
@@ -91,6 +94,18 @@ struct BuiltinTypeDeclBuilder {
       HLSLNamespace->addDecl(Record);
   }
 
+  CXXRecordDecl *finalizeForwardDeclaration() {
+    // Force the QualType to be generated for the record declaration. In most
----------------
joaosaffran wrote:

There are some existing tests that failed and motivated this fix:
```
  Clang :: AST/HLSL/ByteAddressBuffer-AST.hlsl
  Clang :: AST/HLSL/OutArgExpr.hlsl
  Clang :: AST/HLSL/pch.hlsl
  Clang :: AST/HLSL/pch_hlsl_buffer.hlsl
  Clang :: AST/HLSL/pch_with_buf.hlsl
  Clang :: CodeGenHLSL/builtins/ByteAddressBuffers-constructors.hlsl
```

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


More information about the cfe-commits mailing list