forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user