[cfe-commits] r59946 - in /cfe/trunk: lib/AST/Expr.cpp test/CodeGen/staticinit.c

Eli Friedman eli.friedman at gmail.com
Tue Nov 25 21:09:02 PST 2008

On Tue, Nov 25, 2008 at 1:51 PM, Anders Carlsson <andersca at mac.com> 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.


More information about the cfe-commits mailing list