tree: 701b147924c92177cefd55dab2e48212460a65c4 [path history] [tgz]
  1. type_traits/
  2. utility/
  3. .clang-tidy
  4. algorithm.h
  5. array.h
  6. atomic.h
  7. bit.h
  8. bitset.h
  9. CMakeLists.txt
  10. cstddef.h
  11. expected.h
  12. functional.h
  13. iterator.h
  14. limits.h
  15. new.cpp
  16. new.h
  17. optional.h
  18. README.md
  19. span.h
  20. string.h
  21. string_view.h
  22. stringstream.h
  23. type_traits.h
  24. utility.h
src/__support/CPP/README.md

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

More utilities can 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 LIBC_NAMESPACE::cpp. The higher level namespace should have a __ prefix to avoid symbol name pollution when the utilities are used in implementation of public functions.