Enable bugprone-use-after-move clang-tidy check
Enable for Chromium the "bugprone-use-after-move" diagnostic provided by clang-tidy. This check attempts to catch bugs when a C++ variable is used after it was std::move()'ed elsewhere. This diagnostic was discussed at https://groups.google.com/a/chromium.org/d/topic/cxx/IDD4f6Pmnxc/discussion (see also the doc attached to that thread). Bug: 1122844 Change-Id: I9aa1996dcac8307259d86821ce7b4f5cf2175dbe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2383010 Reviewed-by: Peter Kasting <pkasting@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org> Commit-Queue: Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#802874}
This commit is contained in:

committed by
Commit Bot

parent
70e3868126
commit
d8f65ed5a0
@ -1,6 +1,7 @@
|
||||
---
|
||||
---
|
||||
Checks: '-*,
|
||||
bugprone-use-after-move,
|
||||
google-build-explicit-make-pair,
|
||||
google-explicit-constructor,
|
||||
google-readability-casting,
|
||||
|
Reference in New Issue
Block a user