llvm-project/libc/utils/CPP
Siva Chandra Reddy dbb131d53a [libc] Add a standalone flavor of an equivalent of std::string_view.
This class is to serve as a replacement for llvm::StringRef as part of
the plans to limit dependency on other parts of LLVM. One use of
llvm::StringRef in MPFRWrapper has been replaced with the new class.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D97330
2021-02-23 15:40:26 -08:00
..
Array.h
ArrayRef.h
Bitset.h [libc] Add strspn implementation and std::bitset 2020-08-05 16:48:38 -04:00
CMakeLists.txt [libc] Add a standalone flavor of an equivalent of std::string_view. 2021-02-23 15:40:26 -08:00
Functional.h
README.md
StringView.h [libc] Add a standalone flavor of an equivalent of std::string_view. 2021-02-23 15:40:26 -08:00
TypeTraits.h Update Test (EXPECT_EQ and friends) to accept __uint128_t and floating point types (float, double, long double). 2020-07-21 16:50:45 -04: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.