diff options
| author | 2022-09-22 14:29:18 +0000 | |
|---|---|---|
| committer | 2022-09-23 11:16:48 +0000 | |
| commit | 07814d2efd1d0dbfb8e8fdee5ec074cd732e52ee (patch) | |
| tree | ff4530933bbcd45728499616e17a7429ae01c4ed /compiler/compiler_reflection_test.cc | |
| parent | 9c0e3238a2a9c4198140bfc6d979e7d5f321b746 (diff) | |
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
Diffstat (limited to 'compiler/compiler_reflection_test.cc')
0 files changed, 0 insertions, 0 deletions