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 5f1cc61eaf6df0f74dfe6871d089f5a1f2e405ad 1447ec21597f752b29e367a46f06eecdf9c81dd7 --extensions h,cpp -- clang/include/clang-c/Index.h clang/include/clang/AST/RecursiveASTVisitor.h clang/include/clang/AST/StmtOpenMP.h clang/include/clang/AST/TextNodeDumper.h clang/include/clang/Sema/SemaOpenMP.h clang/include/clang/Serialization/ASTBitCodes.h clang/lib/AST/StmtOpenMP.cpp clang/lib/AST/StmtPrinter.cpp clang/lib/AST/StmtProfile.cpp clang/lib/AST/TextNodeDumper.cpp clang/lib/CodeGen/CGStmt.cpp clang/lib/Sema/SemaExceptionSpec.cpp clang/lib/Sema/SemaOpenMP.cpp clang/lib/Sema/TreeTransform.h clang/lib/Serialization/ASTReaderStmt.cpp clang/lib/Serialization/ASTWriterStmt.cpp clang/lib/StaticAnalyzer/Core/ExprEngine.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/include/clang/AST/StmtOpenMP.h b/clang/include/clang/AST/StmtOpenMP.h index 4a3c2a5337..2fca6b9011 100644 --- a/clang/include/clang/AST/StmtOpenMP.h +++ b/clang/include/clang/AST/StmtOpenMP.h @@ -1611,9 +1611,9 @@ public: /// \param DKind The OpenMP directive kind. /// \param NumClauses Number of clauses. /// - static OMPCompoundRootDirective * - CreateEmpty(const ASTContext &C, OpenMPDirectiveKind DKind, - unsigned NumClauses, EmptyShell); + static OMPCompoundRootDirective *CreateEmpty(const ASTContext &C, + OpenMPDirectiveKind DKind, + unsigned NumClauses, EmptyShell); static bool classof(const Stmt *T) { return T->getStmtClass() == OMPCompoundRootDirectiveClass; diff --git a/clang/lib/AST/StmtOpenMP.cpp b/clang/lib/AST/StmtOpenMP.cpp index 7550aca792..0fea9678be 100644 --- a/clang/lib/AST/StmtOpenMP.cpp +++ b/clang/lib/AST/StmtOpenMP.cpp @@ -267,9 +267,10 @@ OMPCompoundRootDirective *OMPCompoundRootDirective::Create( C, Clauses, AssociatedStmt, /*NumChildren=*/0, DKind, StartLoc, EndLoc); } -OMPCompoundRootDirective *OMPCompoundRootDirective::CreateEmpty( - const ASTContext &C, OpenMPDirectiveKind DKind, unsigned NumClauses, - EmptyShell) { +OMPCompoundRootDirective * +OMPCompoundRootDirective::CreateEmpty(const ASTContext &C, + OpenMPDirectiveKind DKind, + unsigned NumClauses, EmptyShell) { return createEmptyDirective<OMPCompoundRootDirective>( C, NumClauses, /*HasAssociatedStmt=*/true, /*NumChildren=*/0, DKind); } diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 3a59839a0b..34357c2b94 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -23312,8 +23312,8 @@ static bool checkScanScope(Sema &S, Scope *CurrentS, SourceLocation Loc); StmtResult SemaOpenMP::ActOnOpenMPCompoundRootDirective( OpenMPDirectiveKind DKind, ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) { - return OMPCompoundRootDirective::Create( - getASTContext(), StartLoc, EndLoc, DKind, Clauses, AStmt); + return OMPCompoundRootDirective::Create(getASTContext(), StartLoc, EndLoc, + DKind, Clauses, AStmt); } StmtResult SemaOpenMP::ActOnOpenMPOpaqueBlockDirective( `````````` </details> https://github.com/llvm/llvm-project/pull/118878 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits