forked from qt-creator/qt-creator
C++: fix highlighting for template parameters for function calls.
Change-Id: Ie0133893d8b8d35ea2aa599cb8f7d5c2cc55271e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
a0d6df7bd8
commit
3173f6fb3e
@@ -594,6 +594,8 @@ bool CheckSymbols::visit(CallAST *ast)
|
||||
if (QualifiedNameAST *q = memberName->asQualifiedName()) {
|
||||
checkNestedName(q);
|
||||
memberName = q->unqualified_name;
|
||||
} else if (TemplateIdAST *tId = memberName->asTemplateId()) {
|
||||
accept(tId->template_argument_list);
|
||||
}
|
||||
|
||||
if (!maybeAddFunction(candidates, memberName, argumentCount)
|
||||
@@ -611,6 +613,8 @@ bool CheckSymbols::visit(CallAST *ast)
|
||||
if (QualifiedNameAST *q = exprName->asQualifiedName()) {
|
||||
checkNestedName(q);
|
||||
exprName = q->unqualified_name;
|
||||
} else if (TemplateIdAST *tId = exprName->asTemplateId()) {
|
||||
accept(tId->template_argument_list);
|
||||
}
|
||||
|
||||
const QList<LookupItem> candidates =
|
||||
|
||||
Reference in New Issue
Block a user