[flang-commits] [flang] [flang][test] Fix ASAN error in unit tests (PR #218917)

via flang-commits flang-commits at lists.llvm.org
Wed Aug 26 06:06:33 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/Frontend/CompilerInstance.h flang/lib/Frontend/CompilerInstance.cpp flang/unittests/Frontend/CodeGenActionTest.cpp flang/unittests/Frontend/CompilerInstanceTest.cpp flang/unittests/Frontend/FrontendActionTest.cpp flang/unittests/Semantics/OpenMPUtils.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/include/flang/Frontend/CompilerInstance.h b/flang/include/flang/Frontend/CompilerInstance.h
index 9dc1701f2..3909e7bf3 100644
--- a/flang/include/flang/Frontend/CompilerInstance.h
+++ b/flang/include/flang/Frontend/CompilerInstance.h
@@ -119,9 +119,7 @@ public:
   /// @name Compiler Invocation
   /// {
 
-  CompilerInvocation &getInvocation() {
-    return *invocation;
-  };
+  CompilerInvocation &getInvocation() { return *invocation; };
 
   /// }
   /// @name File manager

``````````

</details>


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


More information about the flang-commits mailing list