Community
Participate
Working Groups
The class CPPASTUnaryExpression implements the interface IASTUnaryExpression but it should instead implement ICPPASTUnaryExpression.
Created attachment 52750 [details] Patch for CPPASTUnaryExpression
Looks like an oversight. There's only statics defined in the CPP version so functionally I don't think we rely on it. But I can see that if you need to make sure it's the CPP version (instanceof) that you'll need this.
The statics in IGNUASTUnaryExp and ICPPASTUnaryExp have the same values (IASTUnaryExpression.op_last + i) so I have to use instanceof to make sure it is the CPP version.
Patch Applied. Well only sort of. I just added the 'CPP' and did an organize imports. The result should be the same :).