[all-commits] [llvm/llvm-project] 556b91: [clang-tidy] Merge common code between llvmlibc-re...

Paula Toth via All-commits all-commits at lists.llvm.org
Fri Mar 20 16:02:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 556b917fffcfaa15ea11a277e1b0d87b8d13e0f1
      https://github.com/llvm/llvm-project/commit/556b917fffcfaa15ea11a277e1b0d87b8d13e0f1
  Author: Paula Toth <paulatoth at google.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
    M clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp
    M clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.h
    M clang-tools-extra/clang-tidy/portability/RestrictSystemIncludesCheck.cpp
    M clang-tools-extra/clang-tidy/portability/RestrictSystemIncludesCheck.h
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    M clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst
    R clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/system/math.h
    R clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/transitive.h
    R clang-tools-extra/test/clang-tidy/checkers/llvmlibc-restrict-system-libc-headers-transitive.cpp
    M clang-tools-extra/test/clang-tidy/checkers/llvmlibc-restrict-system-libc-headers.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list