Add a check to flag the usage of C-style casts (Google Style).
authorAlexander Kornienko <alexfh@google.com>
Wed, 25 Jun 2014 14:52:44 +0000 (14:52 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 25 Jun 2014 14:52:44 +0000 (14:52 +0000)
commit73ba4245069332fd066809a2c5792c7489467364
treeeb496cf2f1f2dd35a73f17f5c5228ef32f7484e2
parent9364ac69d8497f85b57a5815b37460c43319b3bb
Add a check to flag the usage of C-style casts (Google Style).

Summary:
Add a check to flag the usage of C-style casts, as per Google Style
Guide:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Casting#Casting

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

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

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