diff options
author | Alexander Kornienko <alexfh@google.com> | 2016-08-03 23:06:03 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2016-08-03 23:06:03 +0000 |
commit | dcbf57d19825667610fbccfd81c9bc6ffc435a1c (patch) | |
tree | bc87985b39981ddba4f024ad56841d1f4f52a9a9 /clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp | |
parent | d6ab7d4508f1bd0159a7d66179bdf78059b47f4f (diff) | |
download | bcm5719-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.cpp | 3 |
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>( |