[PATCH] D76395: [clang-tidy] Merge common code between llvmlibc-restrict-system-libc-headers and portability-restrict-system-includes

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 20 11:23:23 PDT 2020


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM aside from some small nits!



================
Comment at: clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt:15
   clangTooling
+  clangTidyPortabilityModule
   )
----------------
Can you keep this list sorted in alphabetical order?


================
Comment at: clang-tools-extra/clang-tidy/portability/RestrictSystemIncludesCheck.h:85
 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PORTABILITY_RESTRICTINCLUDESSCHECK_H
\ No newline at end of file

----------------
Can you add a newline to the end of the file (as a drive-by)?


================
Comment at: clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst:32
+
+   This can be used to whitelist known safe includes such as Linux development
+   headers. See :doc:`portability-restrict-system-includes
----------------
whitelist -> allow


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76395/new/

https://reviews.llvm.org/D76395





More information about the cfe-commits mailing list