Generalize/improve parsing of pointer declarations.
Substantial improvements and generalizations to the parsing and declaration handling code to properly parse declarations involving pointers. (No change to user-visible functionality, but this lays groundwork for supporting a more general pointer model.)
This commit is contained in:
2
expr.cpp
2
expr.cpp
@@ -594,7 +594,7 @@ lEmitPrePostIncDec(UnaryExpr::Op op, Expr *expr, SourcePos pos,
|
||||
|
||||
if (lvalue == NULL) {
|
||||
// If we can't get a lvalue, then we have an error here
|
||||
Error(expr->pos, "Can't %s-%s non-lvalues.",
|
||||
Error(pos, "Can't %s-%s non-lvalues.",
|
||||
(op == UnaryExpr::PreInc || op == UnaryExpr::PreDec) ? "pre" : "post",
|
||||
(op == UnaryExpr::PreInc || op == UnaryExpr::PostInc) ? "increment" : "decrement");
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user