mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 90195 - Made the hasTemplateId check more generic to allow for completion of template parameters.
This commit is contained in:
parent
5714d24d0e
commit
5507b484dd
1 changed files with 4 additions and 2 deletions
|
@ -365,9 +365,11 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
case IToken.tCOMPLETION:
|
case IToken.tCOMPLETION:
|
||||||
case IToken.tEOC:
|
case IToken.tEOC:
|
||||||
last = consume();
|
last = consume();
|
||||||
last = consumeTemplateArguments(last, argumentList);
|
IToken templateLast = consumeTemplateArguments(last, argumentList);
|
||||||
if (last.getType() == IToken.tGT)
|
if (last != templateLast) {
|
||||||
|
last = templateLast;
|
||||||
hasTemplateId = true;
|
hasTemplateId = true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue