summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2019-07-15 14:56:53 -0700
committerTom Cherry <tomcherry@google.com>2019-07-15 15:00:23 -0700
commitaa55ee60447f9b3aebb7c5c543c063c0f0c1e30e (patch)
treec470cd26118314f2653d3a75c1a84e0050b00bba /libutils/Unicode.cpp
parent8a779ee959996b413a8539d2a571e34803be0bf5 (diff)
Add nolint for implicit borrowed_fd constructors
bpfloader uses both clang-tidy and this header, so the below lint warnings are generated: /work/aosp/system/core/base/include/android-base/unique_fd.h:261:18: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] /* implicit */ borrowed_fd(int fd) : fd_(fd) {} ^ explicit /work/aosp/system/core/base/include/android-base/unique_fd.h:263:18: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] /* implicit */ borrowed_fd(const unique_fd_impl<T>& ufd) : fd_(ufd.get()) {} ^ explicit Add NOLINT to quiet them. Test: build without this lint warning Change-Id: I5241938c33070b0fa39888289b8ca67d6d94ac73
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions