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

References

tools/clang/lib/Serialization/ASTReaderDecl.cpp
  510     Reader.DefinitionSource[FD] = Loc.F->Kind == ModuleKind::MK_MainFile;
  517   Reader.PendingBodies[FD] = GetCurrentCursorOffset();
  536     TD->setTypeForDecl(Reader.GetType(DeferredTypeID).getTypePtrOrNull());
  542           cast<TypedefNameDecl>(Reader.GetDecl(NamedDeclForTagDecl));
  545     ID->TypeForDecl = Reader.GetType(DeferredTypeID).getTypePtrOrNull();
  569     Reader.addPendingDeclContextInfo(D,
  572     D->setDeclContext(Reader.getContext().getTranslationUnitDecl());
  578     DeclContext *MergedSemaDC = Reader.MergedDeclContexts.lookup(SemaDC);
  582                            Reader.getContext());
  591     D->setAttrsImpl(Attrs, Reader.getContext());
  614     } else if (Reader.getContext().getLangOpts().ModulesLocalVisibility) {
  617     } else if (Module *Owner = Reader.getSubmodule(SubmoduleID)) {
  622         Reader.HiddenNamesMap[Owner].push_back(D);
  718     auto *Info = new (Reader.getContext()) TagDecl::ExtInfo();
  755       Reader.getContext().getLangOpts().Modules &&
  756       Reader.getContext().getLangOpts().CPlusPlus) {
  757     EnumDecl *&OldDef = Reader.EnumDefinitions[ED->getCanonicalDecl()];
  769       Reader.MergedDeclContexts.insert(std::make_pair(ED, OldDef));
  771       Reader.mergeDefinitionVisibility(OldDef, ED);
  773         Reader.PendingEnumOdrMergeFailures[OldDef].push_back(ED);
  782     ED->setInstantiationOfMemberEnum(Reader.getContext(), InstED, TSK);
  828     auto *Info = new (Reader.getContext()) DeclaratorDecl::ExtInfo();
  835                        : Reader.getContext().CreateTypeSourceInfo(TSIType));
  850     Reader.PendingFunctionTypes.push_back({FD, DeferredTypeID});
  852     FD->setType(Reader.GetType(DeferredTypeID));
  899     FD->setInstantiationOfMemberFunction(Reader.getContext(), InstFD, TSK);
  928     ASTContext &C = Reader.getContext();
  970         assert(Reader.getContext().getLangOpts().Modules &&
  992     FD->setDependentTemplateSpecialization(Reader.getContext(),
 1006   FD->setParams(Reader.getContext(), Params);
 1014     Reader.PendingBodies[MD] = GetCurrentCursorOffset();
 1029     Reader.getContext().setObjCMethodRedeclaration(MD,
 1051   MD->setParamsAndSelLocs(Reader.getContext(), Params, SelLocs);
 1087   return ObjCTypeParamList::create(Reader.getContext(), lAngleLoc,
 1110                                Reader.getContext());
 1119                                   Reader.getContext());
 1155     Reader.PendingDefinitions.insert(ID);
 1158     Reader.ObjCClassesLoaded.push_back(ID);
 1185                                  ProtoLocs.data(), Reader.getContext());
 1216     Reader.PendingDefinitions.insert(PD);
 1235   Reader.CategoriesDeserialized.insert(CD);
 1249                       Reader.getContext());
 1255         Reader.getContext());
 1336       Reader.getContext().setInstantiatedFromUnnamedFieldDecl(FD, Tmpl);
 1352   FD->Chaining = new (Reader.getContext())NamedDecl*[FD->ChainingSize];
 1404       Reader.getContext().setBlockVarCopyInit(VD, CopyExpr, Record.readInt());
 1408     Reader.DefinitionSource[VD] = Loc.F->Kind == ModuleKind::MK_MainFile;
 1429     Reader.getContext().setInstantiatedFromStaticDataMember(VD, Tmpl, TSK,POI);
 1514   BD->setCaptures(Reader.getContext(), captures, capturesCXXThis);
 1573     auto *Anon = cast<NamespaceDecl>(Reader.GetDecl(AnonNamespace));
 1597     Reader.getContext().setInstantiatedFromUsingDecl(D, Pattern);
 1618     Reader.getContext().setInstantiatedFromUsingShadowDecl(D, Pattern);
 1668     Reader.DefinitionSource[D] = Loc.F->Kind == ModuleKind::MK_MainFile;
 1696     Lambda.Captures = (Capture *)Reader.getContext().Allocate(
 1729     Reader.MergedDeclContexts.insert(std::make_pair(MergeDD.Definition,
 1731     Reader.PendingDefinitions.erase(MergeDD.Definition);
 1733     Reader.mergeDefinitionVisibility(DD.Definition, MergeDD.Definition);
 1734     assert(Reader.Lookups.find(MergeDD.Definition) == Reader.Lookups.end() &&
 1734     assert(Reader.Lookups.find(MergeDD.Definition) == Reader.Lookups.end() &&
 1738   auto PFDI = Reader.PendingFakeDefinitionData.find(&DD);
 1739   if (PFDI != Reader.PendingFakeDefinitionData.end() &&
 1791     Reader.PendingOdrMergeFailures[DD.Definition].push_back(
 1797   ASTContext &C = Reader.getContext();
 1832     Reader.PendingDefinitions.insert(D);
 1839   ASTContext &C = Reader.getContext();
 1913         Reader.getContext().addOverriddenMethod(D, MD->getCanonicalDecl());
 2002   auto *TemplatedDecl = cast_or_null<NamedDecl>(Reader.GetDecl(PatternID));
 2023     CanonD->Common = CanonD->newCommon(Reader.getContext());
 2024     Reader.PendingDefinitions.insert(CanonD);
 2068     Reader.getContext().getInjectedClassNameType(
 2097   ASTContext &C = Reader.getContext();
 2210   ASTContext &C = Reader.getContext();
 2328       D->setDefaultArgument(Reader.getContext(),
 2394   auto *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID));
 2411     Reader.PendingDeclChains.push_back(std::make_pair(DAsT, RedeclOffset));
 2423   if (!Reader.getContext().getLangOpts().Modules)
 2471         Reader.PendingDefinitions.insert(DClass);
 2526       Reader.KeyDecls[ExistingCanon].push_back(Redecl.getFirstID());
 2551   if (!Reader.getContext().getLangOpts().Modules)
 2558   if (!Reader.getContext().getLangOpts().CPlusPlus &&
 2564       Reader.getContext().setPrimaryMergedDecl(static_cast<T *>(D),
 3294     FindExistingResult Result(Reader, D, /*Existing=*/nullptr,
 3302     auto It = Reader.ImportedTypedefNamesForLinkage.find(
 3304     if (It != Reader.ImportedTypedefNamesForLinkage.end())
 3306         return FindExistingResult(Reader, D, It->second, AnonymousDeclNumber,
 3316             Reader, D->getLexicalDeclContext(), AnonymousDeclNumber))
 3318         return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
 3321              !Reader.getContext().getLangOpts().CPlusPlus) {
 3322     IdentifierResolver &IdResolver = Reader.getIdResolver();
 3350           return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
 3353   } else if (DeclContext *MergeDC = getPrimaryContextForMerging(Reader, DC)) {
 3358           return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
 3363     return FindExistingResult(Reader);
 3371   auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext());
 3372   if (MergedDCIt != Reader.MergedDeclContexts.end() &&
 3374     Reader.PendingOdrMergeChecks.push_back(D);
 3376   return FindExistingResult(Reader, D, /*Existing=*/nullptr,
 4343       if (Reader.PendingBodies[FD]) {
 4368                     !Reader.PendingFakeDefinitionData.count(OldDD));
 4378         Reader.PendingFakeDefinitionData.erase(OldDD);
 4398               Reader.getContext(), TemplArgs);
 4419           D->setAttrsImpl(Attrs, Reader.getContext());
 4449         FD->setType(Reader.getContext().getFunctionType(
 4455         Reader.PendingExceptionSpecUpdates.insert(
 4464       Reader.PendingDeducedTypeUpdates.insert(
 4471       D->markUsed(Reader.getContext());
 4475       Reader.getContext().setManglingNumber(cast<NamedDecl>(D),
 4480       Reader.getContext().setStaticLocalNumber(cast<VarDecl>(D),
 4486           Reader.getContext(), ReadSourceRange(),
 4496           Reader.getContext(), AllocatorKind, Allocator, SR,
 4504       Module *Owner = SubmoduleID ? Reader.getSubmodule(SubmoduleID) : nullptr;
 4505       Reader.getContext().mergeDefinitionIntoModule(Exported, Owner);
 4506       Reader.PendingMergedDefinitionsToDeduplicate.insert(Exported);
 4516           Reader.getContext(), MapType, DevType, ReadSourceRange(),