[PATCH] D49910: [clang-tidy] Recognize [[clang::reinitializes]] attribute in bugprone-use-after-move
Martin Böhme via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 3 11:56:27 PDT 2018
mboehme added a comment.
Sorry, that code got formatted strangely. Here's the same code block in more legible form:
MyContainer<T> container;
T t;
while (GetNextT(&t)) {
container.Add(t);
if (SomeCondition()) {
PassToConsumer(std::move(container));
container.Clear();
}
}
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D49910
More information about the cfe-commits
mailing list