Diff Detail
Event Timeline
LGTM, with nits.
clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp | ||
---|---|---|
434 | This could be const couldn't it? Plus we should express that this is a pointer, I think. | |
435 | ||
clang/test/Analysis/use-after-move.cpp | ||
799–800 | I suppose these changes stem from D131262 coupled with trackExpressionValue, right? ... | |
1019–1025 | ... And this is the only new relevant test case. |
clang/test/Analysis/use-after-move.cpp | ||
---|---|---|
1019–1025 | Hmmm. This example actually looks alright without an explanation of ref or a. Once the object is moved, it doesn't matter what its backstory was. Did you mean std::move(ref)? That would warrant a note about ref (but still, not necessarily about the initializer of a). |
This could be const couldn't it? Plus we should express that this is a pointer, I think.