forked from qt-creator/qt-creator
CppTools: Fix highlighting and follow for template using argument
Use-case: template<class T> using Foo = Bar<T>; // T not highlighted Task-number: QTCREATORBUG-9944 Change-Id: I04cb62ea6a21f158f7fb4fb7ac79ccd6eb1bbfbb Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
7389f46959
commit
3fe1b92566
@@ -996,10 +996,11 @@ void tst_CheckSymbols::test_checksymbols_data()
|
||||
|
||||
QTest::newRow("template_alias")
|
||||
<< _("template<class T>\n"
|
||||
"using Foo = Bar;\n")
|
||||
"using Foo = Bar<T>;\n")
|
||||
<< (QList<Use>()
|
||||
<< Use(1, 16, 1, Highlighting::TypeUse)
|
||||
<< Use(2, 7, 3, Highlighting::TypeUse)
|
||||
<< Use(2, 17, 1, Highlighting::TypeUse)
|
||||
);
|
||||
|
||||
QTest::newRow("using_inside_different_namespace_QTCREATORBUG7978")
|
||||
|
||||
Reference in New Issue
Block a user