llvm-project/libc/utils/CPP
Alex Brachet 54d13b5b2d [libc] Remove <functional> dependency in syscall_test.cpp
Summary: Create self contained functional header which has a type similar to `std::function`

Reviewers: sivachandra, PaulkaToast

Reviewed By: sivachandra

Subscribers: mgorny, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D77948
2020-04-14 03:27:10 -04:00
..
Array.h [libc][NFC] Make all top of file comments consistent. 2020-04-08 10:18:37 -07:00
ArrayRef.h [libc][NFC] Make all top of file comments consistent. 2020-04-08 10:18:37 -07:00
CMakeLists.txt [libc] Remove <functional> dependency in syscall_test.cpp 2020-04-14 03:27:10 -04:00
Functional.h [libc] Remove <functional> dependency in syscall_test.cpp 2020-04-14 03:27:10 -04:00
README.md [libc] Add a README to the sub-directories under the utils directory. 2020-02-23 22:11:35 -08:00
StringRef.h [libc][NFC] Make all top of file comments consistent. 2020-04-08 10:18:37 -07:00
TypeTraits.h [libc][NFC] Make all top of file comments consistent. 2020-04-08 10:18:37 -07:00

README.md

This directory contains re-implementations of some C++ standard library utilities, as well as some LLVM utilities. These utilities are for use with internal LLVM libc code and tests.

More utilities will be added on an as needed basis. There are certain rules to be followed for future changes and additions:

  1. Only two kind of headers can be included: Other headers from this directory, and free standing C headers.
  2. Free standing C headers are to be included as C headers and not as C++ headers. That is, use #include <stddef.h> and not #include <cstddef>.
  3. The utilities should be defined in the namespace __llvm_libc::cpp. The higher level namespace should have a __ prefix to avoid symbol name pollution when the utilities are used in implementation of public functions.