llvm-project/libc/cmake/modules
Paula Toth b2a485e37e [libc] Fix accidental inclusion of system libc headers.
Summary:
I found that because `--system-headers` flag was not included when running clang-tidy, errors produced from compiler provided headers were being suppressed. After passing this flag I realized that by including headers like stdint.h we were indirectly including headers from the system libc. To prevent this we pass `-ffreestanding`.
We don't want to pass `--system-headers` for all checks just the `llvmlibc-restrict-system-libc-headers` therefore we do a separate invocation of clang-tidy for this check.

Reviewers: abrachet, sivachandra

Reviewed By: sivachandra

Subscribers: mgorny, aheejin, tschuett, ecnelises, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D80178
2020-05-21 01:21:37 -07:00
..
cpu_features [libc] Adding memcpy implementation for x86_64 2020-03-18 17:43:21 +01:00
LLVMLibCCheckCpuFeatures.cmake [libc] Adding memcpy implementation for x86_64 2020-03-18 17:43:21 +01:00
LLVMLibCHeaderRules.cmake [libc] [NFC] Split the CMake rules into multiple files. 2020-04-21 09:24:17 -07:00
LLVMLibCLibraryRules.cmake [libc] Include object files from alias entrypoints also in entrypoint libraries. 2020-05-04 11:39:37 -07:00
LLVMLibCObjectRules.cmake [libc] Fix accidental inclusion of system libc headers. 2020-05-21 01:21:37 -07:00
LLVMLibCRules.cmake [libc] [NFC] Split the CMake rules into multiple files. 2020-04-21 09:24:17 -07:00
LLVMLibCTargetNameUtils.cmake [libc] Add fully-qualified target names. 2020-04-10 18:01:52 -07:00
LLVMLibCTestRules.cmake [libc][Take 2] Propagate entrypoint deps to downstream targets. 2020-04-21 10:29:09 -07:00