summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/FileRemapper.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-04-05 00:16:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-04-05 00:16:44 +0000
commit09ffc9b47385f7965bbd2d6bcc646221ab1ff704 (patch)
tree04e05de38dcfc4834b500550d59a77f0dfacef6f /clang/lib/ARCMigrate/FileRemapper.cpp
parenta658226ac03f1fce39c61e310bae030b7c9ec9fe (diff)
downloadbcm5719-llvm-09ffc9b47385f7965bbd2d6bcc646221ab1ff704.tar.gz
bcm5719-llvm-09ffc9b47385f7965bbd2d6bcc646221ab1ff704.zip
Enable warn_impcast_literal_float_to_integer by default.
This diagnostic seems to be production ready, it's just an oversight that it wasn't turned on by default. The test changes are a bit of a mixed bag. Some tests that seemed like they clearly didn't need to use this behavior have been modified not to use it. Others that I couldn't be sure about, I added the necessary expected-warnings to. It's possible the diagnostic message could be improved to make it clearer that this warning can be suppressed by using a value that won't lose precision when converted to the target type (but can still be a floating point literal, such as "bool b = 1.0;"). llvm-svn: 154068
Diffstat (limited to 'clang/lib/ARCMigrate/FileRemapper.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud