llvm-project/libc
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
..
AOR_v20.02 [libc] Disable AOR ulp tests for sinf, cosf and sincosf. 2020-04-17 09:01:44 -07:00
cmake/modules [libc] Fix accidental inclusion of system libc headers. 2020-05-21 01:21:37 -07:00
config [libc] Move implementations of expf and exp2f from the AOR to src/math. 2020-05-15 12:43:03 -07:00
docs [libc] NFC: Fix trivial typo in comments, documents, and messages 2020-04-06 16:19:34 +09:00
fuzzing [libc] Add fully-qualified target names. 2020-04-10 18:01:52 -07:00
include [libc] Add definitions of double_t and float_t to math.h. 2020-04-30 11:59:11 -07:00
lib [libc] Add memset and bzero implementations 2020-05-20 06:35:13 +00:00
loader [libc][Take 2] Propagate entrypoint deps to downstream targets. 2020-04-21 10:29:09 -07:00
spec [libc] Move implementations of expf and exp2f from the AOR to src/math. 2020-05-15 12:43:03 -07:00
src [libc] Fix accidental inclusion of system libc headers. 2020-05-21 01:21:37 -07:00
test [libc] Add memset and bzero implementations 2020-05-20 06:35:13 +00:00
utils [libc] Move implementations of expf and exp2f from the AOR to src/math. 2020-05-15 12:43:03 -07:00
CMakeLists.txt Fix typo in CMake error message "LLVM_LIBC_ENABLE_PROJECTS"->"LLVM_ENABLE_PROJECTS" (NFC) 2020-05-21 03:08:47 +00:00
LICENSE.txt
README.txt

README.txt

LLVM libc
=========

This directory and its subdirectories contain source code for llvm-libc,
a retargetable implementation of the C standard library.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.