diff --git a/clang-tools-extra/clangd/ParsedAST.h b/clang-tools-extra/clangd/ParsedAST.h --- a/clang-tools-extra/clangd/ParsedAST.h +++ b/clang-tools-extra/clangd/ParsedAST.h @@ -24,7 +24,6 @@ #include "Compiler.h" #include "Diagnostics.h" #include "Headers.h" -#include "HeuristicResolver.h" #include "Preamble.h" #include "index/CanonicalIncludes.h" #include "support/Path.h" @@ -43,6 +42,7 @@ namespace clang { namespace clangd { +class HeuristicResolver; class SymbolIndex; /// Stores and provides access to parsed AST. diff --git a/clang-tools-extra/clangd/ParsedAST.cpp b/clang-tools-extra/clangd/ParsedAST.cpp --- a/clang-tools-extra/clangd/ParsedAST.cpp +++ b/clang-tools-extra/clangd/ParsedAST.cpp @@ -16,6 +16,7 @@ #include "Diagnostics.h" #include "FeatureModule.h" #include "Headers.h" +#include "HeuristicResolver.h" #include "IncludeFixer.h" #include "Preamble.h" #include "SourceCode.h"