[flang-commits] [flang] [flang][NFC] Expose force-no-alias option via CommandLineOpts (PR #232568)

via flang-commits flang-commits at lists.llvm.org
Thu Oct 15 18:55:26 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/Optimizer/Passes/CommandLineOpts.h flang/lib/Optimizer/Passes/CommandLineOpts.cpp flang/lib/Optimizer/Passes/Pipelines.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/Optimizer/Passes/CommandLineOpts.cpp b/flang/lib/Optimizer/Passes/CommandLineOpts.cpp
index 64a33ea9e..a03cf40d0 100644
--- a/flang/lib/Optimizer/Passes/CommandLineOpts.cpp
+++ b/flang/lib/Optimizer/Passes/CommandLineOpts.cpp
@@ -47,7 +47,7 @@ cl::opt<bool> skipExternalRttiDefinition(
 
 /// Force setting the no-alias attribute on fuction arguments when possible.
 llvm::cl::opt<bool> forceNoAlias("force-no-alias", llvm::cl::Hidden,
-    llvm::cl::init(true));
+                                 llvm::cl::init(true));
 
 OptimizationLevel defaultOptLevel{OptimizationLevel::O0};
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/232568


More information about the flang-commits mailing list