[clang] [HLSL] Add HLSLRootSignatureAttr. (PR #83630)

via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 1 14:59:18 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 113052b2b022c4ce45c8003057ae4297d48ed843 994a475a75ffe9c7b7db40f4d374b4a4eb63068e -- clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaDeclAttr.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 775e15d29e..5a4be144bb 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -7184,16 +7184,15 @@ Sema::mergeHLSLRootSignatureAttr(Decl *D, const AttributeCommonInfo &AL,
 
   // Create a record decl for the root signature.
   IdentifierInfo *II = &Context.Idents.get(FD->getName().str() + ".RS");
-  RecordDecl *RD =
-      RecordDecl::Create(Context, TagDecl::TagKind::Struct, DC,
-                         SourceLocation(), SourceLocation(), II);
+  RecordDecl *RD = RecordDecl::Create(Context, TagDecl::TagKind::Struct, DC,
+                                      SourceLocation(), SourceLocation(), II);
   // TODO: Add fields to the record decl.
 
   // Create a type for the root signature.
   QualType T = Context.getRecordType(RD);
   // Create a variable decl for the root signature.
-  VarDecl *VD = VarDecl::Create(Context, DC, SourceLocation(),
-                                SourceLocation(), II, T, nullptr, SC_None);
+  VarDecl *VD = VarDecl::Create(Context, DC, SourceLocation(), SourceLocation(),
+                                II, T, nullptr, SC_None);
 
   // TODO: Add initializers to the variable decl.
 

``````````

</details>


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


More information about the cfe-commits mailing list