Lines Matching refs:Val
882 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument
883 Out << (Val ? "true" : "false"); in output()
886 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument
888 Val = *Parsed; in input()
894 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument
896 Out << Val; in output()
900 StringRef &Val) { in input() argument
901 Val = Scalar; in input()
905 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument
907 Out << Val; in output()
911 std::string &Val) { in input() argument
912 Val = Scalar.str(); in input()
916 void ScalarTraits<uint8_t>::output(const uint8_t &Val, void *, in output() argument
919 uint32_t Num = Val; in output()
923 StringRef ScalarTraits<uint8_t>::input(StringRef Scalar, void *, uint8_t &Val) { in input() argument
929 Val = n; in input()
933 void ScalarTraits<uint16_t>::output(const uint16_t &Val, void *, in output() argument
935 Out << Val; in output()
939 uint16_t &Val) { in input() argument
945 Val = n; in input()
949 void ScalarTraits<uint32_t>::output(const uint32_t &Val, void *, in output() argument
951 Out << Val; in output()
955 uint32_t &Val) { in input() argument
961 Val = n; in input()
965 void ScalarTraits<uint64_t>::output(const uint64_t &Val, void *, in output() argument
967 Out << Val; in output()
971 uint64_t &Val) { in input() argument
975 Val = N; in input()
979 void ScalarTraits<int8_t>::output(const int8_t &Val, void *, raw_ostream &Out) { in output() argument
981 int32_t Num = Val; in output()
985 StringRef ScalarTraits<int8_t>::input(StringRef Scalar, void *, int8_t &Val) { in input() argument
991 Val = N; in input()
995 void ScalarTraits<int16_t>::output(const int16_t &Val, void *, in output() argument
997 Out << Val; in output()
1000 StringRef ScalarTraits<int16_t>::input(StringRef Scalar, void *, int16_t &Val) { in input() argument
1006 Val = N; in input()
1010 void ScalarTraits<int32_t>::output(const int32_t &Val, void *, in output() argument
1012 Out << Val; in output()
1015 StringRef ScalarTraits<int32_t>::input(StringRef Scalar, void *, int32_t &Val) { in input() argument
1021 Val = N; in input()
1025 void ScalarTraits<int64_t>::output(const int64_t &Val, void *, in output() argument
1027 Out << Val; in output()
1030 StringRef ScalarTraits<int64_t>::input(StringRef Scalar, void *, int64_t &Val) { in input() argument
1034 Val = N; in input()
1038 void ScalarTraits<double>::output(const double &Val, void *, raw_ostream &Out) { in output() argument
1039 Out << format("%g", Val); in output()
1042 StringRef ScalarTraits<double>::input(StringRef Scalar, void *, double &Val) { in input() argument
1043 if (to_float(Scalar, Val)) in input()
1048 void ScalarTraits<float>::output(const float &Val, void *, raw_ostream &Out) { in output() argument
1049 Out << format("%g", Val); in output()
1052 StringRef ScalarTraits<float>::input(StringRef Scalar, void *, float &Val) { in input() argument
1053 if (to_float(Scalar, Val)) in input()
1058 void ScalarTraits<Hex8>::output(const Hex8 &Val, void *, raw_ostream &Out) { in output() argument
1059 Out << format("0x%" PRIX8, (uint8_t)Val); in output()
1062 StringRef ScalarTraits<Hex8>::input(StringRef Scalar, void *, Hex8 &Val) { in input() argument
1068 Val = n; in input()
1072 void ScalarTraits<Hex16>::output(const Hex16 &Val, void *, raw_ostream &Out) { in output() argument
1073 Out << format("0x%" PRIX16, (uint16_t)Val); in output()
1076 StringRef ScalarTraits<Hex16>::input(StringRef Scalar, void *, Hex16 &Val) { in input() argument
1082 Val = n; in input()
1086 void ScalarTraits<Hex32>::output(const Hex32 &Val, void *, raw_ostream &Out) { in output() argument
1087 Out << format("0x%" PRIX32, (uint32_t)Val); in output()
1090 StringRef ScalarTraits<Hex32>::input(StringRef Scalar, void *, Hex32 &Val) { in input() argument
1096 Val = n; in input()
1100 void ScalarTraits<Hex64>::output(const Hex64 &Val, void *, raw_ostream &Out) { in output() argument
1101 Out << format("0x%" PRIX64, (uint64_t)Val); in output()
1104 StringRef ScalarTraits<Hex64>::input(StringRef Scalar, void *, Hex64 &Val) { in input() argument
1108 Val = Num; in input()
1112 void ScalarTraits<VersionTuple>::output(const VersionTuple &Val, void *, in output() argument
1114 Out << Val.getAsString(); in output()
1118 VersionTuple &Val) { in input() argument
1119 if (Val.tryParse(Scalar)) in input()