summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/implicit-int-float-narrowing.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Enable -Wimplicit-float-conversion for integral to floating point ↵Ziang Wan2019-08-011-0/+10
precision loss Issue an warning when the code tries to do an implicit int -> float conversion, where the float type ha a narrower significant than the float type. The new warning is controlled by flag -Wimplicit-int-float-conversion, under -Wimplicit-float-conversion and -Wconversion. It is also silenced when c++11 narrowing warning is issued. Differential Revision: https://reviews.llvm.org/D64666 llvm-svn: 367497
OpenPOWER on IntegriCloud