Lines Matching refs:decl
1 //===--- ASTReaderDecl.cpp - Decl Deserialization ---------------*- C++ -*-===//
11 // entrypoint for loading a decl.
68 Decl *ReadDecl(const RecordData &R, unsigned &I) {
203 static void attachPreviousDecl(Decl *D, Decl *previous);
204 static void attachLatestDecl(Decl *D, Decl *latest);
206 void Visit(Decl *D);
208 void UpdateDecl(Decl *D, ModuleFile &ModuleFile,
216 void VisitDecl(Decl *D);
300 void ASTDeclReader::Visit(Decl *D) {
336 void ASTDeclReader::VisitDecl(Decl *D) {
349 // Decl::getASTContext() internally which is unsafe during derialization.
357 // Avoid calling setAttrs() directly because it uses Decl::getASTContext()
404 // Delay type reading until after we have fully initialized the decl.
585 // We avoid getASTContext because a decl in the parent hierarchy may
648 MD->setObjCDeclQualifier((Decl::ObjCDeclQualifier)Record[Idx++]);
899 if (VD->getKind() == Decl::Var)
968 VarDecl *decl = ReadDeclAs<VarDecl>(Record, Idx);
974 captures.push_back(BlockDecl::Capture(decl, byRef, nested, copyExpr));
1360 if (Decl *InstD = ReadDecl(Record, Idx)) {
1632 inline void ASTReader::LoadedDecl(unsigned Index, Decl *D) {
1633 assert(!DeclsLoaded[Index] && "Decl loaded twice?");
1644 static bool isConsumerInterestedIn(Decl *D) {
1799 void ASTDeclReader::attachPreviousDecl(Decl *D, Decl *previous) {
1821 void ASTDeclReader::attachLatestDecl(Decl *D, Decl *Latest) {
1857 ASTReader::combineStoredMergedDecls(Decl *Canon, GlobalDeclID CanonID) {
1879 void ASTReader::loadAndAttachPreviousDecl(Decl *D, serialization::DeclID ID) {
1880 Decl *previous = GetDecl(ID);
1885 Decl *ASTReader::ReadDeclRecord(DeclID ID) {
1905 Decl *D = 0;
2079 // calls to Decl::getASTContext() by Decl's methods will find the
2098 // Now add the pending visible updates for this decl context, if it has any.
2135 void ASTReader::loadDeclUpdateRecords(serialization::DeclID ID, Decl *D) {
2186 llvm::SmallPtrSet<Decl *, 16> &Deserialized;
2188 llvm::SmallVector<Decl *, 4> Chain;
2192 llvm::SmallPtrSet<Decl *, 16> &Deserialized,
2207 void addToChain(Decl *D) {
2260 ArrayRef<Decl *> getChain() const {
2267 Decl *D = GetDecl(ID);
2268 Decl *CanonDecl = D->getCanonicalDecl();
2286 ArrayRef<Decl *> Chain = Visitor.getChain();
2291 Decl *MostRecent = CanonDecl->getMostRecentDecl();
2445 void ASTDeclReader::UpdateDecl(Decl *D, ModuleFile &ModuleFile,