Lines Matching refs:decl
2639 // If we've already loaded the decl, perform the updates when we finish
2641 if (Decl *D = GetExistingDecl(ID))
3032 // If we've already loaded the decl, perform the updates when we finish
3034 if (Decl *D = GetExistingDecl(ID))
3349 for (Decl *D : Names) {
4047 assert(CUDASpecialDeclRefs.size() == 1 && "More decl refs than expected!");
5418 TypedefNameDecl *Decl = ReadDeclAs<TypedefNameDecl>(*Loc.F, Record, Idx);
5422 return Context.getTypedefType(Decl, Canonical);
6222 Decl *ASTReader::GetExternalDecl(uint32_t ID) {
6227 static void completeRedeclChainForTemplateSpecialization(Decl *D) {
6232 void ASTReader::CompleteRedeclChain(const Decl *D) {
6238 PendingIncompleteDeclChains.push_back(const_cast<Decl*>(D));
6265 for (auto *DCDecl : cast<Decl>(D->getLexicalDeclContext())->redecls()) {
6267 SmallVector<Decl*, 8> Decls;
6269 DC, [&](Decl::Kind K) { return K == D->getKind(); }, Decls);
6334 assert(I != F.DeclRemap.end() && "Invalid index into decl index remap");
6349 ModuleFile *ASTReader::getOwningModuleFile(const Decl *D) {
6368 if (Decl *D = DeclsLoaded[Index])
6376 static Decl *getPredefinedDecl(ASTContext &Context, PredefinedDeclIDs ID) {
6432 Decl *ASTReader::GetExistingDecl(DeclID ID) {
6434 Decl *D = getPredefinedDecl(Context, (PredefinedDeclIDs)ID);
6456 Decl *ASTReader::GetDecl(DeclID ID) {
6511 // Switch case IDs are per Decl.
6521 const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
6522 SmallVectorImpl<Decl *> &Decls) {
6528 auto K = (Decl::Kind)+LexicalDecls[I];
6543 if (Decl *D = GetLocalDecl(*M, ID)) {
6544 assert(D->getKind() == K && "wrong kind for lexical decl");
6598 SmallVectorImpl<Decl *> &Decls) {
6620 // If we are pointing at a top-level decl inside an objc container, we need
6698 /// implementation before passing the deserialized implementation decl.
6727 Decl *D = InterestingDecls.front();
6734 void ASTReader::PassInterestingDeclToConsumer(Decl *D) {
6759 (Decl *)nullptr);
7429 SmallVectorImpl<Decl *> *Decls) {
8203 CXXDestructorDecl *Decl = ReadDeclAs<CXXDestructorDecl>(F, Record, Idx);
8204 return CXXTemporary::Create(Context, Decl);
8290 std::string ASTReader::getOwningModuleNameForDiagnostic(const Decl *D) {
8295 // Otherwise, use the name of the top-level module the decl is within.
8310 typedef llvm::DenseMap<IdentifierInfo *, SmallVector<Decl *, 2> >
8323 // For each decl chain that we wanted to complete while deserializing, mark
8395 for (Decl *D : PendingDefinitions) {
8399 const_cast<TagType*>(TagT)->decl = TD;
8418 ->Decl = ID;
8507 const Decl *DCanon = D->getCanonicalDecl();
8551 getOwningModuleNameForDiagnostic(cast<Decl>(CanonDef));
8557 Diag(cast<Decl>(CanonDef)->getLocation(),
8678 // Adding the decl to IdResolver may have failed because it was already in