[clang-tidy] Merge common code between llvmlibc-restrict-system-libc-headers and...
authorPaula Toth <paulatoth@google.com>
Fri, 20 Mar 2020 22:52:39 +0000 (15:52 -0700)
committerPaula Toth <paulatoth@google.com>
Fri, 20 Mar 2020 22:53:05 +0000 (15:53 -0700)
commit556b917fffcfaa15ea11a277e1b0d87b8d13e0f1
treec8227259f1f3e586a477538d714ca1ef5662d614
parent6725c4836a5b3c11227869a6f456019a244aa29f
[clang-tidy] Merge common code between llvmlibc-restrict-system-libc-headers and portability-restrict-system-includes

Summary:
Made llvmlibc::RestrictSystemLibcHeadersCheck a subclass of protability::RestrictSystemIncludesCheck to re-use common code between the two.
This also adds the ability to white list linux development headers.

Reviewers: aaron.ballman

Reviewed By: aaron.ballman

Subscribers: mgorny, xazax.hun, MaskRay, cfe-commits, sivachandra

Tags: #clang-tools-extra, #clang

Differential Revision: https://reviews.llvm.org/D76395
clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp
clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.h
clang-tools-extra/clang-tidy/portability/RestrictSystemIncludesCheck.cpp
clang-tools-extra/clang-tidy/portability/RestrictSystemIncludesCheck.h
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst
clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/system/math.h [deleted file]
clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/transitive.h [deleted file]
clang-tools-extra/test/clang-tidy/checkers/llvmlibc-restrict-system-libc-headers-transitive.cpp [deleted file]
clang-tools-extra/test/clang-tidy/checkers/llvmlibc-restrict-system-libc-headers.cpp