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

/external/clang/include/clang/Sema/
H A DTypoCorrection.h81 void setQualifierDistance(unsigned ED) { argument
82 QualifierDistance = ED;
85 void setCallbackDistance(unsigned ED) { argument
86 CallbackDistance = ED;
92 static unsigned NormalizeEditDistance(unsigned ED) { argument
93 if (ED > MaximumDistance)
95 return (ED + CharDistanceWeight / 2) / CharDistanceWeight;
105 unsigned ED = local
109 if (ED > MaximumDistance)
111 // Half the CharDistanceWeight is added to ED t
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenTypes.cpp241 if (const EnumDecl *ED = dyn_cast<EnumDecl>(TD)) {
243 if (TypeCache.count(ED->getTypeForDecl())) {
247 if (!ConvertType(ED->getIntegerType())->isIntegerTy(32))
534 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); local
535 if (ED->isCompleteDefinition() || ED->isFixed())
536 return ConvertType(ED->getIntegerType());
H A DCGDebugInfo.cpp1567 llvm::DIType CGDebugInfo::CreateEnumType(const EnumDecl *ED) { argument
1568 llvm::DIFile Unit = getOrCreateFile(ED->getLocation());
1573 Enum = ED->enumerator_begin(), EnumEnd = ED->enumerator_end();
1583 llvm::DIFile DefUnit = getOrCreateFile(ED->getLocation());
1584 unsigned Line = getLineNumber(ED->getLocation());
1587 if (!ED->getTypeForDecl()->isIncompleteType()) {
1588 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
1589 Align = CGM.getContext().getTypeAlign(ED->getTypeForDecl());
1592 getContextDescriptor(cast<Decl>(ED
[all...]
H A DCGExpr.cpp894 const EnumDecl *ED = ET->getDecl(); local
895 LTy = ConvertTypeForMem(ED->getIntegerType());
897 unsigned NumNegativeBits = ED->getNumNegativeBits();
898 unsigned NumPositiveBits = ED->getNumPositiveBits();
/external/clang/lib/Frontend/
H A DASTConsumers.cpp126 const EnumDecl* ED = cast<EnumDecl>(DC); local
127 if (ED->isCompleteDefinition())
131 Out << *ED; local
H A DVerifyDiagnosticConsumer.cpp244 ExpectedData &ED, Preprocessor &PP,
261 DL = &ED.Errors;
263 DL = &ED.Warnings;
265 DL = &ED.Notes;
343 static void FindExpectedDiags(Preprocessor &PP, ExpectedData &ED, FileID FID) { argument
366 ParseDirective(&Comment[0], Comment.size(), ED, PP, Tok.getLocation());
474 ExpectedData &ED) {
483 NumProblems += CheckLists(Diags, SourceMgr, "error", ED.Errors,
487 NumProblems += CheckLists(Diags, SourceMgr, "warning", ED.Warnings,
491 NumProblems += CheckLists(Diags, SourceMgr, "note", ED
243 ParseDirective(const char *CommentStart, unsigned CommentLen, ExpectedData &ED, Preprocessor &PP, SourceLocation Pos) argument
472 CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, const TextDiagnosticBuffer &Buffer, ExpectedData &ED) argument
498 ExpectedData ED; local
[all...]
H A DCompilerInstance.cpp1018 unsigned ED = Name.edit_distance((*J)->Name, local
1021 if (ED <= BestEditDistance) {
1022 if (ED < BestEditDistance) {
1024 BestEditDistance = ED;
/external/clang/lib/AST/
H A DItaniumMangle.cpp2780 const EnumConstantDecl *ED = cast<EnumConstantDecl>(D); local
2781 mangleIntegerLiteral(ED->getType(), ED->getInitVal());
H A DDecl.cpp2670 void EnumDecl::setInstantiationOfMemberEnum(ASTContext &C, EnumDecl *ED, argument
2673 SpecializationInfo = new (C) MemberSpecializationInfo(ED, TSK);
/external/clang/lib/Sema/
H A DSemaType.cpp4467 EnumDecl *ED = BaseType->getAs<EnumType>()->getDecl(); local
4468 assert(ED && "EnumType has no EnumDecl");
4469 DiagnoseUseOfDecl(ED, Loc);
4470 Underlying = ED->getIntegerType();
H A DSemaLookup.cpp3335 SpecifierInfo(DeclContext *Ctx, NestedNameSpecifier *NNS, unsigned ED) argument
3336 : DeclCtx(Ctx), NameSpecifier(NNS), EditDistance(ED) {}
3835 unsigned ED = Consumer.getBestEditDistance(true); local
3836 if (ED > 0 && Typo->getName().size() / ED < 3) {
3870 unsigned ED = DI->first; local
3936 else if (!getLangOpts().CPlusPlus || QualifiedResults.empty() || !ED)
3999 ED = TypoCorrection::NormalizeEditDistance(Consumer.begin()->first);
4001 if (ED > 0 && Typo->getName().size() / ED <
[all...]
H A DSemaStmt.cpp868 const EnumDecl *ED = ET->getDecl(); local
875 for (EnumDecl::enumerator_iterator EDI = ED->enumerator_begin();
876 EDI != ED->enumerator_end(); ++EDI) {
H A DSemaDecl.cpp7353 if (EnumDecl *ED = dyn_cast<EnumDecl>(D)) {
7354 for (EnumDecl::enumerator_iterator EI = ED->enumerator_begin(),
7355 EE = ED->enumerator_end(); EI != EE; ++EI)
8346 else if (EnumDecl *ED = dyn_cast<EnumDecl>(Def))
8348 ED->getTemplateSpecializationKind() !=
8510 EnumDecl *ED = cast<EnumDecl>(New); local
8512 ED->setIntegerTypeSourceInfo(TI);
8514 ED->setIntegerType(QualType(EnumUnderlying.get<const Type*>(), 0));
8515 ED->setPromotionType(ED
[all...]
/external/clang/lib/Serialization/
H A DASTReaderDecl.cpp229 void VisitEnumDecl(EnumDecl *ED);
445 void ASTDeclReader::VisitEnumDecl(EnumDecl *ED) { argument
446 VisitTagDecl(ED);
448 ED->setIntegerTypeSourceInfo(TI);
450 ED->setIntegerType(Reader.readType(F, Record, Idx));
451 ED->setPromotionType(Reader.readType(F, Record, Idx));
452 ED->setNumPositiveBits(Record[Idx++]);
453 ED->setNumNegativeBits(Record[Idx++]);
454 ED->IsScoped = Record[Idx++];
455 ED
[all...]
/external/clang/lib/Rewrite/
H A DRewriteModernObjC.cpp3529 EnumDecl *ED = Type->getAs<EnumType>()->getDecl(); local
3530 if (ED->isCompleteDefinition()) {
3532 Result += ED->getName();
3533 if (TagsDefinedInIvarDecls.count(ED)) {
3538 TagsDefinedInIvarDecls.insert(ED);
3541 for (EnumDecl::enumerator_iterator EC = ED->enumerator_begin(),
3542 ECEnd = ED->enumerator_end(); EC != ECEnd; ++EC) {

Completed in 298 milliseconds