This is an archive of the discontinued LLVM Phabricator instance.

[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

Repository
rL LLVM

Event Timeline

danielmarjamaki retitled this revision from to [clang-tidy] improve misc-misplaced-widening-cast so it also detects portability problems.
danielmarjamaki updated this object.
danielmarjamaki added a reviewer: alexfh.
danielmarjamaki set the repository for this revision to rL LLVM.
danielmarjamaki added a subscriber: cfe-commits.
alexfh accepted this revision.Feb 11 2016, 8:11 AM
alexfh edited edge metadata.

LG

This revision is now accepted and ready to land.Feb 11 2016, 8:11 AM
This revision was automatically updated to reflect the committed changes.