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: >
16
16
-modernize-use-trailing-return-type,
17
17
performance-*,
18
18
-performance-enum-size,
19
- -performance-move-const-arg,
20
19
-performance-no-int-to-ptr,
21
20
-performance-type-promotion-in-math-fn,
22
21
-performance-unnecessary-value-param,
@@ -38,3 +37,7 @@ Checks: >
38
37
-readability-static-definition-in-anonymous-namespace,
39
38
-readability-suspicious-call-argument,
40
39
-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) {
132
132
hasAncestor (functionDecl ().bind (" func" )),
133
133
hasAncestor (functionDecl (
134
134
isDefinition (), equalsBoundNode (" func" ), ToParam,
135
- unless (anyOf (isDeleted (),
136
- hasDescendant (std::move (ForwardCallMatcher))))))),
135
+ unless (anyOf (isDeleted (), hasDescendant (ForwardCallMatcher)))))),
137
136
this );
138
137
}
139
138
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ void AvoidCArraysCheck::registerMatchers(MatchFinder *Finder) {
67
67
hasParent (fieldDecl (
68
68
hasParent (recordDecl (isExternCContext ())))),
69
69
hasAncestor (functionDecl (isExternC ())))),
70
- std::move ( IgnoreStringArrayIfNeededMatcher) )
70
+ IgnoreStringArrayIfNeededMatcher)
71
71
.bind (" typeloc" ),
72
72
this );
73
73
}
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ void UseStdNumbersCheck::registerMatchers(MatchFinder *const Finder) {
319
319
320
320
Finder->addMatcher (
321
321
expr (
322
- anyOfExhaustive (std::move ( ConstantMatchers) ),
322
+ anyOfExhaustive (ConstantMatchers),
323
323
unless (hasParent (explicitCastExpr (hasDestinationType (isFloating ())))),
324
324
hasType (qualType (hasCanonicalTypeUnqualified (
325
325
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) {
149
149
}
150
150
Finder->addMatcher (
151
151
callExpr (
152
- callee (functionDecl (hasAnyName (std::move ( Names) ))
152
+ callee (functionDecl (hasAnyName (Names))
153
153
.bind ((FuncDecl + Twine (Replacers.size () - 1 ).str ()))),
154
154
ast_matchers::internal::DynTypedMatcher::constructVariadic (
155
155
ast_matchers::internal::DynTypedMatcher::VO_AnyOf,
You can’t perform that action at this time.
0 commit comments