From ee591a64a795995fad96d8c16484baa7cacce99f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 23 Jan 2022 13:28:04 -0800 Subject: [PATCH] [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. --- clang-tools-extra/clangd/DumpAST.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clang-tools-extra/clangd/DumpAST.h b/clang-tools-extra/clangd/DumpAST.h index 424025aeca79..c72fe59179fd 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