Lines Matching refs:Decl

44 void Decl::updateOutOfDate(IdentifierInfo &II) const {  in updateOutOfDate()
48 void *Decl::operator new(std::size_t Size, const ASTContext &Context, in operator new()
66 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, in operator new()
72 Module *Decl::getOwningModuleSlow() const { in getOwningModuleSlow()
77 const char *Decl::getDeclKindName() const { in getDeclKindName()
86 void Decl::setInvalidDecl(bool Invalid) { in setInvalidDecl()
100 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED; in getDeclKindName()
106 bool Decl::StatisticsEnabled = false;
107 void Decl::EnableStatistics() { in EnableStatistics()
111 void Decl::PrintStats() { in PrintStats()
123 totalBytes += (int)(n##DERIVED##s * sizeof(DERIVED##Decl)); \ in PrintStats()
125 << sizeof(DERIVED##Decl) << " each (" \ in PrintStats()
126 << n##DERIVED##s * sizeof(DERIVED##Decl) \ in PrintStats()
135 void Decl::add(Kind k) { in add()
143 bool Decl::isTemplateParameterPack() const { in isTemplateParameterPack()
155 bool Decl::isParameterPack() const { in isParameterPack()
162 FunctionDecl *Decl::getAsFunction() { in getAsFunction()
170 bool Decl::isTemplateDecl() const { in isTemplateDecl()
174 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
214 Decl::~Decl() { } in ~Decl()
216 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
220 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
231 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
236 Decl::MultipleDC *MDC = new (Ctx) Decl::MultipleDC(); in setDeclContextsImpl()
243 bool Decl::isInAnonymousNamespace() const { in isInAnonymousNamespace()
254 bool Decl::isInStdNamespace() const { in isInStdNamespace()
258 TranslationUnitDecl *Decl::getTranslationUnitDecl() { in getTranslationUnitDecl()
273 ASTContext &Decl::getASTContext() const { in getASTContext()
277 ASTMutationListener *Decl::getASTMutationListener() const { in getASTMutationListener()
281 unsigned Decl::getMaxAlignment() const { in getMaxAlignment()
294 bool Decl::isUsed(bool CheckUsedAttr) const { in isUsed()
305 void Decl::markUsed(ASTContext &C) { in markUsed()
315 bool Decl::isReferenced() const { in isReferenced()
431 AvailabilityResult Decl::getAvailability(std::string *Message) const { in getAvailability()
474 bool Decl::canBeWeakImported(bool &IsDefinition) const { in canBeWeakImported()
504 bool Decl::isWeakImported() const { in isWeakImported()
523 unsigned Decl::getIdentifierNamespaceForKind(Kind DeclKind) { in getIdentifierNamespaceForKind()
621 void Decl::setAttrsImpl(const AttrVec &attrs, ASTContext &Ctx) { in setAttrsImpl()
631 void Decl::dropAttrs() { in dropAttrs()
638 const AttrVec &Decl::getAttrs() const { in getAttrs()
643 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
644 Decl::Kind DK = D->getDeclKind(); in castFromDeclContext()
648 case Decl::NAME: \ in castFromDeclContext()
649 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
656 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
662 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
663 Decl::Kind DK = D->getKind(); in castToDeclContext()
667 case Decl::NAME: \ in castToDeclContext()
668 return static_cast<NAME##Decl*>(const_cast<Decl*>(D)); in castToDeclContext()
675 return static_cast<NAME##Decl*>(const_cast<Decl*>(D)); in castToDeclContext()
681 SourceLocation Decl::getBodyRBrace() const { in getBodyRBrace()
697 bool Decl::AccessDeclContextSanity() const { in AccessDeclContextSanity()
727 static Decl::Kind getKind(const Decl *D) { return D->getKind(); } in getKind()
728 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
730 const FunctionType *Decl::getFunctionType(bool BlocksToo) const { in getFunctionType()
750 template <class T> static Decl *getNonClosureContext(T *D) { in getNonClosureContext()
751 if (getKind(D) == Decl::CXXMethod) { in getNonClosureContext()
770 Decl *Decl::getNonClosureContext() { in getNonClosureContext()
774 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
782 bool DeclContext::classof(const Decl *D) { in classof()
785 #define DECL_CONTEXT(NAME) case Decl::NAME: in classof()
792 if (D->getKind() >= Decl::first##NAME && \ in classof()
793 D->getKind() <= Decl::last##NAME) \ in classof()
860 if (cast<Decl>(this)->getFriendObjectKind()) in isDependentContext()
872 if (DeclKind == Decl::Enum) in isTransparentContext()
874 else if (DeclKind == Decl::LinkageSpec) in isTransparentContext()
882 while (DC->getDeclKind() != Decl::TranslationUnit) { in isLinkageSpecContext()
883 if (DC->getDeclKind() == Decl::LinkageSpec) in isLinkageSpecContext()
910 case Decl::TranslationUnit: in getPrimaryContext()
911 case Decl::ExternCContext: in getPrimaryContext()
912 case Decl::LinkageSpec: in getPrimaryContext()
913 case Decl::Block: in getPrimaryContext()
914 case Decl::Captured: in getPrimaryContext()
918 case Decl::Namespace: in getPrimaryContext()
922 case Decl::ObjCMethod: in getPrimaryContext()
925 case Decl::ObjCInterface: in getPrimaryContext()
931 case Decl::ObjCProtocol: in getPrimaryContext()
937 case Decl::ObjCCategory: in getPrimaryContext()
940 case Decl::ObjCImplementation: in getPrimaryContext()
941 case Decl::ObjCCategoryImpl: in getPrimaryContext()
945 if (DeclKind >= Decl::firstTag && DeclKind <= Decl::lastTag) { in getPrimaryContext()
965 assert(DeclKind >= Decl::firstFunction && DeclKind <= Decl::lastFunction && in getPrimaryContext()
975 if (DeclKind != Decl::Namespace) { in collectAllContexts()
988 std::pair<Decl *, Decl *>
989 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls, in BuildDeclChain()
992 Decl *FirstNewDecl = nullptr; in BuildDeclChain()
993 Decl *PrevDecl = nullptr; in BuildDeclChain()
998 Decl *D = Decls[I]; in BuildDeclChain()
1033 SmallVector<Decl*, 64> Decls; in LoadLexicalDeclsFromExternalStorage()
1055 Decl *ExternalFirst, *ExternalLast; in LoadLexicalDeclsFromExternalStorage()
1142 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1147 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1160 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl()
1190 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1216 void DeclContext::addDecl(Decl *D) { in addDecl()
1224 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1299 for (Decl *D : DCtx->noload_decls()) { in buildLookupImpl()
1328 assert(DeclKind != Decl::LinkageSpec && in lookup()
1340 (void)cast<Decl>(this)->getMostRecentDecl(); in lookup()
1390 assert(DeclKind != Decl::LinkageSpec && in noload_lookup()
1447 for (Decl *D = FirstDecl; D; D = D->getNextDeclInContext()) { in localUncachedLookup()
1546 Decl *DCAsDecl = cast<Decl>(this); in makeDeclVisibleInContextWithFlags()