libc.src.math.truncf
libc.src.math.truncl
libc.src.__support.FPUtil.fputil
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
add_libc_fuzzer(
#ifndef LLVM_LIBC_FUZZING_MATH_COMPARE_H
#define LLVM_LIBC_FUZZING_MATH_COMPARE_H
+#include "src/__support/CPP/TypeTraits.h"
#include "src/__support/FPUtil/FPBits.h"
-#include "utils/CPP/TypeTraits.h"
template <typename T>
__llvm_libc::cpp::EnableIfType<__llvm_libc::cpp::IsFloatingPointType<T>::Value,
+add_subdirectory(CPP)
+
add_header_library(
common
HDRS
.high_precision_decimal
libc.include.errno
libc.src.errno.__errno_location
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
libc.src.__support.FPUtil.fputil
)
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_UTILS_CPP_ARRAY_H
-#define LLVM_LIBC_UTILS_CPP_ARRAY_H
+#ifndef LLVM_LIBC_SRC_SUPPORT_CPP_ARRAY_H
+#define LLVM_LIBC_SRC_SUPPORT_CPP_ARRAY_H
#include <stddef.h> // For size_t.
} // namespace cpp
} // namespace __llvm_libc
-#endif // LLVM_LIBC_UTILS_CPP_ARRAY_H
+#endif // LLVM_LIBC_SRC_SUPPORT_CPP_ARRAY_H
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_UTILS_CPP_ARRAYREF_H
-#define LLVM_LIBC_UTILS_CPP_ARRAYREF_H
+#ifndef LLVM_LIBC_SRC_SUPPORT_CPP_ARRAYREF_H
+#define LLVM_LIBC_SRC_SUPPORT_CPP_ARRAYREF_H
#include "Array.h"
#include "TypeTraits.h" //RemoveCVType
} // namespace cpp
} // namespace __llvm_libc
-#endif // LLVM_LIBC_UTILS_CPP_ARRAYREF_H
+#endif // LLVM_LIBC_SRC_SUPPORT_CPP_ARRAYREF_H
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_UTILS_CPP_BITSET_H
-#define LLVM_LIBC_UTILS_CPP_BITSET_H
+#ifndef LLVM_LIBC_SRC_SUPPORT_CPP_BITSET_H
+#define LLVM_LIBC_SRC_SUPPORT_CPP_BITSET_H
#include <stddef.h> // For size_t.
#include <stdint.h> // For uintptr_t.
} // namespace cpp
} // namespace __llvm_libc
-#endif // LLVM_LIBC_UTILS_CPP_BITSET_H
+#endif // LLVM_LIBC_SRC_SUPPORT_CPP_BITSET_H
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_UTILS_CPP_FUNCTIONAL_H
-#define LLVM_LIBC_UTILS_CPP_FUNCTIONAL_H
+#ifndef LLVM_LIBC_SRC_SUPPORT_CPP_FUNCTIONAL_H
+#define LLVM_LIBC_SRC_SUPPORT_CPP_FUNCTIONAL_H
namespace __llvm_libc {
namespace cpp {
} // namespace cpp
} // namespace __llvm_libc
-#endif // LLVM_LIBC_UTILS_CPP_FUNCTIONAL_H
+#endif // LLVM_LIBC_SRC_SUPPORT_CPP_FUNCTIONAL_H
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_UTILS_CPP_LIMITS_H
-#define LLVM_LIBC_UTILS_CPP_LIMITS_H
+#ifndef LLVM_LIBC_SRC_SUPPORT_CPP_LIMITS_H
+#define LLVM_LIBC_SRC_SUPPORT_CPP_LIMITS_H
#include <limits.h>
} // namespace cpp
} // namespace __llvm_libc
-#endif // LLVM_LIBC_UTILS_CPP_LIMITS_H
+#endif // LLVM_LIBC_SRC_SUPPORT_CPP_LIMITS_H
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_UTILS_CPP_STRINGVIEW_H
-#define LLVM_LIBC_UTILS_CPP_STRINGVIEW_H
+#ifndef LLVM_LIBC_SRC_SUPPORT_CPP_STRINGVIEW_H
+#define LLVM_LIBC_SRC_SUPPORT_CPP_STRINGVIEW_H
#include <stddef.h>
} // namespace cpp
} // namespace __llvm_libc
-#endif // LLVM_LIBC_UTILS_CPP_STRINGVIEW_H
+#endif // LLVM_LIBC_SRC_SUPPORT_CPP_STRINGVIEW_H
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_UTILS_CPP_TYPETRAITS_H
-#define LLVM_LIBC_UTILS_CPP_TYPETRAITS_H
+#ifndef LLVM_LIBC_SRC_SUPPORT_CPP_TYPETRAITS_H
+#define LLVM_LIBC_SRC_SUPPORT_CPP_TYPETRAITS_H
namespace __llvm_libc {
namespace cpp {
} // namespace cpp
} // namespace __llvm_libc
-#endif // LLVM_LIBC_UTILS_CPP_TYPETRAITS_H
+#endif // LLVM_LIBC_SRC_SUPPORT_CPP_TYPETRAITS_H
#include "FPBits.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
libc.include.errno
libc.include.fenv
libc.src.__support.common
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
add_library(
add_dependencies(
LibcFPTestHelpers
LibcUnitTest
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
libc.src.__support.FPUtil.fputil
)
#include "ManipulationFunctions.h"
#include "NormalFloat.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FMA_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FMA_H
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
#ifdef __x86_64__
#include "x86_64/FMA.h"
#include "PlatformDefs.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
#include "FloatProperties.h"
#include <stdint.h>
#include "BasicOperations.h"
#include "FPBits.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
#include "NormalFloat.h"
#include "PlatformDefs.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
#include <limits.h>
#include <math.h>
#include "FEnvUtils.h"
#include "FPBits.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
#include <math.h>
#if math_errhandling & MATH_ERRNO
#include "FPBits.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
#include <stdint.h>
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_POLYEVAL_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_POLYEVAL_H
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
// Evaluate polynomial using Horner's Scheme:
// With polyeval(x, a_0, a_1, ..., a_n) = a_n * x^n + ... + a_1 * x + a_0, we
#include "FPBits.h"
#include "PlatformDefs.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
#include "FPBits.h"
#include "Sqrt.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FMA_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FMA_H
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_FMA_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_FMA_H
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FMA_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FMA_H
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
namespace fputil {
#ifndef LLVM_LIBC_SRC_STDLIB_ABS_UTILS_H
#define LLVM_LIBC_SRC_STDLIB_ABS_UTILS_H
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
namespace __llvm_libc {
#ifndef LIBC_SRC_STDLIB_STDLIB_UTILS_H
#define LIBC_SRC_STDLIB_STDLIB_UTILS_H
+#include "src/__support/CPP/Limits.h"
#include "src/__support/ctype_utils.h"
-#include "utils/CPP/Limits.h"
#include <errno.h>
#include <limits.h>
#ifndef LIBC_SRC_SUPPORT_STR_TO_FLOAT_H
#define LIBC_SRC_SUPPORT_STR_TO_FLOAT_H
+#include "src/__support/CPP/Limits.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/ctype_utils.h"
#include "src/__support/detailed_powers_of_ten.h"
#include "src/__support/high_precision_decimal.h"
#include "src/__support/str_conv_utils.h"
-#include "utils/CPP/Limits.h"
#include <errno.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_MATH_MATH_UTILS_H
#define LLVM_LIBC_SRC_MATH_MATH_UTILS_H
+#include "src/__support/CPP/TypeTraits.h"
#include "src/__support/common.h"
-#include "utils/CPP/TypeTraits.h"
#include <errno.h>
#include <math.h>
HDRS
string_utils.h
DEPENDS
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
add_entrypoint_object(
HDRS
strspn.h
DEPENDS
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
add_entrypoint_object(
#ifndef LIBC_SRC_STRING_STRING_UTILS_H
#define LIBC_SRC_STRING_STRING_UTILS_H
+#include "src/__support/CPP/Bitset.h"
#include "src/__support/common.h"
-#include "utils/CPP/Bitset.h"
#include <stddef.h> // size_t
namespace __llvm_libc {
#include "src/string/strspn.h"
+#include "src/__support/CPP/Bitset.h"
#include "src/__support/common.h"
-#include "utils/CPP/Bitset.h"
#include <stddef.h>
namespace __llvm_libc {
#include "config/linux/syscall.h"
#include "utils/UnitTest/Test.h"
-#include "utils/CPP/Functional.h"
+#include "src/__support/CPP/Functional.h"
TEST(LlvmLibcX86_64_SyscallTest, APITest) {
// We only do a signature test here. Actual functionality tests are
target_include_directories(
libc-integration-test BEFORE
PRIVATE
- "${LIBC_SOURCE_DIR}/utils/CPP"
+ "${LIBC_SOURCE_DIR}/src/__support/CPP"
"${LIBC_BUILD_DIR}/include"
)
target_compile_options(
DEPENDS
libc.include.errno
libc.src.math.cosf
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
libc.src.__support.FPUtil.fputil
)
DEPENDS
libc.include.errno
libc.src.math.sinf
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
libc.src.__support.FPUtil.fputil
)
DEPENDS
libc.include.errno
libc.src.math.sincosf
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
libc.src.__support.FPUtil.fputil
)
#ifndef LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H
+#include "src/__support/CPP/TypeTraits.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
-#include "utils/CPP/TypeTraits.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/Array.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/cosf.h"
#include "test/src/math/sdcomp26094.h"
-#include "utils/CPP/Array.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
#ifndef LLVM_LIBC_TEST_SRC_MATH_SDCOMP26094_H
#define LLVM_LIBC_TEST_SRC_MATH_SDCOMP26094_H
-#include "utils/CPP/Array.h"
+#include "src/__support/CPP/Array.h"
#include <stdint.h>
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/Array.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/sincosf.h"
#include "test/src/math/sdcomp26094.h"
-#include "utils/CPP/Array.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/Array.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/sinf.h"
#include "test/src/math/sdcomp26094.h"
-#include "utils/CPP/Array.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/Array.h"
#include "src/stdio/FILE.h"
#include "src/stdio/fwrite.h"
-#include "utils/CPP/Array.h"
#include "utils/UnitTest/Test.h"
TEST(LlvmLibcStdio, FWriteBasic) {
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/ArrayRef.h"
#include "src/string/bzero.h"
-#include "utils/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
using __llvm_libc::cpp::Array;
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/ArrayRef.h"
#include "src/string/memccpy.h"
-#include "utils/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
#include <stddef.h> // For size_t.
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/ArrayRef.h"
#include "src/string/memcpy.h"
-#include "utils/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
using __llvm_libc::cpp::Array;
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/ArrayRef.h"
#include "src/string/memmove.h"
-#include "utils/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
class LlvmLibcMemmoveTest : public __llvm_libc::testing::Test {
utils_test.cpp
DEPENDS
libc.src.string.memory_utils.memory_utils
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
COMPILE_OPTIONS
${LIBC_COMPILE_OPTIONS_NATIVE}
-ffreestanding
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/Array.h"
#include "src/string/memory_utils/elements.h"
-#include "utils/CPP/Array.h"
#include "utils/UnitTest/Test.h"
namespace __llvm_libc {
#define LLVM_LIBC_UNITTEST_OBSERVE 1
+#include "src/__support/CPP/Array.h"
+#include "src/__support/CPP/ArrayRef.h"
#include "src/string/memory_utils/elements.h"
-#include "utils/CPP/Array.h"
-#include "utils/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
#include <stdio.h>
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/Array.h"
#include "src/string/memory_utils/utils.h"
-#include "utils/CPP/Array.h"
#include "utils/UnitTest/Test.h"
namespace __llvm_libc {
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/ArrayRef.h"
#include "src/string/memset.h"
-#include "utils/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
using __llvm_libc::cpp::Array;
//
//===----------------------------------------------------------------------===//
+#include "src/__support/CPP/ArrayRef.h"
#include "src/string/strncpy.h"
-#include "utils/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
#include <stddef.h> // For size_t.
SRCS
bitset_test.cpp
DEPENDS
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
add_libc_unittest(
SRCS
stringview_test.cpp
DEPENDS
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
add_libc_unittest(
SRCS
limits_test.cpp
DEPENDS
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
add_libc_unittest(
SRCS
arrayref_test.cpp
DEPENDS
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
//
//===----------------------------------------------------------------------===//
-#include "utils/CPP/ArrayRef.h"
+#include "src/__support/CPP/ArrayRef.h"
#include "utils/UnitTest/Test.h"
namespace __llvm_libc {
//
//===----------------------------------------------------------------------===//
-#include "utils/CPP/Bitset.h"
+#include "src/__support/CPP/Bitset.h"
#include "utils/UnitTest/Test.h"
TEST(LlvmLibcBitsetTest, SetBitForSizeEqualToOne) {
//
//===----------------------------------------------------------------------===//
-#include "utils/CPP/Limits.h"
+#include "src/__support/CPP/Limits.h"
#include "utils/UnitTest/Test.h"
// This just checks against the C spec, almost all implementations will surpass
//
//===----------------------------------------------------------------------===//
-#include "utils/CPP/StringView.h"
+#include "src/__support/CPP/StringView.h"
#include "utils/UnitTest/Test.h"
TEST(LlvmLibcStringViewTest, InitializeCheck) {
SRCS
testfilter_test.cpp
DEPENDS
- libc.utils.CPP.standalone_cpp
+ libc.src.__support.CPP.standalone_cpp
)
-add_subdirectory(CPP)
add_subdirectory(MPFRWrapper)
add_subdirectory(testutils)
add_subdirectory(UnitTest)
MPFRUtils.cpp
MPFRUtils.h
)
- add_dependencies(libcMPFRWrapper libc.utils.CPP.standalone_cpp libc.src.__support.FPUtil.fputil LibcUnitTest)
+ add_dependencies(libcMPFRWrapper libc.src.__support.CPP.standalone_cpp libc.src.__support.FPUtil.fputil LibcUnitTest)
if(EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH})
target_include_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/include)
target_link_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
#include "MPFRUtils.h"
+#include "src/__support/CPP/StringView.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
-#include "utils/CPP/StringView.h"
#include <cmath>
#include <memory>
#ifndef LLVM_LIBC_UTILS_TESTUTILS_MPFRUTILS_H
#define LLVM_LIBC_UTILS_TESTUTILS_MPFRUTILS_H
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
#include "utils/UnitTest/Test.h"
#include <stdint.h>
LibcTest.h
)
target_include_directories(LibcUnitTest PUBLIC ${LIBC_SOURCE_DIR})
-add_dependencies(LibcUnitTest libc.utils.CPP.standalone_cpp)
+add_dependencies(LibcUnitTest libc.src.__support.CPP.standalone_cpp)
target_link_libraries(LibcUnitTest PUBLIC libc_test_utils)
add_library(
)
target_include_directories(LibcUnitTestMain PUBLIC ${LIBC_SOURCE_DIR})
-add_dependencies(LibcUnitTestMain LibcUnitTest libc.utils.CPP.standalone_cpp)
+add_dependencies(LibcUnitTestMain LibcUnitTest libc.src.__support.CPP.standalone_cpp)
target_link_libraries(LibcUnitTestMain PUBLIC LibcUnitTest libc_test_utils)
#ifndef LLVM_LIBC_UTILS_UNITTEST_LIBCTEST_H
#define LLVM_LIBC_UTILS_UNITTEST_LIBCTEST_H
-// This file can only include headers from utils/CPP/ or utils/testutils. No
-// other headers should be included.
+// This file can only include headers from src/__support/CPP/ or
+// utils/testutils. No other headers should be included.
#include "PlatformDefs.h"
-#include "utils/CPP/TypeTraits.h"
+#include "src/__support/CPP/TypeTraits.h"
#include "utils/testutils/ExecuteFunction.h"
#include "utils/testutils/StreamWrapper.h"