[clang] [HLSL] Add implicit resource element type concepts to AST (PR #112600)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 18 15:51:23 PDT 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 76196998e25b98d81abc437708622261810782ca ab7c20059e5fafd33624ed166e747ee473248551 --extensions cpp -- clang/lib/Sema/HLSLExternalSemaSource.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/HLSLExternalSemaSource.cpp b/clang/lib/Sema/HLSLExternalSemaSource.cpp
index 7d0251a423..72ca3b4371 100644
--- a/clang/lib/Sema/HLSLExternalSemaSource.cpp
+++ b/clang/lib/Sema/HLSLExternalSemaSource.cpp
@@ -358,8 +358,8 @@ struct TemplateParameterListBuilder {
   structure is what we're trying to construct below, specifically the
   CSE portion.
   */
-  ConceptSpecializationExpr *constructConceptSpecializationExpr(Sema &S,
-                                                          ConceptDecl *CD) {
+  ConceptSpecializationExpr *
+  constructConceptSpecializationExpr(Sema &S, ConceptDecl *CD) {
     ASTContext &Context = S.getASTContext();
     SourceLocation Loc = Builder.Record->getBeginLoc();
     DeclarationNameInfo DNI(CD->getDeclName(), Loc);
@@ -582,8 +582,9 @@ static BuiltinTypeDeclBuilder setupBufferType(CXXRecordDecl *Decl, Sema &S,
       .addDefaultHandleConstructor(S, RC);
 }
 
-BinaryOperator *constructSizeOfLEQ16Expr(ASTContext &Context, SourceLocation NameLoc,
-                                   TemplateTypeParmDecl *T) {
+BinaryOperator *constructSizeOfLEQ16Expr(ASTContext &Context,
+                                         SourceLocation NameLoc,
+                                         TemplateTypeParmDecl *T) {
   // Obtain the QualType for 'unsigned long'
   QualType UnsignedLongType = Context.UnsignedLongTy;
 
@@ -619,7 +620,7 @@ BinaryOperator *constructSizeOfLEQ16Expr(ASTContext &Context, SourceLocation Nam
 }
 
 Expr *constructTypedBufferConstraintExpr(Sema &S, SourceLocation NameLoc,
-                                   TemplateTypeParmDecl *T) {
+                                         TemplateTypeParmDecl *T) {
   ASTContext &Context = S.getASTContext();
 
   // first get the "sizeof(T) <= 16" expression, as a binary operator

``````````

</details>


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


More information about the cfe-commits mailing list