Lines Matching refs:Val

901 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) {  in output()  argument
902 Out << (Val ? "true" : "false"); in output()
905 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument
907 Val = *Parsed; in input()
913 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument
915 Out << Val; in output()
919 StringRef &Val) { in input() argument
920 Val = Scalar; in input()
924 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument
926 Out << Val; in output()
930 std::string &Val) { in input() argument
931 Val = Scalar.str(); in input()
935 void ScalarTraits<uint8_t>::output(const uint8_t &Val, void *, in output() argument
938 uint32_t Num = Val; in output()
942 StringRef ScalarTraits<uint8_t>::input(StringRef Scalar, void *, uint8_t &Val) { in input() argument
948 Val = n; in input()
952 void ScalarTraits<uint16_t>::output(const uint16_t &Val, void *, in output() argument
954 Out << Val; in output()
958 uint16_t &Val) { in input() argument
964 Val = n; in input()
968 void ScalarTraits<uint32_t>::output(const uint32_t &Val, void *, in output() argument
970 Out << Val; in output()
974 uint32_t &Val) { in input() argument
980 Val = n; in input()
984 void ScalarTraits<uint64_t>::output(const uint64_t &Val, void *, in output() argument
986 Out << Val; in output()
990 uint64_t &Val) { in input() argument
994 Val = N; in input()
998 void ScalarTraits<int8_t>::output(const int8_t &Val, void *, raw_ostream &Out) { in output() argument
1000 int32_t Num = Val; in output()
1004 StringRef ScalarTraits<int8_t>::input(StringRef Scalar, void *, int8_t &Val) { in input() argument
1010 Val = N; in input()
1014 void ScalarTraits<int16_t>::output(const int16_t &Val, void *, in output() argument
1016 Out << Val; in output()
1019 StringRef ScalarTraits<int16_t>::input(StringRef Scalar, void *, int16_t &Val) { in input() argument
1025 Val = N; in input()
1029 void ScalarTraits<int32_t>::output(const int32_t &Val, void *, in output() argument
1031 Out << Val; in output()
1034 StringRef ScalarTraits<int32_t>::input(StringRef Scalar, void *, int32_t &Val) { in input() argument
1040 Val = N; in input()
1044 void ScalarTraits<int64_t>::output(const int64_t &Val, void *, in output() argument
1046 Out << Val; in output()
1049 StringRef ScalarTraits<int64_t>::input(StringRef Scalar, void *, int64_t &Val) { in input() argument
1053 Val = N; in input()
1057 void ScalarTraits<double>::output(const double &Val, void *, raw_ostream &Out) { in output() argument
1058 Out << format("%g", Val); in output()
1061 StringRef ScalarTraits<double>::input(StringRef Scalar, void *, double &Val) { in input() argument
1062 if (to_float(Scalar, Val)) in input()
1067 void ScalarTraits<float>::output(const float &Val, void *, raw_ostream &Out) { in output() argument
1068 Out << format("%g", Val); in output()
1071 StringRef ScalarTraits<float>::input(StringRef Scalar, void *, float &Val) { in input() argument
1072 if (to_float(Scalar, Val)) in input()
1077 void ScalarTraits<Hex8>::output(const Hex8 &Val, void *, raw_ostream &Out) { in output() argument
1078 Out << format("0x%" PRIX8, (uint8_t)Val); in output()
1081 StringRef ScalarTraits<Hex8>::input(StringRef Scalar, void *, Hex8 &Val) { in input() argument
1087 Val = n; in input()
1091 void ScalarTraits<Hex16>::output(const Hex16 &Val, void *, raw_ostream &Out) { in output() argument
1092 Out << format("0x%" PRIX16, (uint16_t)Val); in output()
1095 StringRef ScalarTraits<Hex16>::input(StringRef Scalar, void *, Hex16 &Val) { in input() argument
1101 Val = n; in input()
1105 void ScalarTraits<Hex32>::output(const Hex32 &Val, void *, raw_ostream &Out) { in output() argument
1106 Out << format("0x%" PRIX32, (uint32_t)Val); in output()
1109 StringRef ScalarTraits<Hex32>::input(StringRef Scalar, void *, Hex32 &Val) { in input() argument
1115 Val = n; in input()
1119 void ScalarTraits<Hex64>::output(const Hex64 &Val, void *, raw_ostream &Out) { in output() argument
1120 Out << format("0x%" PRIX64, (uint64_t)Val); in output()
1123 StringRef ScalarTraits<Hex64>::input(StringRef Scalar, void *, Hex64 &Val) { in input() argument
1127 Val = Num; in input()
1131 void ScalarTraits<VersionTuple>::output(const VersionTuple &Val, void *, in output() argument
1133 Out << Val.getAsString(); in output()
1137 VersionTuple &Val) { in input() argument
1138 if (Val.tryParse(Scalar)) in input()