Lines Matching refs:Val
884 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument
885 Out << (Val ? "true" : "false"); in output()
888 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument
890 Val = *Parsed; in input()
896 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument
898 Out << Val; in output()
902 StringRef &Val) { in input() argument
903 Val = Scalar; in input()
907 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument
909 Out << Val; in output()
913 std::string &Val) { in input() argument
914 Val = Scalar.str(); in input()
918 void ScalarTraits<uint8_t>::output(const uint8_t &Val, void *, in output() argument
921 uint32_t Num = Val; in output()
925 StringRef ScalarTraits<uint8_t>::input(StringRef Scalar, void *, uint8_t &Val) { in input() argument
931 Val = n; in input()
935 void ScalarTraits<uint16_t>::output(const uint16_t &Val, void *, in output() argument
937 Out << Val; in output()
941 uint16_t &Val) { in input() argument
947 Val = n; in input()
951 void ScalarTraits<uint32_t>::output(const uint32_t &Val, void *, in output() argument
953 Out << Val; in output()
957 uint32_t &Val) { in input() argument
963 Val = n; in input()
967 void ScalarTraits<uint64_t>::output(const uint64_t &Val, void *, in output() argument
969 Out << Val; in output()
973 uint64_t &Val) { in input() argument
977 Val = N; in input()
981 void ScalarTraits<int8_t>::output(const int8_t &Val, void *, raw_ostream &Out) { in output() argument
983 int32_t Num = Val; in output()
987 StringRef ScalarTraits<int8_t>::input(StringRef Scalar, void *, int8_t &Val) { in input() argument
993 Val = N; in input()
997 void ScalarTraits<int16_t>::output(const int16_t &Val, void *, in output() argument
999 Out << Val; in output()
1002 StringRef ScalarTraits<int16_t>::input(StringRef Scalar, void *, int16_t &Val) { in input() argument
1008 Val = N; in input()
1012 void ScalarTraits<int32_t>::output(const int32_t &Val, void *, in output() argument
1014 Out << Val; in output()
1017 StringRef ScalarTraits<int32_t>::input(StringRef Scalar, void *, int32_t &Val) { in input() argument
1023 Val = N; in input()
1027 void ScalarTraits<int64_t>::output(const int64_t &Val, void *, in output() argument
1029 Out << Val; in output()
1032 StringRef ScalarTraits<int64_t>::input(StringRef Scalar, void *, int64_t &Val) { in input() argument
1036 Val = N; in input()
1040 void ScalarTraits<double>::output(const double &Val, void *, raw_ostream &Out) { in output() argument
1041 Out << format("%g", Val); in output()
1044 StringRef ScalarTraits<double>::input(StringRef Scalar, void *, double &Val) { in input() argument
1045 if (to_float(Scalar, Val)) in input()
1050 void ScalarTraits<float>::output(const float &Val, void *, raw_ostream &Out) { in output() argument
1051 Out << format("%g", Val); in output()
1054 StringRef ScalarTraits<float>::input(StringRef Scalar, void *, float &Val) { in input() argument
1055 if (to_float(Scalar, Val)) in input()
1060 void ScalarTraits<Hex8>::output(const Hex8 &Val, void *, raw_ostream &Out) { in output() argument
1061 Out << format("0x%" PRIX8, (uint8_t)Val); in output()
1064 StringRef ScalarTraits<Hex8>::input(StringRef Scalar, void *, Hex8 &Val) { in input() argument
1070 Val = n; in input()
1074 void ScalarTraits<Hex16>::output(const Hex16 &Val, void *, raw_ostream &Out) { in output() argument
1075 Out << format("0x%" PRIX16, (uint16_t)Val); in output()
1078 StringRef ScalarTraits<Hex16>::input(StringRef Scalar, void *, Hex16 &Val) { in input() argument
1084 Val = n; in input()
1088 void ScalarTraits<Hex32>::output(const Hex32 &Val, void *, raw_ostream &Out) { in output() argument
1089 Out << format("0x%" PRIX32, (uint32_t)Val); in output()
1092 StringRef ScalarTraits<Hex32>::input(StringRef Scalar, void *, Hex32 &Val) { in input() argument
1098 Val = n; in input()
1102 void ScalarTraits<Hex64>::output(const Hex64 &Val, void *, raw_ostream &Out) { in output() argument
1103 Out << format("0x%" PRIX64, (uint64_t)Val); in output()
1106 StringRef ScalarTraits<Hex64>::input(StringRef Scalar, void *, Hex64 &Val) { in input() argument
1110 Val = Num; in input()
1114 void ScalarTraits<VersionTuple>::output(const VersionTuple &Val, void *, in output() argument
1116 Out << Val.getAsString(); in output()
1120 VersionTuple &Val) { in input() argument
1121 if (Val.tryParse(Scalar)) in input()