[clang-tidy] Fix some false positives in google-readability-casting
authorAlexander Kornienko <alexfh@google.com>
Thu, 29 Jan 2015 15:17:13 +0000 (15:17 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 29 Jan 2015 15:17:13 +0000 (15:17 +0000)
commit78070fbae59b29b5fc7b970b948a9991cc9e9bbc
tree4aea7c22bc6511b6d17d1838cbb37449e04629fe
parent7a2410429378190c32bcc02d499ad592460d7b20
[clang-tidy] Fix some false positives in google-readability-casting

Summary:
Ignore C-style casts in extern "C" {} sections. Be more careful when
detecting redundant casts between typedefs to the same type - emit a more
specific warning and don't automatically fix them.

Reviewers: klimek

Reviewed By: klimek

Subscribers: curdeius, cfe-commits

Differential Revision: http://reviews.llvm.org/D7247

llvm-svn: 227444
clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
clang-tools-extra/test/clang-tidy/google-readability-casting.c
clang-tools-extra/test/clang-tidy/google-readability-casting.cpp