Move "android-cloexec-dup" into art_clang_tidy_errors
As part of the changes done in aosp/742964, an helper method called
DupCloexec was defined in libartbase/base/file_utils.{h, cc} specifically
to provide a single entry point for all places in need to call the
dup(2) system call, replacing it with fcntl with the F_DUPFD_CLOEXEC
flag whenever possible. Hence, it should be safe to ignore the warning
triggered by clang-tidy within the DupCloexec method, and set
"android-cloexec-dup" among the clang-tidy errors to prevent it
from happening again in the future.
Bug: 213953102
Test: m tidy-art
Change-Id: Ia16b805dc37d2d842feb0636f4cb459f989ac4bd
2 files changed