[llvm] [Frontend][OpenMP] Add functions for checking construct type (PR #87076)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 29 08:03:45 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 a3efc53f168b1451803a40075201c3490d6e3928 16366acf6b0681673e414b051660491fea9aba64 -- 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/llvm/lib/Frontend/OpenMP/OMP.cpp b/llvm/lib/Frontend/OpenMP/OMP.cpp
index 07f3378549..6e8ac3a6a1 100644
--- a/llvm/lib/Frontend/OpenMP/OMP.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMP.cpp
@@ -20,9 +20,7 @@ using namespace omp;
 #include "llvm/Frontend/OpenMP/OMP.inc"
 
 namespace llvm::omp {
-bool isLeafConstruct(Directive D) {
-  return getLeafConstructs(D).empty();
-}
+bool isLeafConstruct(Directive D) { return getLeafConstructs(D).empty(); }
 
 bool isCompositeConstruct(Directive D) {
   // OpenMP Spec 5.2: [17.3, 8-9]

``````````

</details>


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


More information about the llvm-commits mailing list