[PATCH] D34913: [clang-tidy] Add a new Android check "android-cloexec-socket"

Yan Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 30 15:21:47 PDT 2017


yawanng created this revision.
yawanng added a project: clang-tools-extra.
Herald added subscribers: xazax.hun, JDevlieghere, mgorny, srhines.

socket() is better to include SOCK_CLOEXEC in its type argument to avoid the file descriptor leakage.


Repository:
  rL LLVM

https://reviews.llvm.org/D34913

Files:
  clang-tidy/android/AndroidTidyModule.cpp
  clang-tidy/android/CMakeLists.txt
  clang-tidy/android/CloexecOpenCheck.cpp
  clang-tidy/android/CloexecSocketCheck.cpp
  clang-tidy/android/CloexecSocketCheck.h
  clang-tidy/utils/CMakeLists.txt
  clang-tidy/utils/CloexecFlagChecker.cpp
  clang-tidy/utils/CloexecFlagChecker.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/android-cloexec-socket.rst
  docs/clang-tidy/checks/list.rst
  test/clang-tidy/android-cloexec-socket.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34913.104946.patch
Type: text/x-patch
Size: 14896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170630/2f55c9cb/attachment-0001.bin>


More information about the cfe-commits mailing list