[clang] ca13692 - Fix formatting of changes in recent redefine_extname changes. (#189938)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 24 02:13:51 PDT 2026
Author: divVerent
Date: 2026-04-24T11:13:47+02:00
New Revision: ca136926c125dd925549b596efd29b900a379045
URL: https://github.com/llvm/llvm-project/commit/ca136926c125dd925549b596efd29b900a379045
DIFF: https://github.com/llvm/llvm-project/commit/ca136926c125dd925549b596efd29b900a379045.diff
LOG: Fix formatting of changes in recent redefine_extname changes. (#189938)
My recent commits fd7388d14083bb5094bce6a75444a37e424689d7 and
37888541a96e4f10bf1b71b869145f0d31a9d580 had minor formatting issues
which happened during editing the PR as I had forgotten to rerun
clang-format. Sorry for that. So here is the update.
Did not fix line lengths in the FileCheck tests as exceeding line length
in these seems more consistent.
Added:
Modified:
clang/lib/Serialization/ASTReader.cpp
clang/test/Sema/redefine_extname.cpp
Removed:
################################################################################
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 272f756cffb92..ea5e555912048 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -9748,9 +9748,9 @@ void ASTReader::ReadExtnameUndeclaredIdentifiers(
IdentifierInfo *NameId =
DecodeIdentifierInfo(ExtnameUndeclaredIdentifiers[I]);
IdentifierInfo *ExtnameId =
- DecodeIdentifierInfo(ExtnameUndeclaredIdentifiers[I+1]);
+ DecodeIdentifierInfo(ExtnameUndeclaredIdentifiers[I + 1]);
SourceLocation Loc =
- SourceLocation::getFromRawEncoding(ExtnameUndeclaredIdentifiers[I+2]);
+ SourceLocation::getFromRawEncoding(ExtnameUndeclaredIdentifiers[I + 2]);
AsmLabelAttr *Attr = AsmLabelAttr::CreateImplicit(
getContext(), ExtnameId->getName(),
AttributeCommonInfo(ExtnameId, SourceRange(Loc),
diff --git a/clang/test/Sema/redefine_extname.cpp b/clang/test/Sema/redefine_extname.cpp
index c60ed202f076e..7a0066b887d0e 100644
--- a/clang/test/Sema/redefine_extname.cpp
+++ b/clang/test/Sema/redefine_extname.cpp
@@ -31,7 +31,7 @@ int foo_nsfunc() { return 1; }
// CHECK-DAG: {{@[^ ]*foo_nsfunc}}
int foo_nsvar = 1;
// CHECK-DAG: {{@[^ ]*foo_nsvar}}
-}
+} // namespace ns
/// Check that the warning goes away when doing it in a class.
/// Such uses are clearly scoped and need no warning (and often can be intentional).
More information about the cfe-commits
mailing list