[flang-commits] [flang] [Flang] Add parsing and attribute registration for SIMPLE specifier (PR #161285)
via flang-commits
flang-commits at lists.llvm.org
Mon Mar 23 17:46:42 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,cpp -- flang/include/flang/Evaluate/call.h flang/include/flang/Evaluate/characteristics.h flang/include/flang/Evaluate/tools.h flang/include/flang/Parser/dump-parse-tree.h flang/include/flang/Parser/parse-tree.h flang/include/flang/Semantics/attr.h flang/lib/Evaluate/call.cpp flang/lib/Evaluate/characteristics.cpp flang/lib/Evaluate/tools.cpp flang/lib/Parser/program-parsers.cpp flang/lib/Parser/unparse.cpp flang/lib/Semantics/check-declarations.cpp flang/lib/Semantics/resolve-names.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-declarations.cpp b/flang/lib/Semantics/check-declarations.cpp
index 014be60ec..792050061 100644
--- a/flang/lib/Semantics/check-declarations.cpp
+++ b/flang/lib/Semantics/check-declarations.cpp
@@ -1592,8 +1592,7 @@ void CheckHelper::CheckSubprogram(
context_.SetError(symbol);
}
}
- if (symbol.attrs().test(Attr::SIMPLE) &&
- symbol.attrs().test(Attr::IMPURE)) {
+ if (symbol.attrs().test(Attr::SIMPLE) && symbol.attrs().test(Attr::IMPURE)) {
messages_.Say(symbol.name(),
"A procedure may not have both the SIMPLE and IMPURE attributes"_err_en_US);
context_.SetError(symbol);
``````````
</details>
https://github.com/llvm/llvm-project/pull/161285
More information about the flang-commits
mailing list