llvm-project/clang/test/CXX/expr/expr.const
Richard Trieu dcb5557f2d Improve -Wconstant-conversion
Switch the evaluation from isIntegerConstantExpr to EvaluateAsInt.
EvaluateAsInt will evaluate more types of expressions than
isIntegerConstantExpr.

Move one case from -Wsign-conversion to -Wconstant-conversion.  The case is:
1) Source and target types are signed
2) Source type is wider than the target type
3) The source constant value is positive
4) The conversion will store the value as negative in the target.

llvm-svn: 259271
2016-01-29 23:51:16 +00:00
..
p2-0x.cpp Improve -Wconstant-conversion 2016-01-29 23:51:16 +00:00
p3-0x-nowarn.cpp
p3-0x.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
p5-0x.cpp Update tests touched by r249656 2015-10-08 06:31:22 +00:00