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
91
91
GlobalCompilationDatabase.cpp
92
92
Headers.cpp
93
93
HeaderSourceSwitch.cpp
94
- HeuristicResolver.cpp
95
94
Hover.cpp
96
95
IncludeCleaner.cpp
97
96
IncludeFixer.cpp
Original file line number Diff line number Diff line change 8
8
9
9
#include " FindTarget.h"
10
10
#include " AST.h"
11
- #include " HeuristicResolver.h"
12
11
#include " support/Logger.h"
13
12
#include " clang/AST/ASTConcept.h"
14
13
#include " clang/AST/ASTTypeTraits.h"
35
34
#include " clang/Basic/SourceLocation.h"
36
35
#include " clang/Basic/SourceManager.h"
37
36
#include " clang/Basic/Specifiers.h"
37
+ #include " clang/Sema/HeuristicResolver.h"
38
38
#include " llvm/ADT/STLExtras.h"
39
39
#include " llvm/ADT/SmallVector.h"
40
40
#include " llvm/ADT/StringExtras.h"
Original file line number Diff line number Diff line change 33
33
#include < bitset>
34
34
35
35
namespace clang {
36
- namespace clangd {
36
+
37
37
class HeuristicResolver ;
38
38
39
+ namespace clangd {
40
+
39
41
// / Describes the link between an AST node and a Decl it refers to.
40
42
enum class DeclRelation : unsigned ;
41
43
// / A bitfield of DeclRelations.
Original file line number Diff line number Diff line change 9
9
#include " ../clang-tidy/utils/DesignatedInitializers.h"
10
10
#include " AST.h"
11
11
#include " Config.h"
12
- #include " HeuristicResolver.h"
13
12
#include " ParsedAST.h"
14
13
#include " Protocol.h"
15
14
#include " SourceCode.h"
27
26
#include " clang/Basic/OperatorKinds.h"
28
27
#include " clang/Basic/SourceLocation.h"
29
28
#include " clang/Basic/SourceManager.h"
29
+ #include " clang/Sema/HeuristicResolver.h"
30
30
#include " llvm/ADT/DenseSet.h"
31
31
#include " llvm/ADT/STLExtras.h"
32
32
#include " llvm/ADT/SmallVector.h"
Original file line number Diff line number Diff line change 20
20
#include " Feature.h"
21
21
#include " FeatureModule.h"
22
22
#include " Headers.h"
23
- #include " HeuristicResolver.h"
24
23
#include " IncludeCleaner.h"
25
24
#include " IncludeFixer.h"
26
25
#include " Preamble.h"
53
52
#include " clang/Lex/Lexer.h"
54
53
#include " clang/Lex/PPCallbacks.h"
55
54
#include " clang/Lex/Preprocessor.h"
55
+ #include " clang/Sema/HeuristicResolver.h"
56
56
#include " clang/Serialization/ASTWriter.h"
57
57
#include " clang/Tooling/CompilationDatabase.h"
58
58
#include " clang/Tooling/Core/Diagnostic.h"
Original file line number Diff line number Diff line change 38
38
#include < vector>
39
39
40
40
namespace clang {
41
+ class HeuristicResolver ;
41
42
class Sema ;
42
43
namespace clangd {
43
- class HeuristicResolver ;
44
44
45
45
// / Stores and provides access to parsed AST.
46
46
class ParsedAST {
Original file line number Diff line number Diff line change 9
9
#include " SemanticHighlighting.h"
10
10
#include " Config.h"
11
11
#include " FindTarget.h"
12
- #include " HeuristicResolver.h"
13
12
#include " ParsedAST.h"
14
13
#include " Protocol.h"
15
14
#include " SourceCode.h"
27
26
#include " clang/Basic/LangOptions.h"
28
27
#include " clang/Basic/SourceLocation.h"
29
28
#include " clang/Basic/SourceManager.h"
29
+ #include " clang/Sema/HeuristicResolver.h"
30
30
#include " clang/Tooling/Syntax/Tokens.h"
31
31
#include " llvm/ADT/STLExtras.h"
32
32
#include " llvm/ADT/StringRef.h"
Original file line number Diff line number Diff line change 10
10
#include " FindSymbols.h"
11
11
#include " FindTarget.h"
12
12
#include " Headers.h"
13
- #include " HeuristicResolver.h"
14
13
#include " IncludeCleaner.h"
15
14
#include " ParsedAST.h"
16
15
#include " Protocol.h"
53
52
#include " clang/Index/IndexingOptions.h"
54
53
#include " clang/Index/USRGeneration.h"
55
54
#include " clang/Lex/Lexer.h"
55
+ #include " clang/Sema/HeuristicResolver.h"
56
56
#include " clang/Tooling/Syntax/Tokens.h"
57
57
#include " llvm/ADT/ArrayRef.h"
58
58
#include " llvm/ADT/DenseMap.h"
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ add_unittest(ClangdUnitTests ClangdTests
64
64
GlobalCompilationDatabaseTests.cpp
65
65
HeadersTests.cpp
66
66
HeaderSourceSwitchTests.cpp
67
- HeuristicResolverTests.cpp
68
67
HoverTests.cpp
69
68
IncludeCleanerTests.cpp
70
69
IndexActionTests.cpp
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
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
11
11
12
12
#include " clang/AST/Decl.h"
13
13
#include < vector>
@@ -24,8 +24,6 @@ class NamedDecl;
24
24
class Type ;
25
25
class UnresolvedUsingValueDecl ;
26
26
27
- namespace clangd {
28
-
29
27
// This class handles heuristic resolution of declarations and types in template
30
28
// code.
31
29
//
@@ -80,7 +78,6 @@ class HeuristicResolver {
80
78
ASTContext &Ctx;
81
79
};
82
80
83
- } // namespace clangd
84
81
} // namespace clang
85
82
86
83
#endif
You can’t perform that action at this time.
0 commit comments