[clang] [APINotes] Support annotating C++ methods (PR #99512)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 08:26:28 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 fc65a9603bf16ed1fe98fbee6933bca9e2083384 33ac9376e3c38c4cf4b1b7a0beec93b03e3ce806 --extensions h,cpp -- clang/test/APINotes/Inputs/Headers/Methods.h clang/test/APINotes/methods.cpp 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/APINotesWriter.cpp clang/lib/APINotes/APINotesYAMLCompiler.cpp clang/lib/Sema/SemaAPINotes.cpp clang/test/APINotes/Inputs/Headers/Namespaces.h clang/test/APINotes/namespaces.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 768fdc231b..871f782511 100644
--- a/clang/lib/APINotes/APINotesReader.cpp
+++ b/clang/lib/APINotes/APINotesReader.cpp
@@ -475,8 +475,8 @@ public:
 
 /// Used to deserialize the on-disk C++ method table.
 class CXXMethodTableInfo
-    : public VersionedTableInfo<CXXMethodTableInfo,
-                                SingleDeclTableKey, CXXMethodInfo> {
+    : public VersionedTableInfo<CXXMethodTableInfo, SingleDeclTableKey,
+                                CXXMethodInfo> {
 public:
   static internal_key_type ReadKey(const uint8_t *Data, unsigned Length) {
     auto CtxID = endian::readNext<uint32_t, llvm::endianness::little>(Data);

``````````

</details>


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


More information about the cfe-commits mailing list