]> granicus.if.org Git - clang/commit
Perform stricter/more accurate checking for C99 constant expressions
authorEli Friedman <eli.friedman@gmail.com>
Tue, 20 May 2008 13:48:25 +0000 (13:48 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 20 May 2008 13:48:25 +0000 (13:48 +0000)
commitc594b323555820a7088fb6d0af1803beccc86c44
tree075620f2564d16547c8c1398d850c0fdc27107e8
parent8ba179d4a39c79ae486472a5f413f763ffcc0739
Perform stricter/more accurate checking for C99 constant expressions
in Sema, per discussion on mailing list.  This doesn't cause any changes
in the test results.  I'll probably add some more tests at some point,
but it's an open question what we need to accept to be compatible with
real code.

This doesn't touch the existing isConstantExpr method on Expr; that
should be addressed somehow eventually (either removed or refined to
whatever is appropriate).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51318 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp