[clang] [API notes] Allow SwiftConformsTo on Typedefs (PR #151213)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 29 12:49:41 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 cpp,h -- clang/include/clang/APINotes/Types.h clang/lib/APINotes/APINotesFormat.h clang/lib/APINotes/APINotesReader.cpp clang/lib/APINotes/APINotesWriter.cpp clang/lib/APINotes/APINotesYAMLCompiler.cpp clang/lib/Sema/SemaAPINotes.cpp clang/test/APINotes/swift-import-as.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/APINotes/APINotesReader.cpp b/clang/lib/APINotes/APINotesReader.cpp
index 538b950f8..8b3812613 100644
--- a/clang/lib/APINotes/APINotesReader.cpp
+++ b/clang/lib/APINotes/APINotesReader.cpp
@@ -136,7 +136,7 @@ void ReadCommonTypeInfo(const uint8_t *&Data, CommonTypeInfo &Info) {
   }
 
   if (unsigned ConformanceLength =
-            endian::readNext<uint16_t, llvm::endianness::little>(Data)) {
+          endian::readNext<uint16_t, llvm::endianness::little>(Data)) {
     Info.setSwiftConformance(std::string(reinterpret_cast<const char *>(Data),
                                          ConformanceLength - 1));
     Data += ConformanceLength - 1;

``````````

</details>


https://github.com/llvm/llvm-project/pull/151213


More information about the cfe-commits mailing list