/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateInstantiateDecl.cpp | 5901 } else if (EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) { 5905 EnumDecl *Enum = cast<EnumDecl>(ED->getLexicalDeclContext());
|
H A D | SemaTemplateInstantiate.cpp | 559 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(D)) { 562 << ED
|
H A D | SemaTemplate.cpp | 10760 if (auto *ED = dyn_cast<EnumDecl>(ND)) 10761 return checkImpl(ED);
|
H A D | SemaType.cpp | 7972 } else if (auto *ED = dyn_cast<EnumDecl>(D)) { 7973 if (auto *Pattern = ED->getTemplateInstantiationPattern()) 7974 ED = Pattern; 7975 if (OnlyNeedComplete && ED->isFixed()) { 7980 for (auto *Redecl : ED->redecls()) { 7989 D = ED->getDefinition(); 8505 EnumDecl *ED = BaseType->getAs<EnumType>()->getDecl(); local 8506 assert(ED && "EnumType has no EnumDecl"); 8508 DiagnoseUseOfDecl(ED, Loc); 8510 Underlying = ED [all...] |
H A D | SemaStmt.cpp | 789 const EnumDecl *ED, 794 if (!ED->isClosed()) 801 QualType EnumType = S.Context.getTypeDeclType(ED); 808 if (ED->hasAttr<FlagEnumAttr>()) 809 return !S.IsValueInFlagEnum(ED, Val, false); 1135 const EnumDecl *ED = ET->getDecl(); local 1140 for (auto *EDI : ED->enumerators()) { 1153 if (ShouldDiagnoseSwitchCaseNotInEnum(*this, ED, CaseExpr, EI, EIEnd, 1164 if (ShouldDiagnoseSwitchCaseNotInEnum(*this, ED, CaseExpr, EI, EIEnd, 1174 if (ShouldDiagnoseSwitchCaseNotInEnum(*this, ED, CaseExp 788 ShouldDiagnoseSwitchCaseNotInEnum(const Sema &S, const EnumDecl *ED, const Expr *CaseExpr, EnumValsTy::iterator &EI, EnumValsTy::iterator &EIEnd, const llvm::APSInt &Val) argument 1276 const EnumDecl *ED = ET->getDecl(); local [all...] |
H A D | SemaLookup.cpp | 1558 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(Entity)) { 1559 if (auto *Pattern = ED->getTemplateInstantiationPattern()) 4258 unsigned ED = TypoStr.edit_distance(Name, true, UpperBound); 4259 if (ED > UpperBound) return; 4261 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); 5037 unsigned ED = Consumer->getBestEditDistance(true); 5039 if (ED > 0 && TypoLen / ED < 3) 5047 ED = BestTC.getEditDistance(); 5049 if (TypoLen >= 3 && ED > [all...] |
H A D | SemaLambda.cpp | 608 if (EnumDecl *ED = findEnumForBlockReturn(CO->getTrueExpr())) 609 if (ED == findEnumForBlockReturn(CO->getFalseExpr())) 610 return ED; 650 EnumDecl *ED = findEnumForBlockReturn(*i); local 651 if (!ED) return nullptr; 655 if (findEnumForBlockReturn(*i) != ED) 660 if (!ED->hasNameForLinkage()) return nullptr; 662 return ED; 742 const EnumDecl *ED = findCommonEnumForBlockReturns(CSI.Returns); local 743 if (ED) { [all...] |
H A D | SemaDeclCXX.cpp | 11824 if (auto *ED = R.getAsSingle<EnumConstantDecl>()) { 11825 if (cast<EnumDecl>(ED->getDeclContext())->isScoped()) { 15428 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); 15431 ProcessDeclAttributeList(S, ED, AttrList); 15433 CurContext->addDecl(ED); 15434 return ED;
|
H A D | SemaDeclAttr.cpp | 3857 if (const auto *ED = dyn_cast<EnumDecl>(D)) 3858 UnderlyingTy = ED->getIntegerType(); 4036 else if (const auto *ED = dyn_cast<EnumDecl>(D)) { 4039 OldTy = ED->getIntegerType(); 4123 else if (auto *ED = dyn_cast<EnumDecl>(D)) 4124 ED->setIntegerType(NewTy);
|
H A D | SemaDecl.cpp | 2310 auto *ED = cast<EnumConstantDecl>(D); local 2311 assert(EnumScope->isDeclScope(ED)); 2312 EnumScope->RemoveDecl(ED); 2313 IdResolver.RemoveDecl(ED); 2314 ED->getLexicalDeclContext()->removeDecl(ED); 13744 if (auto *ED = dyn_cast<EnumDecl>(NonParmDecl)) { 13745 for (auto *EI : ED->enumerators()) 14973 EnumDecl *ED = cast<EnumDecl>(New); 14975 ED 15592 EnumDecl *ED = cast<EnumDecl>(New); local 17469 IsValueInFlagEnum(const EnumDecl *ED, const llvm::APInt &Val, bool AllowMask) const argument [all...] |
H A D | SemaChecking.cpp | 5768 const EnumDecl *ED = Type->castAs<EnumType>()->getDecl(); 5769 return !(ED && 5770 Context.typesAreCompatible(ED->getPromotionType(), Type)); 10840 const EnumConstantDecl *ED = nullptr; local 10842 ED = dyn_cast<EnumConstantDecl>(DR->getDecl()); 10847 if (ED) { 10848 OS << '\'' << *ED << "' (" << Value << ")"; 11061 EnumDecl *ED = EnumTy->getDecl(); local 11067 bool SignedEnum = ED->getNumNegativeBits() > 0; 11078 ED 11083 S.Diag(InitLoc, DiagID) << Bitfield << ED; local 11102 << Bitfield << ED; local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | TargetInfo.cpp | 9148 if (const EnumDecl *ED = ET->getDecl()->getDefinition()) { 9150 for (auto I = ED->enumerator_begin(), E = ED->enumerator_end(); I != E;
|
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
H A D | llvm-pdbutil.cpp | 1133 EnumDumper ED(Printer); 1136 ED.start(*E); 1167 ExternalSymbolDumper ED(Printer); 1170 ED.dump(*PS);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonConstExtenders.cpp | 365 ExtValue(const ExtDesc &ED) : ExtValue(ED.getOp()) {} argument 394 OffsetRange getOffsetRange(const ExtDesc &ED) const; 405 bool replaceInstrExact(const ExtDesc &ED, Register ExtR); 406 bool replaceInstrExpr(const ExtDesc &ED, const ExtenderInit &ExtI, 425 friend raw_ostream &operator<< (raw_ostream &OS, const ExtDesc &ED); 492 raw_ostream &operator<< (raw_ostream &OS, const HCE::ExtDesc &ED) { argument 493 assert(ED.OpNum != -1u); 494 const MachineBasicBlock &MBB = *ED.getOp().getParent()->getParent(); 498 if (ED 1143 ExtDesc ED; local 1274 const ExtDesc &ED = Extenders[I]; local 1278 LLVM_DEBUG(dbgs() << " =" << I << ". " << EV << " " << ED << '\\n'); local 1294 const ExtDesc &ED = Extenders[I]; local 1298 LLVM_DEBUG(dbgs() << " " << I << ". " << EV << " " << ED << '\\n'); local 1494 const ExtDesc &ED = Extenders[Refs[i]]; local 1584 replaceInstrExact(const ExtDesc &ED, Register ExtR) argument 1701 replaceInstrExpr(const ExtDesc &ED, const ExtenderInit &ExtI, Register ExtR, int32_t &Diff) argument 1832 const ExtDesc &ED = Extenders[Idx]; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RegisterCoalescer.cpp | 3198 SlotIndex ED, LE; local 3204 ED = ED.isValid() ? std::min(ED, I->start) : I->start; 3210 if (ED.isValid()) 3211 NewEnd = std::min(NewEnd, ED);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngine.cpp | 2488 if (const auto *ED = dyn_cast<EnumConstantDecl>(D)) { 2490 SVal V = svalBuilder.makeIntVal(ED->getInitVal());
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | EnumCastOutOfRangeChecker.cpp | 70 EnumValueVector getDeclValuesForEnum(const EnumDecl *ED) { argument 72 std::distance(ED->enumerator_begin(), ED->enumerator_end())); 73 llvm::transform(ED->enumerators(), DeclValues.begin(), 128 const EnumDecl *ED = T->castAs<EnumType>()->getDecl(); local 130 EnumValueVector DeclValues = getDeclValuesForEnum(ED);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderDecl.cpp | 329 void VisitEnumDecl(EnumDecl *ED); 732 void ASTDeclReader::VisitEnumDecl(EnumDecl *ED) { argument 733 VisitTagDecl(ED); 735 ED->setIntegerTypeSourceInfo(TI); 737 ED->setIntegerType(Record.readType()); 738 ED->setPromotionType(Record.readType()); 739 ED->setNumPositiveBits(Record.readInt()); 740 ED->setNumNegativeBits(Record.readInt()); 741 ED->setScoped(Record.readInt()); 742 ED [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPMacroExpansion.cpp | 96 MacroDirective *ED, 119 ED->setPrevious(OldMD); 95 setLoadedMacroDirective(IdentifierInfo *II, MacroDirective *ED, MacroDirective *MD) argument
|
H A D | PPLexerChange.cpp | 355 const unsigned ED = ControllingMacroName.edit_distance( 357 if (ED <= MaxHalfLength) {
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/ |
H A D | USRGeneration.cpp | 557 if (auto *ED = dyn_cast<EnumDecl>(D)) { 559 auto enum_range = ED->enumerators();
|
H A D | IndexingContext.cpp | 162 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { 163 if (ED->getInstantiatedFromMemberEnum()) 164 TKind = ED->getTemplateSpecializationKind(); 216 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { 217 return ED->getInstantiatedFromMemberEnum(); 230 if (const auto *ED = dyn_cast<EnumDecl>(ECD->getDeclContext())) { 231 if (const EnumDecl *Pattern = ED->getInstantiatedFromMemberEnum()) {
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/ |
H A D | VerifyDiagnosticConsumer.cpp | 401 static bool ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM, argument 456 D.DL = ED ? &ED->Errors : nullptr; 458 D.DL = ED ? &ED->Warnings : nullptr; 460 D.DL = ED ? &ED->Remarks : nullptr; 462 D.DL = ED ? &ED->Notes : nullptr; 765 ParseDirective(C, &ED, S 968 CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, const TextDiagnosticBuffer &Buffer, ExpectedData &ED) argument [all...] |
H A D | CompilerInstance.cpp | 1945 unsigned ED = Name.edit_distance((*J)->Name, local 1948 if (ED <= BestEditDistance) { 1949 if (ED < BestEditDistance) { 1951 BestEditDistance = ED;
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 3618 if (EnumDecl *ED = dyn_cast<EnumDecl>(Tag)) { 3619 if (!ED || !ED->getDeclName().getAsIdentifierInfo()) 3622 TagLocation = ED->getLocation(); 3666 EnumDecl *ED = Type->castAs<EnumType>()->getDecl(); local 3667 if (ED->isCompleteDefinition()) { 3669 Result += ED->getName(); 3670 if (GlobalDefinedTags.count(ED)) { 3677 for (const auto *EC : ED->enumerators()) {
|