[clang] [Clang] Allow vanilla C function symbol name to be used in __attribute__((alias)) when -funique-internal-linkage-names is specified (PR #145652)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 9 08:07:17 PDT 2025
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 HEAD~1 HEAD --extensions h,c,cpp -- clang/test/CodeGen/unique-internal-linkage-names-alias.c clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/CodeGenModule.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index adc43f234..f327a6b65 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -7721,7 +7721,8 @@ void CodeGenModule::FixupMaybeInlineFunctions() {
unsigned long sz = 0;
while (sz != DeferredMaybeInlineFunctions.size()) {
sz = DeferredMaybeInlineFunctions.size();
- for (auto I = DeferredMaybeInlineFunctions.begin(); I != DeferredMaybeInlineFunctions.end();) {
+ for (auto I = DeferredMaybeInlineFunctions.begin();
+ I != DeferredMaybeInlineFunctions.end();) {
const auto *D = cast<FunctionDecl>(I->first.getDecl());
auto *GA = GetGlobalValue(D->getName());
StringRef MangledName = getMangledName(I->first);
``````````
</details>
https://github.com/llvm/llvm-project/pull/145652
More information about the cfe-commits
mailing list