[cfe-dev] Constant expression checking rewrite

Eli Friedman eli.friedman at gmail.com
Mon May 19 00:58:25 PDT 2008

On Sun, May 18, 2008 at 7:45 PM, Ted Kremenek <kremenek at apple.com> wrote:
> Forgive my naivete, could Expr::isIntegerConstantExpr be used for some of
> these purposes?  It seems like there are cases where you actually want to
> compute the constant value to do such checking, and this might be a valid
> approach (although I can see where it would be incomplete).  I'm not certain
> if it would satisfy all the restrictions of a C99 constant expression.

isIntegerConstantExpr doesn't accept general arithmetic expressions;
only integer arithmetic is allowed.


More information about the cfe-dev mailing list