On Tue, Nov 25, 2008 at 1:51 PM, Anders Carlsson <[EMAIL PROTECTED]> wrote:
> We also have
>
> bool CheckForConstantInitializer(Expr *e, QualType t);
> bool CheckArithmeticConstantExpression(const Expr* e);
> bool CheckAddressConstantExpression(const Expr* e);
> bool CheckAddressConstantExpressionLValue(const Expr* e);
>
> in Sema - not sure what to do about them. Can they use Evaluate?

They could... the issue is that we want to print warnings for stuff
that we can evaluate, but isn't legal per C99.  They could still be
simplified using evaluate, though: that way, we can get rid of some of
the checks that deal with extensions.

-Eli
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to