[PATCH] D64666: [Sema] Enable -Wimplicit-float-conversion for integral to floating point precision loss
Ziang Wan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 26 13:51:36 PDT 2019
ziangwan updated this revision to Diff 212001.
ziangwan added a comment.
Update diff.
1. Silence the warning when C++11 narrowing is in effect on intialization-list expression.
2. Add test cases to test "no duplicated warnings for c++11 narrowing"
3. Updated test cases to handle 32-bit host machine.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64666/new/
https://reviews.llvm.org/D64666
Files:
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/conversion.c
clang/test/Sema/ext_vector_casts.c
clang/test/Sema/implicit-int-float-conversion.c
clang/test/Sema/implicit-int-float-narrowing.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64666.212001.patch
Type: text/x-patch
Size: 13430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190726/171895dd/attachment.bin>
More information about the cfe-commits
mailing list