dup() is better to be replaced by fcntl() to avoid file descriptor leakage.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tidy/android/CloexecCheck.h | ||
---|---|---|
91 ↗ | (On Diff #110654) | This method seems only be used in one check. Maybe move it to the implementation of that specific check? And you can make the private members FuncBindingStr and FuncDeclBindingStr to protected member. |
test/clang-tidy/android-cloexec-dup.cpp | ||
7 ↗ | (On Diff #110654) | nit: trailing ;, the same below. Please apply this to other patches as well. |
clang-tidy/android/CloexecCheck.h | ||
---|---|---|
91 ↗ | (On Diff #110654) | Actually, this method will be used in three checks. |
Comment Actions
LGTM
clang-tidy/android/CloexecCheck.h | ||
---|---|---|
91 ↗ | (On Diff #110654) | Ah, ok. Sorry for missing it. |