The misc-misplaced-widening-cast currently only looks at the size to determine if a cast is widening.
With this patch it will also warn when there are portability problems.
The test file should now be target independant.
Paths
| Differential D17140
[clang-tidy] improve misc-misplaced-widening-cast so it also detects portability problems ClosedPublic Authored by danielmarjamaki on Feb 11 2016, 7:07 AM.
Details Summary The misc-misplaced-widening-cast currently only looks at the size to determine if a cast is widening. With this patch it will also warn when there are portability problems. The test file should now be target independant.
Diff Detail Event Timelinedanielmarjamaki retitled this revision from to [clang-tidy] improve misc-misplaced-widening-cast so it also detects portability problems. danielmarjamaki updated this object. This revision is now accepted and ready to land.Feb 11 2016, 8:11 AM Closed by commit rL260665: [clang-tidy] improve misc-misplaced-widening-cast so it also detects… (authored by danielmarjamaki). · Explain WhyFeb 11 2016, 11:55 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 47640 clang-tidy/misc/MisplacedWideningCastCheck.cpp
test/clang-tidy/misc-misplaced-widening-cast.cpp
|