[flang-commits] [flang] [flang][OpenMP] Support omx/ompx extension sentinels (PR #218475)
via flang-commits
flang-commits at lists.llvm.org
Mon Aug 24 12:50:24 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 cpp,h -- flang/include/flang/Parser/parse-tree.h flang/lib/Parser/openmp-parsers.cpp flang/lib/Parser/parsing.cpp flang/lib/Parser/prescan.h flang/lib/Parser/unparse.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/lib/Parser/openmp-parsers.cpp b/flang/lib/Parser/openmp-parsers.cpp
index e4f226dd8..082a1be90 100644
--- a/flang/lib/Parser/openmp-parsers.cpp
+++ b/flang/lib/Parser/openmp-parsers.cpp
@@ -2857,7 +2857,8 @@ TYPE_PARSER(construct<OpenMPMisplacedEndDirective>(
//
// This is a fallback that is attempted before the enclosing program unit is
// reparsed as an execution-part construct, so the standard "!$omp" branch uses
-// the strict "_id" spelling: it must not prefix-match the "!$omp" that begins an
+// the strict "_id" spelling: it must not prefix-match the "!$omp" that begins
+// an
// "!$ompx" line, otherwise a valid extension directive such as "!$ompx barrier"
// would be misreported as an invalid "!$omp" directive instead of being handled
// as a real construct.
``````````
</details>
https://github.com/llvm/llvm-project/pull/218475
More information about the flang-commits
mailing list