File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ Checks: >
1616 -modernize-use-trailing-return-type,
1717 performance-*,
1818 -performance-enum-size,
19- -performance-move-const-arg,
2019 -performance-no-int-to-ptr,
2120 -performance-type-promotion-in-math-fn,
2221 -performance-unnecessary-value-param,
@@ -38,3 +37,7 @@ Checks: >
3837 -readability-static-definition-in-anonymous-namespace,
3938 -readability-suspicious-call-argument,
4039 -readability-use-anyofallof
40+
41+ CheckOptions :
42+ - key : performance-move-const-arg.CheckTriviallyCopyableMove
43+ value : false
Original file line number Diff line number Diff line change @@ -132,8 +132,7 @@ void MissingStdForwardCheck::registerMatchers(MatchFinder *Finder) {
132132 hasAncestor (functionDecl ().bind (" func" )),
133133 hasAncestor (functionDecl (
134134 isDefinition (), equalsBoundNode (" func" ), ToParam,
135- unless (anyOf (isDeleted (),
136- hasDescendant (std::move (ForwardCallMatcher))))))),
135+ unless (anyOf (isDeleted (), hasDescendant (ForwardCallMatcher)))))),
137136 this );
138137}
139138
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ void AvoidCArraysCheck::registerMatchers(MatchFinder *Finder) {
6767 hasParent (fieldDecl (
6868 hasParent (recordDecl (isExternCContext ())))),
6969 hasAncestor (functionDecl (isExternC ())))),
70- std::move ( IgnoreStringArrayIfNeededMatcher) )
70+ IgnoreStringArrayIfNeededMatcher)
7171 .bind (" typeloc" ),
7272 this );
7373}
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ void UseStdNumbersCheck::registerMatchers(MatchFinder *const Finder) {
319319
320320 Finder->addMatcher (
321321 expr (
322- anyOfExhaustive (std::move ( ConstantMatchers) ),
322+ anyOfExhaustive (ConstantMatchers),
323323 unless (hasParent (explicitCastExpr (hasDestinationType (isFloating ())))),
324324 hasType (qualType (hasCanonicalTypeUnqualified (
325325 anyOf (qualType (asString (" float" )).bind (" float" ),
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ void UseRangesCheck::registerMatchers(MatchFinder *Finder) {
149149 }
150150 Finder->addMatcher (
151151 callExpr (
152- callee (functionDecl (hasAnyName (std::move ( Names) ))
152+ callee (functionDecl (hasAnyName (Names))
153153 .bind ((FuncDecl + Twine (Replacers.size () - 1 ).str ()))),
154154 ast_matchers::internal::DynTypedMatcher::constructVariadic (
155155 ast_matchers::internal::DynTypedMatcher::VO_AnyOf,
You can’t perform that action at this time.
0 commit comments