summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-08-03 23:06:03 +0000
committerAlexander Kornienko <alexfh@google.com>2016-08-03 23:06:03 +0000
commitdcbf57d19825667610fbccfd81c9bc6ffc435a1c (patch)
treebc87985b39981ddba4f024ad56841d1f4f52a9a9 /clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
parentd6ab7d4508f1bd0159a7d66179bdf78059b47f4f (diff)
downloadbcm5719-llvm-dcbf57d19825667610fbccfd81c9bc6ffc435a1c.tar.gz
bcm5719-llvm-dcbf57d19825667610fbccfd81c9bc6ffc435a1c.zip
[clang-tidy] Inefficient string operation
Patch by Bittner Barni! Differential revision: https://reviews.llvm.org/D20196 llvm-svn: 277677
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 984a9fb2ba1..a722ffb14aa 100644
--- a/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
@@ -10,6 +10,7 @@
#include "../ClangTidy.h"
#include "../ClangTidyModule.h"
#include "../ClangTidyModuleRegistry.h"
+#include "InefficientStringConcatenationCheck.h"
#include "FasterStringFindCheck.h"
#include "ForRangeCopyCheck.h"
@@ -30,6 +31,8 @@ public:
"performance-for-range-copy");
CheckFactories.registerCheck<ImplicitCastInLoopCheck>(
"performance-implicit-cast-in-loop");
+ CheckFactories.registerCheck<InefficientStringConcatenationCheck>(
+ "performance-inefficient-string-concatenation");
CheckFactories.registerCheck<UnnecessaryCopyInitialization>(
"performance-unnecessary-copy-initialization");
CheckFactories.registerCheck<UnnecessaryValueParamCheck>(
OpenPOWER on IntegriCloud