summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-08-29 14:38:46 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-08-29 14:38:46 +0000
commit06e323a6eeff2652342d96078139f24e39b656e0 (patch)
treefc0b7a17bd6d8f7a48247fba6185afe5b58743b0 /clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
parentc1c05aeb5dc2b68ff85f0164665f2f2023c1701e (diff)
downloadbcm5719-llvm-06e323a6eeff2652342d96078139f24e39b656e0.tar.gz
bcm5719-llvm-06e323a6eeff2652342d96078139f24e39b656e0.zip
[clang-tidy] Add a checker that suggests replacing short/long/long long with fixed-size types.
Differential Revision: http://reviews.llvm.org/D5119 llvm-svn: 216726
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 1681727061c..c945e74ae3d 100644
--- a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
@@ -13,6 +13,7 @@
#include "AvoidCStyleCastsCheck.h"
#include "ExplicitConstructorCheck.h"
#include "ExplicitMakePairCheck.h"
+#include "IntegerTypesCheck.h"
#include "MemsetZeroLengthCheck.h"
#include "NamedParameterCheck.h"
#include "OverloadedUnaryAndCheck.h"
@@ -41,6 +42,9 @@ public:
"google-explicit-constructor",
new ClangTidyCheckFactory<ExplicitConstructorCheck>());
CheckFactories.addCheckFactory(
+ "google-runtime-int",
+ new ClangTidyCheckFactory<runtime::IntegerTypesCheck>());
+ CheckFactories.addCheckFactory(
"google-runtime-operator",
new ClangTidyCheckFactory<runtime::OverloadedUnaryAndCheck>());
CheckFactories.addCheckFactory(
OpenPOWER on IntegriCloud