mirror-llvm-project/libc
Pavel Labath 3122acf9f4
[libc] Move test macro implementations out of the Test class (#212783)
This is useful for several reasons:
- it makes it possible to use the macros outside of the test methods,
aligning with googletest. Although this isn't recommended, the
alternatives are often not worth it.
- it makes it possible (with additional changes) to expose this
infrastructure to C_TESTs (which currently use the assert() macro, which
is a no-op in release mode)
- it makes it possible to add (and have assertions in) googletest style
SetUp/TearDownTestSuite functions.

I've converted the main assertion macros for now, to test the waters.
I'm planning to handle EXPECT/ASSERT_THAT and EXPECT/ASSERT_EXIT/DEATH
in a follow-up.
2026-07-30 15:46:44 +02:00
..
benchmarks [libc][benchmark] allow benchmark to be built without llvm support (#200951) 2026-06-25 19:16:08 +00:00
cmake [libc][cmake] Make hermetic tests support FLAGS (#212460) 2026-07-30 15:41:20 +02:00
config [libc] Add POSIX redirection header specifications in YAML (#211859) 2026-07-28 15:37:12 +01:00
docs [libc][math] Implement half precision lgamma function (#192834) 2026-07-19 04:29:50 +03:00
examples
fuzzing [libc] Migrate printf_core from stdio/ to __support/. (#208303) 2026-07-21 14:35:24 -07:00
hdr [libc][termios] Make termios hermetic and fix its compatibility with glibc 2.42 or after. (#211039) 2026-07-24 13:31:41 -04:00
include [libc] Modernize and extend dirent.h header. (#212902) 2026-07-29 17:49:01 -07:00
lib [libc] Generate a stub for libpthread.a (#200908) 2026-06-15 23:35:20 -07:00
shared [compiler-rt][builtins] add libc-backed arithmetic builtins (#207092) 2026-07-29 00:38:54 +00:00
src [libc][realpath] Follow symlinks (#212164) 2026-07-29 18:07:03 +00:00
startup [libc][NFC] Port raw syscall users to existing syscall_wrappers (#208039) 2026-07-17 14:23:39 -03:00
test [libc] Move test macro implementations out of the Test class (#212783) 2026-07-30 15:46:44 +02:00
utils [libc][math] Implement half precision lgamma function (#192834) 2026-07-19 04:29:50 +03:00
.clang-tidy
.gitignore [libc][wctype] Create generation script for classification lookup tables (#172042) 2026-01-06 12:13:28 +01:00
CMakeLists.txt [libc][termios] Make termios hermetic and fix its compatibility with glibc 2.42 or after. (#211039) 2026-07-24 13:31:41 -04:00
LICENSE.TXT
Maintainers.md [libc][freebsd] initialize freebsd support (#124459) 2026-05-19 13:04:34 -07:00
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.