[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 18:05:06 PDT 2024


================
@@ -490,34 +490,36 @@ void HLSLExternalSemaSource::defineTrivialHLSLTypes() {
 }
 
 /// Set up common members and attributes for buffer types
-static BuiltinTypeDeclBuilder setupBufferType(CXXRecordDecl *Decl, Sema &S,
-                                              ResourceClass RC, ResourceKind RK,
-                                              bool IsROV) {
+static BuiltinTypeDeclBuilder setupBufferHandle(CXXRecordDecl *Decl, Sema &S,
+                                                ResourceClass RC) {
----------------
llvm-beanz wrote:

Am I correct in reading this that you’re moving the attribute from the `onCompletion` handler to the forward declaration so that the type is always attributed?

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


More information about the cfe-commits mailing list