summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2019-11-18 13:22:10 +0100
committerClement Courbet <courbet@google.com>2019-11-22 08:47:55 +0100
commit95fe54931fddccccf9740b3247219e30504da447 (patch)
treeaeb695865e9b5ddf34493b4852845e580d133c75 /clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
parent036790f988999cf9f7ac8a37c5cb43efa9bb0455 (diff)
downloadbcm5719-llvm-95fe54931fddccccf9740b3247219e30504da447.tar.gz
bcm5719-llvm-95fe54931fddccccf9740b3247219e30504da447.zip
[clang-tidy] new performance-no-automatic-move check.
Summary: The check flags constructs that prevent automatic move of local variables. Reviewers: aaron.ballman Subscribers: mgorny, xazax.hun, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70390
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 269d09b98a6..87673a228da 100644
--- a/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
@@ -17,6 +17,7 @@
#include "InefficientVectorOperationCheck.h"
#include "MoveConstArgCheck.h"
#include "MoveConstructorInitCheck.h"
+#include "NoAutomaticMoveCheck.h"
#include "NoexceptMoveConstructorCheck.h"
#include "TriviallyDestructibleCheck.h"
#include "TypePromotionInMathFnCheck.h"
@@ -46,6 +47,8 @@ public:
"performance-move-const-arg");
CheckFactories.registerCheck<MoveConstructorInitCheck>(
"performance-move-constructor-init");
+ CheckFactories.registerCheck<NoAutomaticMoveCheck>(
+ "performance-no-automatic-move");
CheckFactories.registerCheck<NoexceptMoveConstructorCheck>(
"performance-noexcept-move-constructor");
CheckFactories.registerCheck<TriviallyDestructibleCheck>(
OpenPOWER on IntegriCloud