Home | History | Annotate | Download | only in Serialization

Lines Matching refs:decl

1 //===--- ASTReaderDecl.cpp - Decl Deserialization ---------------*- C++ -*-===//
11 // entrypoint for loading a decl.
67 Decl *ReadDecl(const RecordData &R, unsigned &I) {
116 Decl::Kind DeclKind;
122 Decl::Kind DeclKind)
198 static void attachPreviousDecl(Decl *D, Decl *previous);
199 static void attachLatestDecl(Decl *D, Decl *latest);
204 void Visit(Decl *D);
206 void UpdateDecl(Decl *D, ModuleFile &ModuleFile,
214 void VisitDecl(Decl *D);
299 void ASTDeclReader::Visit(Decl *D) {
333 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.
589 // We avoid getASTContext because a decl in the parent hierarchy may
657 MD->setObjCDeclQualifier((Decl::ObjCDeclQualifier)Record[Idx++]);
910 if (VD->getKind() == Decl::Var)
979 VarDecl *decl = ReadDeclAs<VarDecl>(Record, Idx);
985 captures.push_back(BlockDecl::Capture(decl, byRef, nested, copyExpr));
1371 if (Decl *InstD = ReadDecl(Record, Idx)) {
1658 inline void ASTReader::LoadedDecl(unsigned Index, Decl *D) {
1659 assert(!DeclsLoaded[Index] && "Decl loaded twice?");
1670 static bool isConsumerInterestedIn(Decl *D, bool HasBody) {
1858 void ASTDeclReader::attachPreviousDecl(Decl *D, Decl *previous) {
1880 void ASTDeclReader::attachLatestDecl(Decl *D, Decl *Latest) {
1916 ASTReader::combineStoredMergedDecls(Decl *Canon, GlobalDeclID CanonID) {
1938 void ASTReader::loadAndAttachPreviousDecl(Decl *D, serialization::DeclID ID) {
1939 Decl *previous = GetDecl(ID);
1944 Decl *ASTReader::ReadDeclRecord(DeclID ID) {
1964 Decl *D = 0;
2145 Decl::getASTContext() by Decl's methods will find the
2170 // Now add the pending visible updates for this decl context, if it has any.
2211 void ASTReader::loadDeclUpdateRecords(serialization::DeclID ID, Decl *D) {
2262 llvm::SmallPtrSet<Decl *, 16> &Deserialized;
2264 SmallVector<Decl *, 4> Chain;
2268 llvm::SmallPtrSet<Decl *, 16> &Deserialized,
2283 void addToChain(Decl *D) {
2334 ArrayRef<Decl *> getChain() const {
2341 Decl *D = GetDecl(ID);
2342 Decl *CanonDecl = D->getCanonicalDecl();
2360 ArrayRef<Decl *> Chain = Visitor.getChain();
2365 Decl *MostRecent = CanonDecl->getMostRecentDecl();
2520 void ASTDeclReader::UpdateDecl(Decl *D, ModuleFile &ModuleFile,