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 915372a8db7a8d7a1af19cc9ec6ccb5a0d592d1f 1553f723572322e4cab6c776ab1f0c7175adc495 -- clang/include/clang/APINotes/APINotesReader.h clang/include/clang/APINotes/APINotesWriter.h clang/include/clang/APINotes/Types.h clang/lib/APINotes/APINotesFormat.h clang/lib/APINotes/APINotesReader.cpp clang/lib/APINotes/APINotesTypes.cpp clang/lib/APINotes/APINotesWriter.cpp clang/lib/APINotes/APINotesYAMLCompiler.cpp clang/lib/Sema/SemaAPINotes.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/APINotes/APINotesFormat.h b/clang/lib/APINotes/APINotesFormat.h index 3cbe890eb3..e3aa76df83 100644 --- a/clang/lib/APINotes/APINotesFormat.h +++ b/clang/lib/APINotes/APINotesFormat.h @@ -148,8 +148,8 @@ using ContextIDLayout = using ContextInfoLayout = llvm::BCRecordLayout< CONTEXT_INFO_DATA, // record ID - llvm::BCVBR<16>, // table offset within the blob (see below) - llvm::BCBlob // map from ObjC context IDs to context information. + llvm::BCVBR<16>, // table offset within the blob (see below) + llvm::BCBlob // map from ObjC context IDs to context information. >; } // namespace context_block diff --git a/clang/lib/APINotes/APINotesWriter.cpp b/clang/lib/APINotes/APINotesWriter.cpp index 0eea4f139a..4053d515ef 100644 --- a/clang/lib/APINotes/APINotesWriter.cpp +++ b/clang/lib/APINotes/APINotesWriter.cpp @@ -553,8 +553,7 @@ void emitCommonTypeInfo(raw_ostream &OS, const CommonTypeInfo &CTI) { /// Used to serialize the on-disk Objective-C property table. class ContextInfoTableInfo - : public VersionedTableInfo<ContextInfoTableInfo, unsigned, - ContextInfo> { + : public VersionedTableInfo<ContextInfoTableInfo, unsigned, ContextInfo> { public: unsigned getKeyLength(key_type_ref) { return sizeof(uint32_t); } @@ -1265,7 +1264,7 @@ void APINotesWriter::writeToStream(llvm::raw_ostream &OS) { ContextID APINotesWriter::addContext(std::optional<ContextID> ParentCtxID, llvm::StringRef Name, ContextKind Kind, - const ContextInfo &Info, + const ContextInfo &Info, llvm::VersionTuple SwiftVersion) { IdentifierID NameID = Implementation->getIdentifier(Name); `````````` </details> https://github.com/llvm/llvm-project/pull/98201 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits