|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Support/Endian.h 39 enum { value = alignment == 0 ? alignof(T) : alignment };
51 inline value_type byte_swap(value_type value, endianness endian) {
51 inline value_type byte_swap(value_type value, endianness endian) {
65 inline value_type read(const void *memory, endianness endian) {
66 value_type ret;
71 sizeof(value_type));
72 return byte_swap<value_type>(ret, endian);
78 inline value_type read(const void *memory) {
79 return read<value_type, alignment>(memory, endian);
99 inline void write(void *memory, value_type value, endianness endian) {
100 value = byte_swap<value_type>(value, endian);
103 &value, sizeof(value_type));
109 inline void write(void *memory, value_type value) {
110 write<value_type, alignment>(memory, value, endian);
209 using value_type = ValueType;
include/llvm/Support/SwapByteOrder.h 146 inline typename std::enable_if<std::is_enum<T>::value, T>::type
146 inline typename std::enable_if<std::is_enum<T>::value, T>::type
147 getSwappedBytes(T C) {
153 inline void swapByteOrder(T &Value) {
include/llvm/Support/YAMLTraits.h 313 using Signature_enumeration = void (*)(class IO&, T&);
322 (sizeof(test<ScalarEnumerationTraits<T>>(nullptr)) == 1);
329 using Signature_bitset = void (*)(class IO&, T&);
337 static bool const value = (sizeof(test<ScalarBitSetTraits<T>>(nullptr)) == 1);
344 using Signature_input = StringRef (*)(StringRef, void*, T&);
345 using Signature_output = void (*)(const T&, void*, raw_ostream&);
357 (sizeof(test<ScalarTraits<T>>(nullptr, nullptr, nullptr)) == 1);
793 void enumCase(T &Val, const char* Str, const T ConstVal) {
793 void enumCase(T &Val, const char* Str, const T ConstVal) {
801 void enumCase(T &Val, const char* Str, const uint32_t ConstVal) {
1281 support::detail::packed_endian_specific_integral<value_type, endian,
1285 value_type V = E;
1286 ScalarEnumerationTraits<value_type>::enumeration(io, V);
unittests/Support/YAMLIOTest.cpp 591 llvm::support::little_t<Enum> LittleEnum;
592 llvm::support::big_t<Enum> BigEnum;
599 static void enumeration(IO &io, Enum &E) {
600 io.enumCase(E, "One", Enum::One);
601 io.enumCase(E, "Two", Enum::Two);
644 map.LittleEnum = Enum::Two;
645 map.BigEnum = Enum::One;
usr/include/c++/7.4.0/type_traits 2157 { typedef _Tp type; };
utils/unittest/googletest/include/gtest/gtest-printers.h 140 static void PrintValue(const T& value, ::std::ostream* os) {
205 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
206 TypeWithoutFormatter<T,
207 (internal::IsAProtocolMessage<T>::value ? kProtobuf :
208 internal::ImplicitlyConvertible<const T&, internal::BiggestInt>::value ?
223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
276 static ::std::string Format(const ToPrint& value) {
351 const T1& value, const T2& /* other_operand */) {
351 const T1& value, const T2& /* other_operand */) {
352 return FormatForComparison<T1, T2>::Format(value);
352 return FormatForComparison<T1, T2>::Format(value);
366 void UniversalPrint(const T& value, ::std::ostream* os);
373 const C& container, ::std::ostream* os) {
439 const T& value, ::std::ostream* os) {
455 void PrintTo(const T& value, ::std::ostream* os) {
478 DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
699 static void Print(const T& value, ::std::ostream* os) {
784 static void Print(const T& value, ::std::ostream* os) {
856 typedef T T1;
983 internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h 1377 const T1& lhs, const T2& rhs) {
1389 const T1& lhs,
1419 const T1& lhs,
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h 29 static const T& printable(const T& V) { return V; }
29 static const T& printable(const T& V) { return V; }
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
37 return StreamSwitch<T>::printable(V);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h 94 ::std::string PrintToString(const T& value);