[clang] Testing32 bit for https://github.com/llvm/llvm-project/pull/92083 (PR #94603)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 6 04:04:59 PDT 2024
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 e2858189bd99e6914dc2f63ab55b053a74b4e58b 644f337da254ba8d4af4cd93b300475cfd9c265c -- clang/test/Modules/no-transitive-decls-change.cppm clang/include/clang/AST/ASTUnresolvedSet.h clang/include/clang/AST/DeclBase.h clang/include/clang/AST/DeclID.h clang/include/clang/Serialization/ASTBitCodes.h clang/include/clang/Serialization/ASTReader.h clang/include/clang/Serialization/ModuleFile.h clang/include/clang/Serialization/ModuleManager.h clang/lib/AST/DeclBase.cpp clang/lib/AST/DeclCXX.cpp clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTReaderDecl.cpp clang/lib/Serialization/ASTWriter.cpp clang/lib/Serialization/ModuleFile.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Serialization/ASTBitCodes.h b/clang/include/clang/Serialization/ASTBitCodes.h
index 3f3fb8869f..52a6c5e10f 100644
--- a/clang/include/clang/Serialization/ASTBitCodes.h
+++ b/clang/include/clang/Serialization/ASTBitCodes.h
@@ -1995,11 +1995,9 @@ struct ObjCCategoriesInfo {
ObjCCategoriesInfo() = default;
ObjCCategoriesInfo(LocalDeclID ID, unsigned Offset)
- : DefinitionID(ID.get()), Offset(Offset) {}
+ : DefinitionID(ID.get()), Offset(Offset) {}
- LocalDeclID getDefinitionID() const {
- return LocalDeclID(DefinitionID);
- }
+ LocalDeclID getDefinitionID() const { return LocalDeclID(DefinitionID); }
friend bool operator<(const ObjCCategoriesInfo &X,
const ObjCCategoriesInfo &Y) {
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp
index 86aedbc0e1..cd8e1253c0 100644
--- a/clang/lib/AST/DeclCXX.cpp
+++ b/clang/lib/AST/DeclCXX.cpp
@@ -70,9 +70,10 @@ void LazyASTUnresolvedSet::getFromExternalSource(ASTContext &C) const {
assert(Impl.size() == IDs.size());
unsigned I = 0;
- for (ASTUnresolvedSet::iterator Iter = Impl.begin(); Iter != Impl.end(); ++Iter) {
- Iter.setDecl(cast<NamedDecl>(Source->GetExternalDecl(
- GlobalDeclID(IDs[I++]))));
+ for (ASTUnresolvedSet::iterator Iter = Impl.begin(); Iter != Impl.end();
+ ++Iter) {
+ Iter.setDecl(
+ cast<NamedDecl>(Source->GetExternalDecl(GlobalDeclID(IDs[I++]))));
}
Impl.Decls.setLazy(false);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/94603
More information about the cfe-commits
mailing list