[flang-commits] [flang] [llvm] [OpenMP][flang] Use auto-generated data for modifier verification (PR #215648)
via flang-commits
flang-commits at lists.llvm.org
Thu Aug 13 06:57:46 PDT 2026
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 h,inc,cpp -- llvm/include/llvm/Frontend/OpenMP/OMPDescriptors.h llvm/include/llvm/Frontend/OpenMP/OMPDescriptors.h.inc llvm/lib/Frontend/OpenMP/OMPDescriptors.cpp llvm/lib/Frontend/OpenMP/OMPDescriptors.inc flang/include/flang/Semantics/openmp-modifiers.h flang/lib/Semantics/check-omp-loop.cpp flang/lib/Semantics/check-omp-structure.cpp --diff_from_common_commit
``````````
: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/flang/include/flang/Semantics/openmp-modifiers.h b/flang/include/flang/Semantics/openmp-modifiers.h
index 1eecefff3..3d0e61d46 100644
--- a/flang/include/flang/Semantics/openmp-modifiers.h
+++ b/flang/include/flang/Semantics/openmp-modifiers.h
@@ -296,9 +296,9 @@ bool verifyVersions(const std::optional<std::list<UnionTy>> &modifiers,
bool result{true};
for (auto &m : *modifiers) {
const llvm::omp::descriptor::Modifier &desc{OmpGetDescriptor(m)};
- if (desc.getClauses(version).test(id)) {
- continue;
- }
+ if (desc.getClauses(version).test(id)) {
+ continue;
+ }
// Find the next higher version that allows this modifier on this clause.
const auto &versions{desc.getVersions()};
unsigned since{~0u};
``````````
</details>
https://github.com/llvm/llvm-project/pull/215648
More information about the flang-commits
mailing list