[PATCH] D35372: [clang-tidy] Add a close-on-exec check on memfd_create() in Android module.

Yan Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 20 10:59:33 PDT 2017


yawanng updated this revision to Diff 107557.
yawanng added a comment.

Refactor the check, add a base class for it, which can facilitate all other similar checks. Basically, all checks in the same category will have only one or two lines code by inheriting the base class. If this looks good, I will modify all other similar ones. Thank you :-)


https://reviews.llvm.org/D35372

Files:
  clang-tidy/android/AndroidTidyModule.cpp
  clang-tidy/android/CMakeLists.txt
  clang-tidy/android/CloexecCheck.cpp
  clang-tidy/android/CloexecCheck.h
  clang-tidy/android/CloexecMemfdCreateCheck.cpp
  clang-tidy/android/CloexecMemfdCreateCheck.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/android-cloexec-memfd-create.rst
  docs/clang-tidy/checks/list.rst
  test/clang-tidy/android-cloexec-memfd-create.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35372.107557.patch
Type: text/x-patch
Size: 16517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170720/eb485b59/attachment-0001.bin>


More information about the cfe-commits mailing list