[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102855)

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 12 00:13:47 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 cb372bd5e789a7d5f1945b476e643d4abfd18f35 598ce1867b5ac36aa6da48be0556bb637ce1ddb0 --extensions cpp,h,cppm -- clang/test/Modules/pr102684.cppm clang/include/clang/Frontend/MultiplexConsumer.h clang/include/clang/Serialization/ASTDeserializationListener.h clang/include/clang/Serialization/ASTReader.h clang/include/clang/Serialization/ASTWriter.h clang/lib/Frontend/MultiplexConsumer.cpp clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTWriter.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Frontend/MultiplexConsumer.cpp b/clang/lib/Frontend/MultiplexConsumer.cpp
index 2158d176d1..8c3effbd00 100644
--- a/clang/lib/Frontend/MultiplexConsumer.cpp
+++ b/clang/lib/Frontend/MultiplexConsumer.cpp
@@ -58,7 +58,8 @@ void MultiplexASTDeserializationListener::DeclRead(GlobalDeclID ID,
     Listeners[i]->DeclRead(ID, D);
 }
 
-void MultiplexASTDeserializationListener::PredefinedDeclBuilt(PredefinedDeclIDs ID, const Decl *D) {
+void MultiplexASTDeserializationListener::PredefinedDeclBuilt(
+    PredefinedDeclIDs ID, const Decl *D) {
   for (size_t i = 0, e = Listeners.size(); i != e; ++i)
     Listeners[i]->PredefinedDeclBuilt(ID, D);
 }

``````````

</details>


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


More information about the cfe-commits mailing list