mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Recognize more unary expression operators that may end template-id
This commit is contained in:
parent
b9e712f8d0
commit
2d3ab58e0b
1 changed files with 4 additions and 1 deletions
|
@ -650,11 +650,14 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
case IToken.tLPAREN: // 'ft<int>(args)' or 'c<1 && 2 > (x+y)'
|
||||
return AMBIGUOUS_TEMPLATE_ID;
|
||||
|
||||
// Start of unary expression
|
||||
// Can be start of unary expression or binary expression with a template-id
|
||||
case IToken.tMINUS:
|
||||
case IToken.tPLUS:
|
||||
case IToken.tAMPER:
|
||||
case IToken.tSTAR:
|
||||
case IToken.tAND:
|
||||
return AMBIGUOUS_TEMPLATE_ID;
|
||||
|
||||
case IToken.tNOT:
|
||||
case IToken.tBITCOMPLEMENT:
|
||||
case IToken.tINCR:
|
||||
|
|
Loading…
Add table
Reference in a new issue