[clang-tools-extra] ee591a6 - [clang] Forward-declare DynTypedNode (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 23 13:28:27 PST 2022


Author: Kazu Hirata
Date: 2022-01-23T13:28:04-08:00
New Revision: ee591a64a795995fad96d8c16484baa7cacce99f

URL: https://github.com/llvm/llvm-project/commit/ee591a64a795995fad96d8c16484baa7cacce99f
DIFF: https://github.com/llvm/llvm-project/commit/ee591a64a795995fad96d8c16484baa7cacce99f.diff

LOG: [clang] Forward-declare DynTypedNode (NFC)

This patch adds a forward declaraiton of DynTypedNode.

DumpAST.h is relying on the forward declaration of DynTypedNode in
ASTContext.h, which is undesirable.

Added: 
    

Modified: 
    clang-tools-extra/clangd/DumpAST.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/DumpAST.h b/clang-tools-extra/clangd/DumpAST.h
index 424025aeca796..c72fe59179fd8 100644
--- a/clang-tools-extra/clangd/DumpAST.h
+++ b/clang-tools-extra/clangd/DumpAST.h
@@ -34,6 +34,7 @@
 #include "clang/AST/ASTContext.h"
 
 namespace clang {
+class DynTypedNode;
 namespace syntax {
 class TokenBuffer;
 } // namespace syntax


        


More information about the cfe-commits mailing list