[flang-commits] [flang] [flang] NameUniquer helper for detecting module-scope data (PR #192733)
via flang-commits
flang-commits at lists.llvm.org
Fri Apr 17 13:50:48 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/Support/InternalNames.h flang/lib/Optimizer/Support/InternalNames.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/Support/InternalNames.cpp b/flang/lib/Optimizer/Support/InternalNames.cpp
index a5f35f90e..b02ee0543 100644
--- a/flang/lib/Optimizer/Support/InternalNames.cpp
+++ b/flang/lib/Optimizer/Support/InternalNames.cpp
@@ -359,7 +359,7 @@ bool fir::NameUniquer::isModuleScopeDataUniquedName(
auto [kind, parts] = fir::NameUniquer::deconstruct(uniquedName);
if (parts.modules.empty())
return false;
-
+
switch (kind) {
case fir::NameUniquer::NameKind::VARIABLE:
case fir::NameUniquer::NameKind::CONSTANT:
``````````
</details>
https://github.com/llvm/llvm-project/pull/192733
More information about the flang-commits
mailing list