Skip to content

Commit d5403c8

Browse files
[clangd] Add a unit test suite for HeuristicResolver
Fixes clangd/clangd#2154
1 parent f3590c1 commit d5403c8

File tree

3 files changed

+544
-2
lines changed

3 files changed

+544
-2
lines changed

clang-tools-extra/clangd/HeuristicResolver.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ class UnresolvedUsingValueDecl;
2626

2727
namespace clangd {
2828

29-
// This class heuristic resolution of declarations and types in template code.
29+
// This class handles heuristic resolution of declarations and types in template
30+
// code.
3031
//
3132
// As a compiler, clang only needs to perform certain types of processing on
3233
// template code (such as resolving dependent names to declarations, or
3334
// resolving the type of a dependent expression) after instantiation. Indeed,
3435
// C++ language features such as template specialization mean such resolution
35-
// cannot be done accurately before instantiation
36+
// cannot be done accurately before instantiation.
3637
//
3738
// However, template code is written and read in uninstantiated form, and clangd
3839
// would like to provide editor features like go-to-definition in template code

clang-tools-extra/clangd/unittests/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ add_unittest(ClangdUnitTests ClangdTests
6464
GlobalCompilationDatabaseTests.cpp
6565
HeadersTests.cpp
6666
HeaderSourceSwitchTests.cpp
67+
HeuristicResolverTests.cpp
6768
HoverTests.cpp
6869
IncludeCleanerTests.cpp
6970
IndexActionTests.cpp

0 commit comments

Comments
 (0)