summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-12-17 20:23:14 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-12-17 20:23:14 +0000
commit79578cc936771c531dce837d359068197b20a882 (patch)
treeb61486a27d51a01e746c28ac755ec426a31485bc /clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
parent3aaf11fbd49daf1f9f61064d753c03dc46567eb2 (diff)
downloadbcm5719-llvm-79578cc936771c531dce837d359068197b20a882.tar.gz
bcm5719-llvm-79578cc936771c531dce837d359068197b20a882.zip
[clang-tidy] Remove duplicated check from move-constructor-init
Summary: An addition to the move-constructor-init check was duplicating the modernize-pass-by-value check. Remove the additional check and UseCERTSemantics option. Run the move-constructor-init test with both checks enabled. Fix modernize-pass-by-value false-positive when initializing a base class. Add option to modernize-pass-by-value to only warn about parameters that are already values. Reviewers: alexfh, flx, aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26453 llvm-svn: 290051
Diffstat (limited to 'clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp b/clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
index 0b583843229..edc3cf20999 100644
--- a/clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
+++ b/clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
@@ -95,7 +95,7 @@ void UnnecessaryValueParamCheck::check(const MatchFinder::MatchResult &Result) {
// Do not trigger on non-const value parameters when:
// 1. they are in a constructor definition since they can likely trigger
- // misc-move-constructor-init which will suggest to move the argument.
+ // modernize-pass-by-value which will suggest to move the argument.
if (!IsConstQualified && (llvm::isa<CXXConstructorDecl>(Function) ||
!Function->doesThisDeclarationHaveABody()))
return;
OpenPOWER on IntegriCloud