Searched defs:ED (Results 1 - 20 of 20) sorted by relevance

/external/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h221 ExpectedData ED; member in class:clang::VerifyDiagnosticConsumer
/external/clang/lib/CodeGen/
H A DCodeGenTypes.cpp236 if (const EnumDecl *ED = dyn_cast<EnumDecl>(TD)) {
238 if (TypeCache.count(ED->getTypeForDecl())) {
242 if (!ConvertType(ED->getIntegerType())->isIntegerTy(32))
248 DI->completeType(ED);
565 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); local
566 if (ED->isCompleteDefinition() || ED->isFixed())
567 return ConvertType(ED->getIntegerType());
H A DCGDebugInfo.cpp1435 void CGDebugInfo::completeType(const EnumDecl *ED) { argument
1438 QualType Ty = CGM.getContext().getEnumType(ED);
1913 const EnumDecl *ED = Ty->getDecl(); local
1916 if (!ED->getTypeForDecl()->isIncompleteType()) {
1917 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
1918 Align = CGM.getContext().getTypeAlign(ED->getTypeForDecl());
1925 if (!ED->getDefinition()) {
1927 EDContext = getContextDescriptor(cast<Decl>(ED->getDeclContext()));
1928 llvm::DIFile DefUnit = getOrCreateFile(ED->getLocation());
1929 unsigned Line = getLineNumber(ED
1942 const EnumDecl *ED = Ty->getDecl(); local
3200 const EnumDecl *ED = cast<EnumDecl>(ECD->getDeclContext()); local
[all...]
H A DCGExpr.cpp1032 const EnumDecl *ED = ET->getDecl(); local
1033 llvm::Type *LTy = CGF.ConvertTypeForMem(ED->getIntegerType());
1035 unsigned NumNegativeBits = ED->getNumNegativeBits();
1036 unsigned NumPositiveBits = ED->getNumPositiveBits();
/external/clang/lib/Frontend/
H A DASTConsumers.cpp202 const EnumDecl* ED = cast<EnumDecl>(DC); local
203 if (ED->isCompleteDefinition())
207 Out << *ED; local
H A DVerifyDiagnosticConsumer.cpp313 static bool ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM, argument
334 DL = ED ? &ED->Errors : nullptr;
336 DL = ED ? &ED->Warnings : nullptr;
338 DL = ED ? &ED->Remarks : nullptr;
340 DL = ED ? &ED->Notes : nullptr;
544 ParseDirective(C, &ED, S
740 CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, const TextDiagnosticBuffer &Buffer, ExpectedData &ED) argument
[all...]
H A DCompilerInstance.cpp1405 unsigned ED = Name.edit_distance((*J)->Name, local
1408 if (ED <= BestEditDistance) {
1409 if (ED < BestEditDistance) {
1411 BestEditDistance = ED;
/external/clang/lib/Lex/
H A DPPLexerChange.cpp307 const unsigned ED = ControllingMacroName.edit_distance( local
309 if (ED <= MaxHalfLength) {
/external/clang/include/clang/Sema/
H A DTypoCorrection.h95 void setQualifierDistance(unsigned ED) { argument
96 QualifierDistance = ED;
99 void setCallbackDistance(unsigned ED) { argument
100 CallbackDistance = ED;
106 static unsigned NormalizeEditDistance(unsigned ED) { argument
107 if (ED > MaximumDistance)
109 return (ED + CharDistanceWeight / 2) / CharDistanceWeight;
119 unsigned ED = local
123 if (ED > MaximumDistance)
125 // Half the CharDistanceWeight is added to ED t
[all...]
/external/clang/lib/AST/
H A DItaniumMangle.cpp3027 const EnumConstantDecl *ED = cast<EnumConstantDecl>(D); local
3028 mangleIntegerLiteral(ED->getType(), ED->getInitVal());
H A DDecl.cpp3477 void EnumDecl::setInstantiationOfMemberEnum(ASTContext &C, EnumDecl *ED, argument
3480 SpecializationInfo = new (C) MemberSpecializationInfo(ED, TSK);
/external/clang/lib/Sema/
H A DSemaLambda.cpp530 if (EnumDecl *ED = findEnumForBlockReturn(CO->getTrueExpr()))
531 if (ED == findEnumForBlockReturn(CO->getFalseExpr()))
532 return ED;
572 EnumDecl *ED = findEnumForBlockReturn(*i); local
573 if (!ED) return nullptr;
577 if (findEnumForBlockReturn(*i) != ED)
582 if (!ED->hasNameForLinkage()) return nullptr;
584 return ED;
658 const EnumDecl *ED = findCommonEnumForBlockReturns(CSI.Returns); local
659 if (ED) {
[all...]
H A DSemaLookup.cpp1194 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(Entity)) {
1195 if (MemberSpecializationInfo *MSInfo = ED->getMemberSpecializationInfo())
1196 Entity = getInstantiatedFrom(ED, MSInfo);
3521 unsigned ED = TypoStr.edit_distance(Name, true, UpperBound); local
3522 if (ED >= UpperBound) return;
3524 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED);
4336 unsigned ED = Consumer.getBestEditDistance(true); variable
4337 if (ED > 0 && TypoLen / ED < 3)
4361 ED
[all...]
H A DSemaStmt.cpp678 const EnumDecl *ED,
690 QualType EnumType = Ctx.getTypeDeclType(ED);
1025 const EnumDecl *ED = ET->getDecl(); local
1032 for (auto *EDI : ED->enumerators()) {
1049 if (ShouldDiagnoseSwitchCaseNotInEnum(Context, ED, CaseExpr))
1063 if (ShouldDiagnoseSwitchCaseNotInEnum(Context, ED, CaseExpr))
1075 if (ShouldDiagnoseSwitchCaseNotInEnum(Context, ED, CaseExpr))
1174 const EnumDecl *ED = ET->getDecl(); local
1181 for (auto *EDI : ED->enumerators()) {
677 ShouldDiagnoseSwitchCaseNotInEnum(const ASTContext &Ctx, const EnumDecl *ED, const Expr *CaseExpr) argument
H A DSemaType.cpp5127 } else if (auto *ED = dyn_cast<EnumDecl>(D)) {
5128 while (auto *NewED = ED->getInstantiatedFromMemberEnum())
5129 ED = NewED;
5130 if (ED->isFixed()) {
5133 for (auto *Redecl : ED->redecls()) {
5142 D = ED->getDefinition();
5581 EnumDecl *ED = BaseType->getAs<EnumType>()->getDecl(); local
5582 assert(ED && "EnumType has no EnumDecl");
5584 DiagnoseUseOfDecl(ED, Loc);
5586 Underlying = ED
[all...]
H A DSemaChecking.cpp5530 const EnumConstantDecl *ED = nullptr; local
5532 ED = dyn_cast<EnumConstantDecl>(DR->getDecl());
5536 if (ED)
5537 OS << '\'' << *ED << "' (" << Value << ")";
H A DSemaDecl.cpp9975 if (auto *ED = dyn_cast<EnumDecl>(D)) {
9976 for (auto *EI : ED->enumerators())
11159 else if (EnumDecl *ED = dyn_cast<EnumDecl>(Def))
11161 ED->getTemplateSpecializationKind() !=
11332 EnumDecl *ED = cast<EnumDecl>(New); local
11334 ED->setIntegerTypeSourceInfo(TI);
11336 ED->setIntegerType(QualType(EnumUnderlying.get<const Type*>(), 0));
11337 ED->setPromotionType(ED->getIntegerType());
H A DSemaDeclCXX.cpp11293 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); local
11297 ProcessDeclAttributeList(S, ED, AttrList);
11299 CurContext->addDecl(ED);
11300 return ED;
/external/clang/lib/Serialization/
H A DASTReaderDecl.cpp241 void VisitEnumDecl(EnumDecl *ED);
502 void ASTDeclReader::VisitEnumDecl(EnumDecl *ED) { argument
503 VisitTagDecl(ED);
505 ED->setIntegerTypeSourceInfo(TI);
507 ED->setIntegerType(Reader.readType(F, Record, Idx));
508 ED->setPromotionType(Reader.readType(F, Record, Idx));
509 ED->setNumPositiveBits(Record[Idx++]);
510 ED->setNumNegativeBits(Record[Idx++]);
511 ED->IsScoped = Record[Idx++];
512 ED
[all...]
/external/clang/lib/Rewrite/Frontend/
H A DRewriteModernObjC.cpp3721 if (EnumDecl *ED = dyn_cast<EnumDecl>(Tag)) {
3722 if (!ED || !ED->getDeclName().getAsIdentifierInfo())
3725 TagLocation = ED->getLocation();
3770 EnumDecl *ED = Type->getAs<EnumType>()->getDecl(); local
3771 if (ED->isCompleteDefinition()) {
3773 Result += ED->getName();
3774 if (GlobalDefinedTags.count(ED)) {
3781 for (const auto *EC : ED->enumerators()) {

Completed in 2408 milliseconds