summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-01-29 15:21:32 +0000
committerAlexander Kornienko <alexfh@google.com>2016-01-29 15:21:32 +0000
commit40d307d12089fb7ee05dd5900cea6362fce89f1f (patch)
tree76db2abc04733078aea63644c1ff0d624c9628aa /clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
parent865a7d8aab2d2ba12a5f2526fc746e580878ebaf (diff)
downloadbcm5719-llvm-40d307d12089fb7ee05dd5900cea6362fce89f1f.tar.gz
bcm5719-llvm-40d307d12089fb7ee05dd5900cea6362fce89f1f.zip
[clang-tidy] Move implicit-cast-in-loop check to upstream.
Summary: This is implemented originally by Alex Pilkiewicz (pilki@google.com). Reviewers: alexfh Subscribers: cfe-commits Patch by Haojian Wu! Differential Revision: http://reviews.llvm.org/D16721 llvm-svn: 259195
Diffstat (limited to 'clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp b/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
index ab0dbc8012a..977e6a86b64 100644
--- a/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
@@ -11,6 +11,7 @@
#include "../ClangTidyModule.h"
#include "../ClangTidyModuleRegistry.h"
+#include "ImplicitCastInLoopCheck.h"
#include "UnnecessaryCopyInitialization.h"
namespace clang {
@@ -20,6 +21,8 @@ namespace performance {
class PerformanceModule : public ClangTidyModule {
public:
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
+ CheckFactories.registerCheck<ImplicitCastInLoopCheck>(
+ "performance-implicit-cast-in-loop");
CheckFactories.registerCheck<UnnecessaryCopyInitialization>(
"performance-unnecessary-copy-initialization");
}
OpenPOWER on IntegriCloud