summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp')
-rw-r--r--clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
index 2df0f1c9a57..b353c0bdb4e 100644
--- a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
+++ b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
@@ -630,7 +630,24 @@ $InactiveCode[[]] #else
R"cpp(
template <typename... $TemplateParameter[[Elements]]>
struct $Class[[TupleSize]] {
- static const int $StaticField[[size]] = sizeof...($TemplateParameter[[Elements]]);
+ static const int $StaticField[[size]] =
+sizeof...($TemplateParameter[[Elements]]);
+ };
+ )cpp",
+ // More dependent types
+ R"cpp(
+ template <typename $TemplateParameter[[T]]>
+ struct $Class[[Waldo]] {
+ using $Typedef[[Location1]] = typename $TemplateParameter[[T]]
+ ::$DependentType[[Resolver]]::$DependentType[[Location]];
+ using $Typedef[[Location2]] = typename $TemplateParameter[[T]]
+ ::template $DependentType[[Resolver]]<$TemplateParameter[[T]]>
+ ::$DependentType[[Location]];
+ using $Typedef[[Location3]] = typename $TemplateParameter[[T]]
+ ::$DependentType[[Resolver]]
+ ::template $DependentType[[Location]]<$TemplateParameter[[T]]>;
+ static const int $StaticField[[Value]] = $TemplateParameter[[T]]
+ ::$DependentType[[Resolver]]::$DependentName[[Value]];
};
)cpp"};
for (const auto &TestCase : TestCases) {
OpenPOWER on IntegriCloud