[flang-commits] [flang] [flang] Pass LangOptions to parser via UserState (PR #213472)
via flang-commits
flang-commits at lists.llvm.org
Mon Aug 3 06:47:25 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/parsing.h flang/include/flang/Parser/user-state.h flang/lib/Frontend/FrontendAction.cpp flang/lib/Frontend/ParserActions.cpp flang/lib/Parser/parsing.cpp flang/lib/Semantics/mod-file.cpp flang/tools/bbc/bbc.cpp flang/tools/f18-parse-demo/f18-parse-demo.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/Frontend/FrontendAction.cpp b/flang/lib/Frontend/FrontendAction.cpp
index 40f6e35d8..f368541ed 100644
--- a/flang/lib/Frontend/FrontendAction.cpp
+++ b/flang/lib/Frontend/FrontendAction.cpp
@@ -162,8 +162,7 @@ bool FrontendAction::runParse(bool emitMessages) {
CompilerInstance &ci = this->getInstance();
// Parse. In case of failure, report and return.
- const common::LangOptions &langOpts =
- getInvocation().getLangOpts();
+ const common::LangOptions &langOpts = getInvocation().getLangOpts();
ci.getParsing().Parse(llvm::outs(), langOpts);
if (reportFatalParsingErrors()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/213472
More information about the flang-commits
mailing list