[clang] [HLSL] Add static methods for resource initialization (PR #155866)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 8 10:51:01 PDT 2025


================
@@ -130,13 +143,17 @@ struct BuiltinTypeMethodBuilder {
 
   BuiltinTypeMethodBuilder(BuiltinTypeDeclBuilder &DB, DeclarationName &Name,
                            QualType ReturnTy, bool IsConst = false,
-                           bool IsCtor = false)
+                           bool IsCtor = false,
+                           AccessSpecifier Access = AS_public,
+                           StorageClass SC = SC_None)
       : DeclBuilder(DB), Name(Name), ReturnTy(ReturnTy), Method(nullptr),
-        IsConst(IsConst), IsCtor(IsCtor) {}
+        IsConst(IsConst), IsCtor(IsCtor), Access(Access), SC(SC) {}
----------------
hekota wrote:

Good catch! I did use the Access member to make one constructor private, but the design has changed since then and the Access member is no longer needed. I'll remove it.

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


More information about the cfe-commits mailing list