ClangBackEnd: Support highlighting of alias templates

Fixes: QTCREATORBUG-24552
Change-Id: I80d2b16114234cf896173cd4104e6a5f12009f69
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-09-08 15:48:52 +02:00
parent 226982b7b0
commit d14be7493f
5 changed files with 20 additions and 8 deletions

View File

@@ -1722,6 +1722,13 @@ TEST_F(TokenProcessor, StaticPrivateMember)
ASSERT_THAT(container.extraInfo.accessSpecifier, ClangBackEnd::AccessSpecifier::Private);
}
TEST_F(TokenProcessor, TemplateAlias)
{
const auto infos = translationUnit.tokenInfosInRange(sourceRange(701, 8));
ASSERT_THAT(infos[0], HasTwoTypes(HighlightingType::Type, HighlightingType::TypeAlias));
}
Data *TokenProcessor::d;
void TokenProcessor::SetUpTestCase()