1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 01:06:01 +02:00

Recognize more unary expression operators that may end template-id

This commit is contained in:
Igor V. Kovalenko 2023-02-23 02:25:06 +03:00 committed by Jonah Graham
parent b9e712f8d0
commit 2d3ab58e0b

View file

@ -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: