Implement a TODO: properly invoke actions for the * in things like:

where P is a pointer.

  int A[*P];

llvm-svn: 39199
This commit is contained in:
Chris Lattner 2006-11-21 03:12:15 +00:00
parent a966bf6ebf
commit d8702cd845
1 changed files with 4 additions and 1 deletions

View File

@ -269,7 +269,10 @@ ParseAssignmentExpressionWithLeadingStar(const LexerToken &StarTok) {
ExprResult Res = ParseCastExpression(false);
if (Res.isInvalid) return Res;
// TODO: Combine StarTok + Res to get the new AST.
// Combine StarTok + Res to get the new AST for the combined expression..
Res = Actions.ParseUnaryOp(StarTok.getLocation(), tok::star, Res.Val);
if (Res.isInvalid) return Res;
// We have to parse an entire cast-expression before starting the
// ParseRHSOfBinaryExpression method (which parses any trailing binops). Since