[libc][NFC][Obvious] Remove few unnecessary #include directives in tests.

This commit is contained in:
Siva Chandra Reddy 2020-12-15 21:40:40 -08:00
parent 4f14b80803
commit cee1e7d14f
15 changed files with 5 additions and 36 deletions

View File

@ -9,13 +9,14 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_HYPOTTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_HYPOTTEST_H
#include "include/math.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/Hypot.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
namespace mpfr = __llvm_libc::testing::mpfr;
template <typename T>

View File

@ -13,7 +13,6 @@
#include "src/fenv/feclearexcept.h"
#include "src/fenv/feraiseexcept.h"
#include "src/fenv/fetestexcept.h"
#include "utils/CPP/TypeTraits.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

View File

@ -8,7 +8,6 @@
#include "HypotTest.h"
#include "include/math.h"
#include "src/math/hypot.h"
using HypotTest = HypotTestTemplate<double>;

View File

@ -8,7 +8,6 @@
#include "HypotTest.h"
#include "include/math.h"
#include "src/math/hypotf.h"
using HypotfTest = HypotTestTemplate<float>;

View File

@ -8,14 +8,6 @@
#include "LdExpTest.h"
#include "include/math.h"
#include "src/math/ldexp.h"
#include "utils/CPP/Functional.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/ManipulationFunctions.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <limits.h>
LIST_LDEXP_TESTS(double, __llvm_libc::ldexp)

View File

@ -8,14 +8,6 @@
#include "LdExpTest.h"
#include "include/math.h"
#include "src/math/ldexpf.h"
#include "utils/CPP/Functional.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/ManipulationFunctions.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <limits.h>
LIST_LDEXP_TESTS(float, __llvm_libc::ldexpf)

View File

@ -8,14 +8,6 @@
#include "LdExpTest.h"
#include "include/math.h"
#include "src/math/ldexpl.h"
#include "utils/CPP/Functional.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/ManipulationFunctions.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <limits.h>
LIST_LDEXP_TESTS(long double, __llvm_libc::ldexpl)

View File

@ -8,7 +8,6 @@
#include "RoundToIntegerTest.h"
#include "include/math.h"
#include "src/math/llround.h"
LIST_ROUND_TO_INTEGER_TESTS(double, long long, __llvm_libc::llround)

View File

@ -8,7 +8,6 @@
#include "RoundToIntegerTest.h"
#include "include/math.h"
#include "src/math/llroundf.h"
LIST_ROUND_TO_INTEGER_TESTS(float, long long, __llvm_libc::llroundf)

View File

@ -8,7 +8,6 @@
#include "RoundToIntegerTest.h"
#include "include/math.h"
#include "src/math/llroundl.h"
LIST_ROUND_TO_INTEGER_TESTS(long double, long long, __llvm_libc::llroundl)

View File

@ -8,7 +8,6 @@
#include "RoundToIntegerTest.h"
#include "include/math.h"
#include "src/math/lround.h"
LIST_ROUND_TO_INTEGER_TESTS(double, long, __llvm_libc::lround)

View File

@ -8,7 +8,6 @@
#include "RoundToIntegerTest.h"
#include "include/math.h"
#include "src/math/lroundf.h"
LIST_ROUND_TO_INTEGER_TESTS(float, long, __llvm_libc::lroundf)

View File

@ -8,7 +8,6 @@
#include "RoundToIntegerTest.h"
#include "include/math.h"
#include "src/math/lroundl.h"
LIST_ROUND_TO_INTEGER_TESTS(long double, long, __llvm_libc::lroundl)

View File

@ -6,10 +6,11 @@
//
//===----------------------------------------------------------------------===//
#include "include/math.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
using FPBits = __llvm_libc::fputil::FPBits<long double>;
TEST(X86LongDoubleTest, isNaN) {

View File

@ -13,10 +13,10 @@
#include "NearestIntegerOperations.h"
#include "NormalFloat.h"
#include "include/math.h"
#include "utils/CPP/TypeTraits.h"
#include <limits.h>
#include <math.h>
namespace __llvm_libc {
namespace fputil {