File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ void LostStdMoveCheck::registerMatchers(MatchFinder *Finder) {
63
63
const Expr *LostStdMoveCheck::getLastVarUsage (const VarDecl &Var,
64
64
const Decl &Func,
65
65
ASTContext &Context) {
66
- auto Exprs = allDeclRefExprs (Var, Func, Context);
66
+ llvm::SmallPtrSet< const DeclRefExpr *, 16 > Exprs = allDeclRefExprs (Var, Func, Context);
67
67
68
68
const Expr *LastExpr = nullptr ;
69
69
for (const auto &Expr : Exprs) {
@@ -95,7 +95,7 @@ void LostStdMoveCheck::check(const MatchFinder::MatchResult &Result) {
95
95
if (MatchedUseCall)
96
96
return ;
97
97
98
- const auto *LastUsage =
98
+ const Expr *LastUsage =
99
99
getLastVarUsage (*MatchedDecl, *MatchedFunc, *Result.Context );
100
100
if (LastUsage == nullptr )
101
101
return ;
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ New checks
133
133
- New :doc: `performance-lost-std-move
134
134
<clang-tidy/checks/performance/lost-std-move>` check.
135
135
136
- Searches for lost std::move().
136
+ Searches for lost `` std::move() `` .
137
137
138
138
- New :doc: `readability-ambiguous-smartptr-reset-call
139
139
<clang-tidy/checks/readability/ambiguous-smartptr-reset-call>` check.
You can’t perform that action at this time.
0 commit comments