Another attempt to add a clang-tidy check for flagging C-style casts.
authorAlexander Kornienko <alexfh@google.com>
Sun, 29 Jun 2014 22:19:53 +0000 (22:19 +0000)
committerAlexander Kornienko <alexfh@google.com>
Sun, 29 Jun 2014 22:19:53 +0000 (22:19 +0000)
commit276fc642d38bbaa4aca00f517ba2f6f7bd138fe3
treecfe7d060a2bd1dca708e721216c600f9940eaa81
parent9e41b5cc1252846b7e395cb10ebe1faaa481dbc3
Another attempt to add a clang-tidy check for flagging C-style casts.

Summary:
The first version failed the SubstNonTypeTempateParmExpr-related test
on some buildbots. This one uses the new substNonTypeTempateParmExpr matcher to
filter out implicit C-style casts.

This patch depends on D4327.

Reviewers: djasper

Reviewed By: djasper

Subscribers: aemerson, cfe-commits

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

llvm-svn: 212002
clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/google/CMakeLists.txt
clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
clang-tools-extra/test/clang-tidy/avoid-c-style-casts.cpp [new file with mode: 0644]