[llvm-branch-commits] [clang] [llvm] [clang][OpenMP] Prototype #2 of directive splitting (PR #109288)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 19 07:12:32 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 bba25fe832489086d6a0b63c399c82057e1d3cfc 915fe94064e727d3e75127ab4cb1786226297250 --extensions cpp,h -- clang/lib/Sema/SemaOpenMPExt.cpp clang/lib/Sema/SemaOpenMPExt.h clang/include/clang/AST/OpenMPClause.h clang/include/clang/AST/Stmt.h clang/include/clang/Basic/OpenMPKinds.h clang/include/clang/Sema/SemaOpenMP.h clang/lib/AST/Stmt.cpp clang/lib/Basic/OpenMPKinds.cpp clang/lib/CodeGen/CGStmtOpenMP.cpp clang/lib/Parse/ParseOpenMP.cpp clang/lib/Sema/SemaExpr.cpp clang/lib/Sema/SemaOpenMP.cpp clang/lib/Sema/TreeTransform.h llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h llvm/include/llvm/Frontend/OpenMP/OMP.h llvm/lib/Frontend/OpenMP/OMP.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/Sema/SemaOpenMP.h b/clang/include/clang/Sema/SemaOpenMP.h
index ced79e3df9..f8d9eb93d9 100644
--- a/clang/include/clang/Sema/SemaOpenMP.h
+++ b/clang/include/clang/Sema/SemaOpenMP.h
@@ -1432,9 +1432,9 @@ public:
 
     VariableImplicitInfo &include(const VariableImplicitInfo &Other);
 
-  #ifndef NDEBUG
+#ifndef NDEBUG
     bool empty() const;
-  #endif
+#endif
 
   private:
     std::pair<Stmt *, Decl *> getDecl(Expr *E);
diff --git a/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h b/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h
index e15f78909d..5b5960da9d 100644
--- a/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h
+++ b/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h
@@ -96,7 +96,8 @@ struct ConstructDecompositionT {
                           llvm::omp::Directive dir,
                           llvm::ArrayRef<ClauseTy> clauses,
                           bool makeImplicit = true)
-      : version(ver), construct(dir), makeImplicit(makeImplicit), helper(helper) {
+      : version(ver), construct(dir), makeImplicit(makeImplicit),
+        helper(helper) {
     for (const ClauseTy &clause : clauses)
       nodes.push_back(&clause);
 
@@ -253,7 +254,7 @@ private:
 
   uint32_t version;
   llvm::omp::Directive construct;
-  bool makeImplicit;   // Whether to create implicit clauses.
+  bool makeImplicit; // Whether to create implicit clauses.
   HelperType &helper;
   ListT<LeafReprInternal> leafs;
   tomp::ListT<const ClauseTy *> nodes;

``````````

</details>


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


More information about the llvm-branch-commits mailing list