[flang-commits] [flang] [flang][OpenMP] Verify that arguments to COPYPRIVATE are variables (PR #141823)
via flang-commits
flang-commits at lists.llvm.org
Wed May 28 11:56:32 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 HEAD~1 HEAD --extensions h,cpp -- flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/check-omp-structure.h
``````````
</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 297cd3227..b0bc478d9 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -394,8 +394,8 @@ void OmpStructureChecker::CheckVariableListItem(
const SymbolSourceMap &symbols) {
for (auto &[symbol, source] : symbols) {
if (!IsVariableListItem(*symbol)) {
- context_.SayWithDecl(*symbol, source, "'%s' must be a variable"_err_en_US,
- symbol->name());
+ context_.SayWithDecl(
+ *symbol, source, "'%s' must be a variable"_err_en_US, symbol->name());
}
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/141823
More information about the flang-commits
mailing list