From d8702cd8451cf0e696f37349a79b3207ea35a3d3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 21 Nov 2006 03:12:15 +0000 Subject: [PATCH] Implement a TODO: properly invoke actions for the * in things like: where P is a pointer. int A[*P]; llvm-svn: 39199 --- clang/Parse/ParseExpr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/Parse/ParseExpr.cpp b/clang/Parse/ParseExpr.cpp index a19f5089b4a6..c3288bba31d1 100644 --- a/clang/Parse/ParseExpr.cpp +++ b/clang/Parse/ParseExpr.cpp @@ -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