reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

gen/tools/clang/include/clang/AST/TypeNodes.inc
   41 TYPE(Enum, TagType)

References

include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   66   static inline bool doit(const From &) { return true; }
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  252       X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  331                             typename cast_retty<X, const Y>::ret_type>::type
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
  259   const T &getUnchecked() const {
  260     return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
  394     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  399     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  401       return *cast<T>(static_cast<const BaseT *>(
  479     : public DynCastPtrConverter<T, Type> {};
tools/clang/include/clang/AST/CanonicalType.h
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   87   const T *getTypePtrOrNull() const {
  126   CanProxy<T> operator->() const;
  157   CanQual<T> getUnqualifiedType() const;
  167   bool isMoreQualifiedThan(CanQual<T> Other) const {
  173   bool isAtLeastAsQualifiedAs(CanQual<T> Other) const {
  185   static CanQual<T> getFromOpaquePtr(void *Ptr);
  192   static CanQual<T> CreateUnsafe(QualType Other);
  241   CanQual<T> Stored;
  245   const T *getTypePtr() const { return Stored.getTypePtr(); }
  254   operator const T*() const { return this->Stored.getTypePtrOrNull(); }
  321   const CanProxyAdaptor<T> *operator->() const {
  561 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
tools/clang/include/clang/AST/Type.h
 6476   return isa<EnumType>(CanonicalType);
 6688   if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
 6688   if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
 6743   if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
 6743   if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
 6761   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 6761   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
tools/clang/include/clang/AST/TypeLoc.h
  486     return TypeClass::classof(Ty);
  498   const TypeClass *getTypePtr() const {
  499     return cast<TypeClass>(Base::getTypePtr());
  728                                                      EnumType> {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 5781 extern const AstTypeMatcher<EnumType> enumType;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  302   virtual bool matches(const T &Node,
  309     return matches(DynNode.getUnchecked<T>(), Finder, Builder);
  345   DynTypedMatcher(MatcherInterface<T> *Implementation)
  346       : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
  436     return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  445   template <typename T> Matcher<T> convertTo() const {
  447     return unconditionalConvertTo<T>();
  479 class WrapperMatcherInterface : public MatcherInterface<T> {
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  520             std::is_same<T, QualType>::value &&
  529     static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  751 class HasDeclarationMatcher : public WrapperMatcherInterface<T> {
  759   bool matches(const T &Node, ASTMatchFinder *Finder,
 1067   using head = T1;
 1073   using tail = TypeList<Ts...>;
 1084       std::is_base_of<typename AnyTypeList::head, T>::value ||
 1085       TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
 1116     TypeList<CallExpr, CXXConstructExpr, CXXNewExpr, DeclRefExpr, EnumType,
 1202   operator Matcher<T>() const {
 1203     static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
 1243   operator Matcher<T>() const {
 1245                ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
 1246         .template unconditionalConvertTo<T>();
 1255 class BindableMatcher : public Matcher<T> {
 1257   explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
 1258   explicit BindableMatcher(MatcherInterface<T> *Implementation)
 1265   Matcher<T> bind(StringRef ID) const {
 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
 1376 BindableMatcher<T> makeAllOfComposite(
 1377     ArrayRef<const Matcher<T> *> InnerMatchers) {
 1388   using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
 1395           ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1397           .template unconditionalConvertTo<T>());
 1408     ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
  199   ast_matchers::internal::Matcher<T> getTypedMatcher() const {
  202         ->template convertTo<T>();
  227       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
  228   typedef ast_matchers::internal::Matcher<T> MatcherT;
  232     return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  941     if (const EnumType *EnumTy = qt->getAs<EnumType>()) {
  941     if (const EnumType *EnumTy = qt->getAs<EnumType>()) {
tools/clang/lib/AST/ASTContext.cpp
 2111     if (const auto *ET = dyn_cast<EnumType>(TT)) {
 2111     if (const auto *ET = dyn_cast<EnumType>(TT)) {
 2303   if (const auto *ET = T->getAs<EnumType>())
 2303   if (const auto *ET = T->getAs<EnumType>())
 4034   auto *newType = new (*this, TypeAlignment) EnumType(Decl);
 4034   auto *newType = new (*this, TypeAlignment) EnumType(Decl);
 5848   if (const auto *ET = Promotable->getAs<EnumType>())
 5848   if (const auto *ET = Promotable->getAs<EnumType>())
 5906 static const Type *getIntegerTypeForEnum(const EnumType *ET) {
 5922   if (const auto *ET = dyn_cast<EnumType>(LHSC))
 5922   if (const auto *ET = dyn_cast<EnumType>(LHSC))
 5924   if (const auto *ET = dyn_cast<EnumType>(RHSC))
 5924   if (const auto *ET = dyn_cast<EnumType>(RHSC))
 6744 static char ObjCEncodingForEnumType(const ASTContext *C, const EnumType *ET) {
 6789     if (const auto *ET = T->getAs<EnumType>())
 6789     if (const auto *ET = T->getAs<EnumType>())
 6813       S += ObjCEncodingForEnumType(this, cast<EnumType>(CT));
 8798       if (const auto *Enum = paramTy->getAs<EnumType>()) {
 8798       if (const auto *Enum = paramTy->getAs<EnumType>()) {
 8823 static QualType mergeEnumWithInteger(ASTContext &Context, const EnumType *ET,
 8928     if (const auto *ETy = LHS->getAs<EnumType>()) {
 8928     if (const auto *ETy = LHS->getAs<EnumType>()) {
 8931     if (const EnumType* ETy = RHS->getAs<EnumType>()) {
 8931     if (const EnumType* ETy = RHS->getAs<EnumType>()) {
 9300   if (const auto *ET = T->getAs<EnumType>())
 9300   if (const auto *ET = T->getAs<EnumType>())
 9318   if (const auto *ETy = T->getAs<EnumType>())
 9318   if (const auto *ETy = T->getAs<EnumType>())
tools/clang/lib/AST/ASTImporter.cpp
  339     ExpectedType VisitEnumType(const EnumType *T);
 1353 ExpectedType ASTNodeImporter::VisitEnumType(const EnumType *T) {
tools/clang/lib/AST/ExprConstant.cpp
 6347                           const EnumType *EnumSugar = nullptr) {
 6448   Optional<APValue> visit(const EnumType *Ty, CharUnits Offset) {
tools/clang/lib/AST/FormatString.cpp
  346       if (const EnumType *ETy = argTy->getAs<EnumType>()) {
  346       if (const EnumType *ETy = argTy->getAs<EnumType>()) {
  369       if (const EnumType *ETy = argTy->getAs<EnumType>()) {
  369       if (const EnumType *ETy = argTy->getAs<EnumType>()) {
tools/clang/lib/AST/ItaniumMangle.cpp
 2934 void CXXNameMangler::mangleType(const EnumType *T) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 2459 void MicrosoftCXXNameMangler::mangleType(const EnumType *T, Qualifiers,
tools/clang/lib/AST/ODRHash.cpp
 1002   void VisitEnumType(const EnumType *T) { VisitTagType(T); }
tools/clang/lib/AST/PrintfFormatString.cpp
  726   if (const EnumType *ETy = QT->getAs<EnumType>())
  726   if (const EnumType *ETy = QT->getAs<EnumType>())
tools/clang/lib/AST/ScanfFormatString.cpp
  426   if (const EnumType *ETy = PT->getAs<EnumType>()) {
  426   if (const EnumType *ETy = PT->getAs<EnumType>()) {
tools/clang/lib/AST/TemplateBase.cpp
   57   if (const EnumType *ET = T->getAs<EnumType>()) {
   57   if (const EnumType *ET = T->getAs<EnumType>()) {
tools/clang/lib/AST/Type.cpp
   80     ND = ty->castAs<EnumType>()->getDecl();
  545   if (const auto *ET = getAs<EnumType>())
  545   if (const auto *ET = getAs<EnumType>())
 1849     if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 1849     if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 1864   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 1864   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 1933   if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
 1933   if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
 1949   if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) {
 1949   if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) {
 1973   if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) {
 1973   if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) {
 1989   if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) {
 1989   if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) {
 2030   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 2030   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 2039   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 2039   if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
 2069   } else if (isa<EnumType>(T)) {
 2125     EnumDecl *EnumD = cast<EnumType>(CanonicalType)->getDecl();
 2542   if (const auto *ET = getAs<EnumType>()) {
 2542   if (const auto *ET = getAs<EnumType>()) {
 2551   if (const auto *ET = getAs<EnumType>()) {
 2551   if (const auto *ET = getAs<EnumType>()) {
 2581   if (const auto *ET = getAs<EnumType>()){
 2581   if (const auto *ET = getAs<EnumType>()){
tools/clang/lib/AST/TypePrinter.cpp
 1229 void TypePrinter::printEnumBefore(const EnumType *T, raw_ostream &OS) {
 1233 void TypePrinter::printEnumAfter(const EnumType *T, raw_ostream &OS) {}
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  828 const AstTypeMatcher<EnumType> enumType;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   75     return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
   78   static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
   79     return Value.getMatcher().getTypedMatcher<T>();
   83     return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  466       ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
  469         DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
  778     ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 2072   llvm::DIType *Res = CreateTypeDefinition(Ty->castAs<EnumType>());
 2755 llvm::DIType *CGDebugInfo::CreateEnumType(const EnumType *Ty) {
 2799 llvm::DIType *CGDebugInfo::CreateTypeDefinition(const EnumType *Ty) {
 3037     return CreateEnumType(cast<EnumType>(Ty));
tools/clang/lib/CodeGen/CGDebugInfo.h
  186   llvm::DIType *CreateEnumType(const EnumType *Ty);
  187   llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
tools/clang/lib/CodeGen/CGExpr.cpp
 1535   if (const EnumType *ET = Ty->getAs<EnumType>())
 1535   if (const EnumType *ET = Ty->getAs<EnumType>())
 1547   const EnumType *ET = Ty->getAs<EnumType>();
 1547   const EnumType *ET = Ty->getAs<EnumType>();
 1597   bool NeedsEnumCheck = HasEnumCheck && Ty->getAs<EnumType>();
tools/clang/lib/CodeGen/CodeGenTBAA.cpp
  169   if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) {
  169   if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) {
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  642     const EnumDecl *ED = cast<EnumType>(Ty)->getDecl();
tools/clang/lib/CodeGen/TargetInfo.cpp
  698   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
  698   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
  713   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
  713   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
  895   } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) {
  895   } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) {
  916   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
  916   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 1457   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 1457   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 1726   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 1726   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 2600   if (const EnumType *ET = Ty->getAs<EnumType>()) {
 2600   if (const EnumType *ET = Ty->getAs<EnumType>()) {
 2908     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 2908     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 2946     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 2946     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 3328       if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 3328       if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 3473       if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 3473       if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 3935   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 3935   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 4515   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 4515   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 5137     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 5137     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 5213     if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 5213     if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 5891     if (const EnumType *EnumTy = Ty->getAs<EnumType>()) {
 5891     if (const EnumType *EnumTy = Ty->getAs<EnumType>()) {
 6098     if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 6098     if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 6424   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 6424   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 6433   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 6433   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 6586   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 6586   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 7138   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 7138   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 7222   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 7222   if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 7472     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 7472     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 7510     if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 7510     if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
 7650   if (const auto *EnumTy = Ty->getAs<EnumType>())
 7650   if (const auto *EnumTy = Ty->getAs<EnumType>())
 8316   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 8316   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 8547   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 8547   if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 9198   if (const EnumType *ET = QT->getAs<EnumType>())
 9198   if (const EnumType *ET = QT->getAs<EnumType>())
 9588     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
 9588     if (const EnumType *EnumTy = Ty->getAs<EnumType>())
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
 1016         if (OrigTy->getAs<EnumType>() || isEnumConstant(OrigArg))
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 3662     EnumDecl *ED = Type->castAs<EnumType>()->getDecl();
 3737     TD = Type->castAs<EnumType>()->getDecl();
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
  736     } else if (isa<EnumType>(T)) {
tools/clang/lib/Sema/SemaCast.cpp
 1161   if (const EnumType *Enum = SrcType->getAs<EnumType>()) {
 1161   if (const EnumType *Enum = SrcType->getAs<EnumType>()) {
tools/clang/lib/Sema/SemaChecking.cpp
 5655              const EnumDecl *ED = Type->castAs<EnumType>()->getDecl();
 8365   if (auto EnumTy = ExprTy->getAs<EnumType>()) {
10090       if (const EnumType *ET = dyn_cast<EnumType>(T))
10090       if (const EnumType *ET = dyn_cast<EnumType>(T))
10092     } else if (const EnumType *ET = dyn_cast<EnumType>(T)) {
10092     } else if (const EnumType *ET = dyn_cast<EnumType>(T)) {
10132     if (const EnumType *ET = dyn_cast<EnumType>(T))
10132     if (const EnumType *ET = dyn_cast<EnumType>(T))
10909     EnumDecl *BitfieldEnumDecl = BitfieldType->castAs<EnumType>()->getDecl();
10941     if (const auto *EnumTy = OriginalInit->getType()->getAs<EnumType>()) {
10941     if (const auto *EnumTy = OriginalInit->getType()->getAs<EnumType>()) {
11484   const auto *LHSEnumType = LHSStrippedType->getAs<EnumType>();
11484   const auto *LHSEnumType = LHSStrippedType->getAs<EnumType>();
11487   const auto *RHSEnumType = RHSStrippedType->getAs<EnumType>();
11487   const auto *RHSEnumType = RHSStrippedType->getAs<EnumType>();
11961   if (const EnumType *SourceEnum = Source->getAs<EnumType>())
11961   if (const EnumType *SourceEnum = Source->getAs<EnumType>())
11962     if (const EnumType *TargetEnum = Target->getAs<EnumType>())
11962     if (const EnumType *TargetEnum = Target->getAs<EnumType>())
14352                               cast<EnumType>(T1)->getDecl(),
14353                               cast<EnumType>(T2)->getDecl());
tools/clang/lib/Sema/SemaCodeComplete.cpp
 4374       EnumDecl *Enum = Data.PreferredType->castAs<EnumType>()->getDecl();
 4980   EnumDecl *Enum = type->castAs<EnumType>()->getDecl();
tools/clang/lib/Sema/SemaDeclAttr.cpp
 3973   if ((isa<EnumDecl>(D) || OldElemTy->getAs<EnumType>()) &&
 3979       OldElemTy->isIntegralOrEnumerationType() || OldElemTy->getAs<EnumType>();
tools/clang/lib/Sema/SemaDeclCXX.cpp
14564     } else if (T->getAs<EnumType>()) {
tools/clang/lib/Sema/SemaExpr.cpp
 9786   if (const EnumType *ET = T->getAs<EnumType>())
 9786   if (const EnumType *ET = T->getAs<EnumType>())
10027   const EnumType *LHSEnumType = LHSStrippedType->getAs<EnumType>();
10027   const EnumType *LHSEnumType = LHSStrippedType->getAs<EnumType>();
10030   const EnumType *RHSEnumType = RHSStrippedType->getAs<EnumType>();
10030   const EnumType *RHSEnumType = RHSStrippedType->getAs<EnumType>();
10541         LHSStrippedType->castAs<EnumType>()->getDecl()->getIntegerType();
tools/clang/lib/Sema/SemaExprCXX.cpp
 7386   if (const EnumType *T = E->getType()->getAs<EnumType>()) {
 7386   if (const EnumType *T = E->getType()->getAs<EnumType>()) {
tools/clang/lib/Sema/SemaExprObjC.cpp
  633   } else if (const EnumType *ET = ValueType->getAs<EnumType>()) {
  633   } else if (const EnumType *ET = ValueType->getAs<EnumType>()) {
tools/clang/lib/Sema/SemaInit.cpp
 4383     auto *ET = DestType->getAs<EnumType>();
tools/clang/lib/Sema/SemaLambda.cpp
  626   if (const EnumType *ET = E->getType()->getAs<EnumType>()) {
  626   if (const EnumType *ET = E->getType()->getAs<EnumType>()) {
tools/clang/lib/Sema/SemaLookup.cpp
 2873       EnumDecl *Enum = cast<EnumType>(T)->getDecl();
tools/clang/lib/Sema/SemaOverload.cpp
  316   if (auto *ET = ToType->getAs<EnumType>())
 2041   if (const EnumType *FromEnumType = FromType->getAs<EnumType>()) {
 2041   if (const EnumType *FromEnumType = FromType->getAs<EnumType>()) {
 3807   EnumDecl *Enum = FromType->getAs<EnumType>()->getDecl();
 8911           if (!(*Enum)->castAs<EnumType>()->getDecl()->isScoped())
tools/clang/lib/Sema/SemaStmt.cpp
  825   const EnumType *CondEnumType = CondType->getAs<EnumType>();
  825   const EnumType *CondEnumType = CondType->getAs<EnumType>();
  826   const EnumType *CaseEnumType = CaseType->getAs<EnumType>();
  826   const EnumType *CaseEnumType = CaseType->getAs<EnumType>();
 1130     const EnumType *ET = CondTypeBeforePromotion->getAs<EnumType>();
 1130     const EnumType *ET = CondTypeBeforePromotion->getAs<EnumType>();
 1265   if (const EnumType *ET = DstType->getAs<EnumType>())
 1265   if (const EnumType *ET = DstType->getAs<EnumType>())
tools/clang/lib/Sema/SemaStmtAsm.cpp
  705     if (isa<clang::EnumType>(T) && Res->EvaluateAsRValue(Eval, Context))
tools/clang/lib/Sema/SemaTemplate.cpp
  695     IsEnum = dyn_cast_or_null<EnumType>(NNS->getAsType());
 2692     if (const EnumType *EnumT = T->getAs<EnumType>()) {
 2692     if (const EnumType *EnumT = T->getAs<EnumType>()) {
 5620 bool UnnamedLocalNoLinkageFinder::VisitEnumType(const EnumType* T) {
 6596       if (const EnumType *Enum = IntegerType->getAs<EnumType>())
 6596       if (const EnumType *Enum = IntegerType->getAs<EnumType>())
 6677     if (const EnumType *Enum = IntegerType->getAs<EnumType>())
 6677     if (const EnumType *Enum = IntegerType->getAs<EnumType>())
 7078   if (const EnumType *ET = OrigT->getAs<EnumType>())
 7078   if (const EnumType *ET = OrigT->getAs<EnumType>())
tools/clang/lib/Sema/SemaType.cpp
 8415         EnumDecl *ED = BaseType->getAs<EnumType>()->getDecl();
tools/clang/lib/Sema/TreeTransform.h
 5838   const EnumType *T = TL.getTypePtr();
 5838   const EnumType *T = TL.getTypePtr();
 5840     = cast_or_null<EnumDecl>(getDerived().TransformDecl(TL.getNameLoc(),
 5845   QualType Result = TL.getType();
 5853   EnumTypeLoc NewTL = TLB.push<EnumTypeLoc>(Result);
 5854   NewTL.setNameLoc(TL.getNameLoc());
tools/clang/lib/Serialization/ASTWriter.cpp
  399 void ASTTypeWriter::VisitEnumType(const EnumType *T) {
tools/clang/lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp
  128   const EnumDecl *ED = T->castAs<EnumType>()->getDecl();
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 2407   if (CondExpr->getType()->getAs<EnumType>()) {
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
  119       if (const auto *ET = ECD->getType()->getAs<EnumType>())
  119       if (const auto *ET = ECD->getType()->getAs<EnumType>())
tools/lldb/source/Symbol/ClangASTContext.cpp
 2573     return llvm::cast<clang::EnumType>(qual_type)->getDecl();
 3312     const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>(
 3312     const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>(
 4065           this, llvm::cast<clang::EnumType>(qual_type)
 4901       if (const clang::EnumType *et = qual_type->getAs<clang::EnumType>())
 4901       if (const clang::EnumType *et = qual_type->getAs<clang::EnumType>())
 5790   const clang::EnumType *enum_type =
 5791       llvm::dyn_cast<clang::EnumType>(GetCanonicalQualType(type));
 7822   const clang::EnumType *enutype =
 7823       llvm::dyn_cast<clang::EnumType>(ClangUtil::GetCanonicalQualType(type));
 8710         llvm::cast<clang::EnumType>(qual_type)->getDecl();
 8817     const clang::EnumType *enutype = qual_type->getAs<clang::EnumType>();
 8817     const clang::EnumType *enutype = qual_type->getAs<clang::EnumType>();
 8884   const clang::EnumType *enutype = llvm::dyn_cast<clang::EnumType>(clang_type);
 8884   const clang::EnumType *enutype = llvm::dyn_cast<clang::EnumType>(clang_type);
 8925     const clang::EnumType *enutype =
 8926         llvm::dyn_cast<clang::EnumType>(clang_type);
 9169       const clang::EnumType *enutype =
 9170           llvm::cast<clang::EnumType>(qual_type.getTypePtr());
 9387   const clang::EnumType *enutype =
 9388       llvm::cast<clang::EnumType>(qual_type.getTypePtr());
 9757           llvm::cast<clang::EnumType>(qual_type)->getDecl();
tools/lldb/source/Symbol/ClangASTImporter.cpp
  427         llvm::cast<clang::EnumType>(qual_type)->getDecl();
  503         llvm::cast<clang::EnumType>(qual_type)->getDecl();
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
 1447     : public __and_<is_destructible<_Tp>, integral_constant<bool,
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };