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 origin/main HEAD --extensions cpp,h -- clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.h clang/lib/Sema/HLSLExternalSemaSource.cpp `````````` :warning: The reproduction instructions above might return results for more than one PR in a stack if you are using a stacked PR workflow. You can limit the results by changing `origin/main` to the base branch/commit you want to compare against. :warning: </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp b/clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp index 2abc3d093..4eac9043d 100644 --- a/clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp +++ b/clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp @@ -349,7 +349,7 @@ Expr *BuiltinTypeMethodBuilder::convertPlaceholder(PlaceHolder PH) { ASTContext &AST = DeclBuilder.SemaRef.getASTContext(); if (PH >= PlaceHolder::LocalVar_0) { unsigned Index = static_cast<unsigned>(PH) - - static_cast<unsigned>(PlaceHolder::LocalVar_0); + static_cast<unsigned>(PlaceHolder::LocalVar_0); assert(Index < LocalVars.size() && "local var index out of range"); VarDecl *VD = LocalVars[Index]; return DeclRefExpr::Create( @@ -546,7 +546,8 @@ BuiltinTypeMethodBuilder &BuiltinTypeMethodBuilder::dereference(T Ptr) { return *this; } -BuiltinTypeDeclBuilder &BuiltinTypeMethodBuilder::finalize(CXXMethodDecl **OutMethod) { +BuiltinTypeDeclBuilder & +BuiltinTypeMethodBuilder::finalize(CXXMethodDecl **OutMethod) { assert(!DeclBuilder.Record->isCompleteDefinition() && "record is already complete"); `````````` </details> https://github.com/llvm/llvm-project/pull/155866 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits