File tree Expand file tree Collapse file tree 14 files changed +15
-19
lines changed Expand file tree Collapse file tree 14 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ add_clang_library(clangDaemon STATIC
9191 GlobalCompilationDatabase.cpp
9292 Headers.cpp
9393 HeaderSourceSwitch.cpp
94- HeuristicResolver.cpp
9594 Hover.cpp
9695 IncludeCleaner.cpp
9796 IncludeFixer.cpp
Original file line number Diff line number Diff line change 88
99#include " FindTarget.h"
1010#include " AST.h"
11- #include " HeuristicResolver.h"
1211#include " support/Logger.h"
1312#include " clang/AST/ASTConcept.h"
1413#include " clang/AST/ASTTypeTraits.h"
3534#include " clang/Basic/SourceLocation.h"
3635#include " clang/Basic/SourceManager.h"
3736#include " clang/Basic/Specifiers.h"
37+ #include " clang/Sema/HeuristicResolver.h"
3838#include " llvm/ADT/STLExtras.h"
3939#include " llvm/ADT/SmallVector.h"
4040#include " llvm/ADT/StringExtras.h"
Original file line number Diff line number Diff line change 3333#include < bitset>
3434
3535namespace clang {
36- namespace clangd {
36+
3737class HeuristicResolver ;
3838
39+ namespace clangd {
40+
3941// / Describes the link between an AST node and a Decl it refers to.
4042enum class DeclRelation : unsigned ;
4143// / A bitfield of DeclRelations.
Original file line number Diff line number Diff line change 99#include " ../clang-tidy/utils/DesignatedInitializers.h"
1010#include " AST.h"
1111#include " Config.h"
12- #include " HeuristicResolver.h"
1312#include " ParsedAST.h"
1413#include " Protocol.h"
1514#include " SourceCode.h"
2726#include " clang/Basic/OperatorKinds.h"
2827#include " clang/Basic/SourceLocation.h"
2928#include " clang/Basic/SourceManager.h"
29+ #include " clang/Sema/HeuristicResolver.h"
3030#include " llvm/ADT/DenseSet.h"
3131#include " llvm/ADT/STLExtras.h"
3232#include " llvm/ADT/SmallVector.h"
Original file line number Diff line number Diff line change 2020#include " Feature.h"
2121#include " FeatureModule.h"
2222#include " Headers.h"
23- #include " HeuristicResolver.h"
2423#include " IncludeCleaner.h"
2524#include " IncludeFixer.h"
2625#include " Preamble.h"
5352#include " clang/Lex/Lexer.h"
5453#include " clang/Lex/PPCallbacks.h"
5554#include " clang/Lex/Preprocessor.h"
55+ #include " clang/Sema/HeuristicResolver.h"
5656#include " clang/Serialization/ASTWriter.h"
5757#include " clang/Tooling/CompilationDatabase.h"
5858#include " clang/Tooling/Core/Diagnostic.h"
Original file line number Diff line number Diff line change 3838#include < vector>
3939
4040namespace clang {
41+ class HeuristicResolver ;
4142class Sema ;
4243namespace clangd {
43- class HeuristicResolver ;
4444
4545// / Stores and provides access to parsed AST.
4646class ParsedAST {
Original file line number Diff line number Diff line change 99#include " SemanticHighlighting.h"
1010#include " Config.h"
1111#include " FindTarget.h"
12- #include " HeuristicResolver.h"
1312#include " ParsedAST.h"
1413#include " Protocol.h"
1514#include " SourceCode.h"
2726#include " clang/Basic/LangOptions.h"
2827#include " clang/Basic/SourceLocation.h"
2928#include " clang/Basic/SourceManager.h"
29+ #include " clang/Sema/HeuristicResolver.h"
3030#include " clang/Tooling/Syntax/Tokens.h"
3131#include " llvm/ADT/STLExtras.h"
3232#include " llvm/ADT/StringRef.h"
Original file line number Diff line number Diff line change 1010#include " FindSymbols.h"
1111#include " FindTarget.h"
1212#include " Headers.h"
13- #include " HeuristicResolver.h"
1413#include " IncludeCleaner.h"
1514#include " ParsedAST.h"
1615#include " Protocol.h"
5352#include " clang/Index/IndexingOptions.h"
5453#include " clang/Index/USRGeneration.h"
5554#include " clang/Lex/Lexer.h"
55+ #include " clang/Sema/HeuristicResolver.h"
5656#include " clang/Tooling/Syntax/Tokens.h"
5757#include " llvm/ADT/ArrayRef.h"
5858#include " llvm/ADT/DenseMap.h"
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ add_unittest(ClangdUnitTests ClangdTests
6464 GlobalCompilationDatabaseTests.cpp
6565 HeadersTests.cpp
6666 HeaderSourceSwitchTests.cpp
67- HeuristicResolverTests.cpp
6867 HoverTests.cpp
6968 IncludeCleanerTests.cpp
7069 IndexActionTests.cpp
Original file line number Diff line number Diff line change 66//
77// ===----------------------------------------------------------------------===//
88
9- #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_HEURISTICRESOLVER_H
10- #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_HEURISTICRESOLVER_H
9+ #ifndef LLVM_CLANG_SEMA_HEURISTICRESOLVER_H
10+ #define LLVM_CLANG_SEMA_HEURISTICRESOLVER_H
1111
1212#include " clang/AST/Decl.h"
1313#include < vector>
@@ -24,8 +24,6 @@ class NamedDecl;
2424class Type ;
2525class UnresolvedUsingValueDecl ;
2626
27- namespace clangd {
28-
2927// This class handles heuristic resolution of declarations and types in template
3028// code.
3129//
@@ -80,7 +78,6 @@ class HeuristicResolver {
8078 ASTContext &Ctx;
8179};
8280
83- } // namespace clangd
8481} // namespace clang
8582
8683#endif
You can’t perform that action at this time.
0 commit comments