[clang] [NFC] [Serialization] Extract the functionality of merging decls from ASTReaderDecl (PR #103022)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 13 01:32:40 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 86ef9ee60015c582b14ecfaedda415e671578b4b 6e2903a427ef8d865a1d35ebb63402b5314d09a8 --extensions h,cpp -- clang/include/clang/AST/DeclBase.h clang/include/clang/AST/DeclCXX.h clang/include/clang/AST/DeclObjC.h clang/include/clang/AST/Redeclarable.h clang/include/clang/Serialization/ASTReader.h clang/lib/Serialization/ASTReaderDecl.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp
index a9199f7e50..c51737c33f 100644
--- a/clang/lib/Serialization/ASTReaderDecl.cpp
+++ b/clang/lib/Serialization/ASTReaderDecl.cpp
@@ -474,9 +474,9 @@ public:
   void VisitOMPDeclareMapperDecl(OMPDeclareMapperDecl *D);
   void VisitOMPRequiresDecl(OMPRequiresDecl *D);
   void VisitOMPCapturedExprDecl(OMPCapturedExprDecl *D);
-  };
+};
 
-  } // namespace clang
+} // namespace clang
 
 namespace {
 

``````````

</details>


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


More information about the cfe-commits mailing list