[flang-commits] [flang] [flang][OpenMP] Utilities to get uppercase directive/clause names (PR #184853)
via flang-commits
flang-commits at lists.llvm.org
Thu Mar 5 10:50:48 PST 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,cpp -- flang/include/flang/Parser/openmp-utils.h flang/lib/Lower/OpenMP/OpenMP.cpp flang/lib/Parser/openmp-utils.cpp flang/lib/Semantics/check-omp-loop.cpp flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/resolve-directives.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/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index e01d1d75b..7ffda12c1 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -5261,10 +5261,11 @@ void OmpStructureChecker::CheckDefinableObjects(
for (auto &[symbol, source] : symbols) {
if (auto msg{WhyNotDefinable(source, context_.FindScope(source),
DefinabilityFlags{}, *symbol)}) {
- context_.Say(source,
- "Variable '%s' on the %s clause is not definable"_err_en_US,
- symbol->name(), parser::omp::GetUpperName(clause, version))
- .Attach(std::move(msg->set_severity(parser::Severity::Because)));
+ context_
+ .Say(source,
+ "Variable '%s' on the %s clause is not definable"_err_en_US,
+ symbol->name(), parser::omp::GetUpperName(clause, version))
+ .Attach(std::move(msg->set_severity(parser::Severity::Because)));
}
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/184853
More information about the flang-commits
mailing list