[all-commits] [llvm/llvm-project] eb41cc: [clang-tidy] Add module for llvm-libc and restrict...
Paula Toth via All-commits
all-commits at lists.llvm.org
Thu Mar 12 11:46:13 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: eb41cc619866ea3b12a30f734600ac86699ce05e
https://github.com/llvm/llvm-project/commit/eb41cc619866ea3b12a30f734600ac86699ce05e
Author: Paula Toth <paulatoth at google.com>
Date: 2020-03-12 (Thu, 12 Mar 2020)
Changed paths:
M clang-tools-extra/clang-tidy/CMakeLists.txt
M clang-tools-extra/clang-tidy/ClangTidyForceLinker.h
A clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
A clang-tools-extra/clang-tidy/llvmlibc/LLVMLibcTidyModule.cpp
A clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp
A clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst
M clang-tools-extra/docs/clang-tidy/index.rst
A clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/resource/include/stdatomic.h
A clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/resource/include/stddef.h
A clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/system/math.h
A clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/system/stdio.h
A clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/system/stdlib.h
A clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/system/string.h
A clang-tools-extra/test/clang-tidy/checkers/Inputs/llvmlibc/transitive.h
A clang-tools-extra/test/clang-tidy/checkers/llvmlibc-restrict-system-libc-headers-transitive.cpp
A clang-tools-extra/test/clang-tidy/checkers/llvmlibc-restrict-system-libc-headers.cpp
Log Message:
-----------
[clang-tidy] Add module for llvm-libc and restrict-system-libc-header-check.
Summary: This adds a new module to enforce standards specific to the llvm-libc project. This change also adds the first check which restricts user from including system libc headers accidentally which can lead to subtle bugs that would be a challenge to detect.
Reviewers: alexfh, hokein, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: juliehockett, arphaman, jfb, abrachet, sivachandra, Eugene.Zelenko, njames93, mgorny, xazax.hun, MaskRay, cfe-commits
Tags: #clang-tools-extra, #libc-project, #clang
Differential Revision: https://reviews.llvm.org/D75332
More information about the All-commits
mailing list