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 60d4a3517610494e5b2ef6bf347cdc71a6a979e5 6c6f17ca827feb8384441cbd6d44493954ba726f -- clang/include/clang-c/Index.h clang/include/clang/AST/ASTContext.h clang/include/clang/AST/Type.h clang/include/clang/Basic/Specifiers.h clang/include/clang/Sema/DeclSpec.h clang/include/clang/Serialization/ASTBitCodes.h clang/lib/AST/ASTContext.cpp clang/lib/AST/ASTImporter.cpp clang/lib/AST/ExprConstant.cpp clang/lib/AST/ItaniumMangle.cpp clang/lib/AST/MicrosoftMangle.cpp clang/lib/AST/NSAPI.cpp clang/lib/AST/PrintfFormatString.cpp clang/lib/AST/Type.cpp clang/lib/AST/TypeLoc.cpp clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugInfo.h clang/lib/CodeGen/CGHLSLRuntime.cpp clang/lib/CodeGen/CGHLSLRuntime.h clang/lib/CodeGen/CodeGenTypes.cpp clang/lib/CodeGen/ItaniumCXXABI.cpp clang/lib/CodeGen/TargetInfo.h clang/lib/Index/USRGeneration.cpp clang/lib/Parse/ParseDecl.cpp clang/lib/Parse/ParseExpr.cpp clang/lib/Parse/ParseExprCXX.cpp clang/lib/Parse/ParseTentative.cpp clang/lib/Sema/DeclSpec.cpp clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaExpr.cpp clang/lib/Sema/SemaTemplateVariadic.cpp clang/lib/Sema/SemaType.cpp clang/lib/Serialization/ASTCommon.cpp clang/lib/Serialization/ASTReader.cpp clang/tools/libclang/CIndex.cpp clang/tools/libclang/CXType.cpp lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 07f8e54b5b..34aac8d453 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -2968,8 +2968,7 @@ enum CXTypeKind { CXType_Atomic = 177, CXType_BTFTagAttributed = 178, -#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) \ - CXType_##Id, +#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) CXType_##Id, #include "clang/Basic/HLSLIntangibleTypes.def" }; diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 930b98b46c..4713e50386 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -2630,7 +2630,7 @@ public: #define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) bool is##Id##Type() const; #include "clang/Basic/HLSLIntangibleTypes.def" - bool isHLSLSpecificType() const; // Any HLSL specific type + bool isHLSLSpecificType() const; // Any HLSL specific type /// Determines if this type, which must satisfy /// isObjCLifetimeType(), is implicitly __unsafe_unretained rather diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 5f6233376f..790587501a 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1386,7 +1386,7 @@ void ASTContext::InitBuiltinTypes(const TargetInfo &Target, if (LangOpts.HLSL) { #define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) \ - InitBuiltinType(SingletonId, BuiltinType::Id); + InitBuiltinType(SingletonId, BuiltinType::Id); #include "clang/Basic/HLSLIntangibleTypes.def" } diff --git a/clang/tools/libclang/CXType.cpp b/clang/tools/libclang/CXType.cpp index ed6477d0a5..f5d1fbf30c 100644 --- a/clang/tools/libclang/CXType.cpp +++ b/clang/tools/libclang/CXType.cpp @@ -79,9 +79,9 @@ static CXTypeKind GetBuiltinTypeKind(const BuiltinType *BT) { BTCASE(OCLReserveID); #define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) BTCASE(Id); #include "clang/Basic/HLSLIntangibleTypes.def" - default: - return CXType_Unexposed; - } + default: + return CXType_Unexposed; + } #undef BTCASE } `````````` </details> https://github.com/llvm/llvm-project/pull/97362 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits