#include "llvm/Support/NativeFormatting.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
#include <type_traits>
usingnamespacellvm;
namespace {
template <typename T> std::string format_number(T N, IntegerStyle Style) { … }
std::string format_number(uint64_t N, HexPrintStyle Style,
std::optional<size_t> Width = std::nullopt) { … }
std::string format_number(double D, FloatStyle Style,
std::optional<size_t> Precision = std::nullopt) { … }
TEST(NativeFormatTest, BasicIntegerTests) { … }
TEST(NativeFormatTest, BasicFloatingPointTests) { … }
TEST(NativeFormatTest, BoundaryTests) { … }
TEST(NativeFormatTest, HexTests) { … }
TEST(NativeFormatTest, IntegerTests) { … }
TEST(NativeFormatTest, CommaTests) { … }
}