Home
last modified time | relevance | path

Searched refs:EnumT (Results 1 – 10 of 10) sorted by relevance

/external/angle/src/libANGLE/
DBinaryStream.h70 template <class EnumT>
71 EnumT readEnum() in readEnum()
73 using UnderlyingType = typename std::underlying_type<EnumT>::type; in readEnum()
74 return static_cast<EnumT>(readInt<UnderlyingType>()); in readEnum()
77 template <class EnumT>
78 void readEnum(EnumT *outValue) in readEnum()
80 *outValue = readEnum<EnumT>(); in readEnum()
239 template <class EnumT>
240 void writeEnum(EnumT param) in writeEnum()
242 using UnderlyingType = typename std::underlying_type<EnumT>::type; in writeEnum()
DError.h24 template <typename ErrorT, typename ErrorBaseT, ErrorBaseT NoErrorVal, typename CodeT, CodeT EnumT>
28 ErrorStreamBase() : mID(EnumT) {} in ErrorStreamBase()
38 operator ErrorT() { return ErrorT(EnumT, mID, mErrorStream.str()); } in ErrorT()
88 template <EGLint EnumT>
89 using ErrorStream = angle::ErrorStreamBase<Error, EGLint, EGL_SUCCESS, EGLint, EnumT>;
/external/clang/test/CXX/class/class.mem/
Dp1.cpp12 enum EnumT { E = 10 }; enum
18 S::EnumT Evar = S::E; // ok
19 S::EnumT Evar2 = EnumT(); //expected-error{{use of undeclared identifier 'EnumT'}}
/external/llvm-project/clang/test/CXX/class/class.mem/
Dp1.cpp12 enum EnumT { E = 10 }; // expected-note {{declared here}} enum
18 S::EnumT Evar = S::E; // ok
19 S::EnumT Evar2 = EnumT(); //expected-error{{use of undeclared identifier 'EnumT'; did you mean 'S::…
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DPopulateSwitch.cpp77 const EnumType *EnumT = nullptr; member in clang::clangd::__anond5c3c6910111::PopulateSwitch
124 EnumT = Cond->getType()->getAsAdjusted<EnumType>(); in REGISTER_TWEAK()
125 if (!EnumT) in REGISTER_TWEAK()
128 EnumD = EnumT->getDecl(); in REGISTER_TWEAK()
137 unsigned EnumIntWidth = Ctx.getIntWidth(QualType(EnumT, 0)); in REGISTER_TWEAK()
138 bool EnumIsSigned = EnumT->isSignedIntegerOrEnumerationType(); in REGISTER_TWEAK()
/external/angle/src/common/
DPackedEnums.h745 template <typename EnumT, typename FromT>
746 typename std::enable_if<std::is_enum<EnumT>::value, EnumT>::type PackParam(FromT from)
748 return FromGLenum<EnumT>(from);
752 template <typename EnumT, typename FromT>
753 typename std::enable_if<!std::is_pointer<FromT>::value && !std::is_enum<EnumT>::value, EnumT>::type
760 template <typename EnumT, typename FromT>
761 typename std::enable_if<std::is_pointer<FromT>::value && !std::is_enum<EnumT>::value, EnumT>::type
764 static_assert(sizeof(typename std::remove_pointer<EnumT>::type) ==
769 decltype(std::remove_pointer<EnumT>::type::value),
772 return reinterpret_cast<EnumT>(from);
/external/llvm-project/llvm/lib/Target/AMDGPU/
DSIInsertWaitcnts.cpp80 template <typename EnumT>
82 : public iterator_facade_base<enum_iterator<EnumT>,
83 std::forward_iterator_tag, const EnumT> {
84 EnumT Value;
87 enum_iterator(EnumT Value) : Value(Value) {} in enum_iterator()
90 Value = static_cast<EnumT>(Value + 1); in operator ++()
96 EnumT operator*() const { return Value; } in operator *()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIInsertWaitcnts.cpp80 template <typename EnumT>
82 : public iterator_facade_base<enum_iterator<EnumT>,
83 std::forward_iterator_tag, const EnumT> {
84 EnumT Value;
87 enum_iterator(EnumT Value) : Value(Value) {} in enum_iterator()
90 Value = static_cast<EnumT>(Value + 1); in operator ++()
96 EnumT operator*() const { return Value; } in operator *()
/external/clang/lib/Sema/
DSemaTemplate.cpp1741 if (const EnumType *EnumT = T->getAs<EnumType>()) { in MatchTemplateParametersToScopeSpecifier() local
1744 EnumDecl *Enum = EnumT->getDecl(); in MatchTemplateParametersToScopeSpecifier()
/external/llvm-project/clang/lib/Sema/
DSemaTemplate.cpp3111 if (const EnumType *EnumT = T->getAs<EnumType>()) { in MatchTemplateParametersToScopeSpecifier() local
3114 EnumDecl *Enum = EnumT->getDecl(); in MatchTemplateParametersToScopeSpecifier()