#include "llvm/Support/ScopedPrinter.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/Support/Format.h"
#include "gtest/gtest.h"
#include <cmath>
#include <vector>
usingnamespacellvm;
TEST(JSONScopedPrinterTest, PrettyPrintCtor) { … }
TEST(JSONScopedPrinterTest, DelimitedScopeCtor) { … }
class ScopedPrinterTest : public ::testing::Test { … };
TEST_F(ScopedPrinterTest, GetKind) { … }
TEST_F(ScopedPrinterTest, ClassOf) { … }
TEST_F(ScopedPrinterTest, Indent) { … }
TEST_F(ScopedPrinterTest, Unindent) { … }
TEST_F(ScopedPrinterTest, ResetIndent) { … }
TEST_F(ScopedPrinterTest, PrintIndent) { … }
TEST_F(ScopedPrinterTest, GetIndentLevel) { … }
TEST_F(ScopedPrinterTest, SetPrefix) { … }
TEST_F(ScopedPrinterTest, PrintEnum) { … }
TEST_F(ScopedPrinterTest, PrintFlag) { … }
template <typename T,
std::enable_if_t<std::is_floating_point_v<T>, bool> = true>
std::string formatFloatString(T Val) { … }
template <typename T,
std::enable_if_t<std::is_floating_point_v<T>, bool> = true>
std::string formatJsonFloatString(T Val) { … }
TEST_F(ScopedPrinterTest, PrintNumber) { … }
TEST_F(ScopedPrinterTest, PrintBoolean) { … }
TEST_F(ScopedPrinterTest, PrintVersion) { … }
TEST_F(ScopedPrinterTest, PrintList) { … }
TEST_F(ScopedPrinterTest, PrintListPrinter) { … }
TEST_F(ScopedPrinterTest, PrintHex) { … }
TEST_F(ScopedPrinterTest, PrintHexList) { … }
TEST_F(ScopedPrinterTest, PrintSymbolOffset) { … }
TEST_F(ScopedPrinterTest, PrintString) { … }
TEST_F(ScopedPrinterTest, PrintBinary) { … }
TEST_F(ScopedPrinterTest, PrintObject) { … }
TEST_F(ScopedPrinterTest, StartLine) { … }
TEST_F(ScopedPrinterTest, GetOStream) { … }
TEST_F(ScopedPrinterTest, PrintScope) { … }