#include "gtest/gtest.h"
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/Endian.h"
#include "lldb/Utility/Scalar.h"
#include "lldb/Utility/Status.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/lldb-enumerations.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/Testing/Support/Error.h"
#include <algorithm>
#include <cmath>
usingnamespacelldb_private;
APFloat;
APInt;
Failed;
Succeeded;
template <typename T>
bool checkInequality(T c1, T c2) { … }
template <typename T>
bool checkEquality(T c1, T c2) { … }
TEST(ScalarTest, Equality) { … }
TEST(ScalarTest, Comparison) { … }
TEST(ScalarTest, ComparisonFloat) { … }
template <typename T> static void CheckConversion(T val) { … }
TEST(ScalarTest, Getters) { … }
TEST(ScalarTest, RightShiftOperator) { … }
TEST(ScalarTest, GetBytes) { … }
TEST(ScalarTest, GetData) { … }
TEST(ScalarTest, SetValueFromData) { … }
TEST(ScalarTest, CastOperations) { … }
TEST(ScalarTest, ExtractBitfield) { … }
template <typename T> static std::string ScalarGetValue(T value) { … }
TEST(ScalarTest, GetValue) { … }
TEST(ScalarTest, LongLongAssigmentOperator) { … }
TEST(ScalarTest, Division) { … }
TEST(ScalarTest, Promotion) { … }
TEST(ScalarTest, SetValueFromCString) { … }
TEST(ScalarTest, APIntConstructor) { … }
TEST(ScalarTest, Scalar_512) { … }
TEST(ScalarTest, TruncOrExtendTo) { … }
TEST(ScalarTest, APFloatConstructor) { … }
TEST(ScalarTest, CreateAPFloats) { … }