summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-06-25 14:52:44 +0000
committerAlexander Kornienko <alexfh@google.com>2014-06-25 14:52:44 +0000
commit73ba4245069332fd066809a2c5792c7489467364 (patch)
treeeb496cf2f1f2dd35a73f17f5c5228ef32f7484e2 /clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
parent9364ac69d8497f85b57a5815b37460c43319b3bb (diff)
downloadbcm5719-llvm-73ba4245069332fd066809a2c5792c7489467364.tar.gz
bcm5719-llvm-73ba4245069332fd066809a2c5792c7489467364.zip
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
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
index 05787cf214d..bafaada451b 100644
--- a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
@@ -10,6 +10,7 @@
#include "../ClangTidy.h"
#include "../ClangTidyModule.h"
#include "../ClangTidyModuleRegistry.h"
+#include "CStyleCastsCheck.h"
#include "ExplicitConstructorCheck.h"
using namespace clang::ast_matchers;
@@ -23,6 +24,9 @@ public:
CheckFactories.addCheckFactory(
"google-explicit-constructor",
new ClangTidyCheckFactory<ExplicitConstructorCheck>());
+ CheckFactories.addCheckFactory(
+ "google-readability-casting",
+ new ClangTidyCheckFactory<readability::CStyleCastsCheck>());
}
};
OpenPOWER on IntegriCloud