Author: Nathan Ridge Date: 2021-05-03T00:55:22-04:00 New Revision: 43cbf2bb84eb319ff3e95b3316344ece35ea59b1
URL: https://github.com/llvm/llvm-project/commit/43cbf2bb84eb319ff3e95b3316344ece35ea59b1 DIFF: https://github.com/llvm/llvm-project/commit/43cbf2bb84eb319ff3e95b3316344ece35ea59b1.diff LOG: [clangd] Avoid including HeuristicResolver.h from ParsedAST.h Differential Revision: https://reviews.llvm.org/D101270 Added: Modified: clang-tools-extra/clangd/ParsedAST.cpp clang-tools-extra/clangd/ParsedAST.h Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/ParsedAST.cpp b/clang-tools-extra/clangd/ParsedAST.cpp index 6cb76f32ced0d..0d7e4631d6601 100644 --- 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" diff --git a/clang-tools-extra/clangd/ParsedAST.h b/clang-tools-extra/clangd/ParsedAST.h index c1ce6fce70297..703ae38254284 100644 --- 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits