diff options
author | Josh Gao <jmgao@google.com> | 2020-03-09 12:05:32 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2020-03-09 12:32:56 -0700 |
commit | e43893e95c48774cff59ce1f442809abbdc440b8 (patch) | |
tree | b44480745f692aa8e5ffed5750f8931824b4f5ee /debuggerd/handler/debuggerd_handler.cpp | |
parent | cc642ec7256287bd93a145c69b222e76eec0bd97 (diff) |
base: tag unique_fd::reset as reinitializing for clang-tidy.
Appease clang-tidy by marking reset() as a method that reinitializes
after moving out of a unique_fd.
Unfortunately, there isn't an attribute that let us mark the type as
being safe to use after move in general, which means that moving out of
a unique_fd and then calling get() on it will still be frowned upon.
clang-tidy has a hard-coded list of standard container types that
are safe to use after move, but doesn't provide a way to mark custom
types as satisfying this condition.
Bug: http://b/150959261
Test: reverted the change to unique_fd.h and the test failed
Change-Id: Ide73d7caa4cd2b192018f111059d696dca4de987
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions