Lines Matching defs:ED
1970 auto *ED = cast<EnumConstantDecl>(D);
1971 assert(EnumScope->isDeclScope(ED));
1972 EnumScope->RemoveDecl(ED);
1973 IdResolver.RemoveDecl(ED);
1974 ED->getLexicalDeclContext()->removeDecl(ED);
10931 if (auto *ED = dyn_cast<EnumDecl>(D)) {
10932 for (auto *EI : ED->enumerators())
11999 // by types using'ed into this scope.
12308 else if (EnumDecl *ED = dyn_cast<EnumDecl>(Def))
12310 ED->getTemplateSpecializationKind() !=
12491 EnumDecl *ED = cast<EnumDecl>(New);
12493 ED->setIntegerTypeSourceInfo(TI);
12495 ED->setIntegerType(QualType(EnumUnderlying.get<const Type*>(), 0));
12496 ED->setPromotionType(ED->getIntegerType());
14289 bool Sema::IsValueInFlagEnum(const EnumDecl *ED, const llvm::APInt &Val,
14291 assert(ED->hasAttr<FlagEnumAttr>() && "looking for value in non-flag enum");
14292 assert(ED->isCompleteDefinition() && "expected enum definition");
14294 auto R = FlagBitsCache.insert(std::make_pair(ED, llvm::APInt()));
14298 for (auto *E : ED->enumerators()) {