[flang-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_VARIANT (PR #160371)
via flang-commits
flang-commits at lists.llvm.org
Thu Sep 25 07:00:35 PDT 2025
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/openmp-utils.h flang/include/flang/Parser/parse-tree.h flang/lib/Parser/openmp-parsers.cpp flang/lib/Parser/unparse.cpp flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/resolve-names.cpp
``````````
: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/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index a70668e4b..9c624750f 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -1387,8 +1387,8 @@ void OmpStructureChecker::Enter(const parser::OmpDeclareVariantDirective &x) {
"The name '%s' should refer to a procedure"_err_en_US,
sym->name())};
if (sym->test(Symbol::Flag::Implicit)) {
- msg.Attach(source,
- "The name '%s' has been implicitly declared"_en_US, sym->name());
+ msg.Attach(source, "The name '%s' has been implicitly declared"_en_US,
+ sym->name());
}
}
} else {
``````````
</details>
https://github.com/llvm/llvm-project/pull/160371
More information about the flang-commits
mailing list