[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
Sat Jul 13 19:00:20 PDT 2019
ziangwan updated this revision to Diff 209710.
ziangwan added a comment.
Update diff:
1. fix the spelling issue `may loses integer precision` -> `may lose precision`
2. issue more accurate warnings when `int->float` conversion involves constant integer.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64666/new/
https://reviews.llvm.org/D64666
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Driver/ToolChains/Arch/AArch64.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/conversion.c
clang/test/Sema/ext_vector_casts.c
clang/test/Sema/implicit-float-conversion.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64666.209710.patch
Type: text/x-patch
Size: 8140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190714/f03ad25c/attachment.bin>
More information about the cfe-commits
mailing list