summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/unittests/FindTargetTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/unittests/FindTargetTests.cpp')
-rw-r--r--clang-tools-extra/clangd/unittests/FindTargetTests.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/clang-tools-extra/clangd/unittests/FindTargetTests.cpp b/clang-tools-extra/clangd/unittests/FindTargetTests.cpp
index 32aa25a1bd5..91f78e304f8 100644
--- a/clang-tools-extra/clangd/unittests/FindTargetTests.cpp
+++ b/clang-tools-extra/clangd/unittests/FindTargetTests.cpp
@@ -615,20 +615,18 @@ TEST_F(FindExplicitReferencesTest, All) {
)cpp",
"0: targets = {vector<int>}\n"
"1: targets = {vector<bool>}\n"},
- // FIXME: Fix 'allTargetDecls' to return alias template and re-enable.
// Template type aliases.
- // {R"cpp(
- // template <class T> struct vector { using value_type = T; };
- // template <> struct vector<bool> { using value_type = bool; };
- // template <class T> using valias = vector<T>;
- // void foo() {
- // $0^valias<int> vi;
- // $1^valias<bool> vb;
- // }
- // )cpp",
- // "0: targets = {valias}\n"
- // "1: targets = {valias}\n"},
-
+ {R"cpp(
+ template <class T> struct vector { using value_type = T; };
+ template <> struct vector<bool> { using value_type = bool; };
+ template <class T> using valias = vector<T>;
+ void foo() {
+ $0^valias<int> vi;
+ $1^valias<bool> vb;
+ }
+ )cpp",
+ "0: targets = {valias}\n"
+ "1: targets = {valias}\n"},
// MemberExpr should know their using declaration.
{R"cpp(
struct X { void func(int); }
OpenPOWER on IntegriCloud