• Home
  • Raw
  • Download

Lines Matching refs:Decl

44 void Decl::updateOutOfDate(IdentifierInfo &II) const {  in updateOutOfDate()
49 static_assert(llvm::AlignOf<Decl>::Alignment >= \
50 llvm::AlignOf<DERIVED##Decl>::Alignment, \
55 void *Decl::operator new(std::size_t Size, const ASTContext &Context, in operator new()
59 static_assert(sizeof(unsigned) * 2 >= llvm::AlignOf<Decl>::Alignment, in operator new()
75 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, in operator new()
85 llvm::AlignOf<Decl>::Alignment); in operator new()
94 Module *Decl::getOwningModuleSlow() const { in getOwningModuleSlow()
99 bool Decl::hasLocalOwningModuleStorage() const { in hasLocalOwningModuleStorage()
103 const char *Decl::getDeclKindName() const { in getDeclKindName()
112 void Decl::setInvalidDecl(bool Invalid) { in setInvalidDecl()
126 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED; in getDeclKindName()
132 bool Decl::StatisticsEnabled = false;
133 void Decl::EnableStatistics() { in EnableStatistics()
137 void Decl::PrintStats() { in PrintStats()
149 totalBytes += (int)(n##DERIVED##s * sizeof(DERIVED##Decl)); \ in PrintStats()
151 << sizeof(DERIVED##Decl) << " each (" \ in PrintStats()
152 << n##DERIVED##s * sizeof(DERIVED##Decl) \ in PrintStats()
161 void Decl::add(Kind k) { in add()
169 bool Decl::isTemplateParameterPack() const { in isTemplateParameterPack()
181 bool Decl::isParameterPack() const { in isParameterPack()
188 FunctionDecl *Decl::getAsFunction() { in getAsFunction()
196 bool Decl::isTemplateDecl() const { in isTemplateDecl()
200 TemplateDecl *Decl::getDescribedTemplate() const { in getDescribedTemplate()
211 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
251 Decl::~Decl() { } in ~Decl()
253 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
257 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
266 Hidden = cast<Decl>(DC)->Hidden; in setLexicalDeclContext()
269 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
274 Decl::MultipleDC *MDC = new (Ctx) Decl::MultipleDC(); in setDeclContextsImpl()
281 bool Decl::isLexicallyWithinFunctionOrMethod() const { in isLexicallyWithinFunctionOrMethod()
293 bool Decl::isInAnonymousNamespace() const { in isInAnonymousNamespace()
304 bool Decl::isInStdNamespace() const { in isInStdNamespace()
308 TranslationUnitDecl *Decl::getTranslationUnitDecl() { in getTranslationUnitDecl()
323 ASTContext &Decl::getASTContext() const { in getASTContext()
327 ASTMutationListener *Decl::getASTMutationListener() const { in getASTMutationListener()
331 unsigned Decl::getMaxAlignment() const { in getMaxAlignment()
344 bool Decl::isUsed(bool CheckUsedAttr) const { in isUsed()
345 const Decl *CanonD = getCanonicalDecl(); in isUsed()
359 void Decl::markUsed(ASTContext &C) { in markUsed()
369 bool Decl::isReferenced() const { in isReferenced()
381 bool Decl::hasDefiningAttr() const { in hasDefiningAttr()
385 const Attr *Decl::getDefiningAttr() const { in getDefiningAttr()
497 AvailabilityResult Decl::getAvailability(std::string *Message) const { in getAvailability()
543 bool Decl::canBeWeakImported(bool &IsDefinition) const { in canBeWeakImported()
573 bool Decl::isWeakImported() const { in isWeakImported()
592 unsigned Decl::getIdentifierNamespaceForKind(Kind DeclKind) { in getIdentifierNamespaceForKind()
704 void Decl::setAttrsImpl(const AttrVec &attrs, ASTContext &Ctx) { in setAttrsImpl()
714 void Decl::dropAttrs() { in dropAttrs()
721 const AttrVec &Decl::getAttrs() const { in getAttrs()
726 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
727 Decl::Kind DK = D->getDeclKind(); in castFromDeclContext()
731 case Decl::NAME: \ in castFromDeclContext()
732 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
739 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
745 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
746 Decl::Kind DK = D->getKind(); in castToDeclContext()
750 case Decl::NAME: \ in castToDeclContext()
751 return static_cast<NAME##Decl*>(const_cast<Decl*>(D)); in castToDeclContext()
758 return static_cast<NAME##Decl*>(const_cast<Decl*>(D)); in castToDeclContext()
764 SourceLocation Decl::getBodyRBrace() const { in getBodyRBrace()
780 bool Decl::AccessDeclContextSanity() const { in AccessDeclContextSanity()
810 static Decl::Kind getKind(const Decl *D) { return D->getKind(); } in getKind()
811 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
813 const FunctionType *Decl::getFunctionType(bool BlocksToo) const { in getFunctionType()
833 template <class T> static Decl *getNonClosureContext(T *D) { in getNonClosureContext()
834 if (getKind(D) == Decl::CXXMethod) { in getNonClosureContext()
853 Decl *Decl::getNonClosureContext() { in getNonClosureContext()
857 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
865 bool DeclContext::classof(const Decl *D) { in classof()
868 #define DECL_CONTEXT(NAME) case Decl::NAME: in classof()
875 if (D->getKind() >= Decl::first##NAME && \ in classof()
876 D->getKind() <= Decl::last##NAME) \ in classof()
943 if (cast<Decl>(this)->getFriendObjectKind()) in isDependentContext()
955 if (DeclKind == Decl::Enum) in isTransparentContext()
957 else if (DeclKind == Decl::LinkageSpec) in isTransparentContext()
965 while (DC->getDeclKind() != Decl::TranslationUnit) { in isLinkageSpecContext()
966 if (DC->getDeclKind() == Decl::LinkageSpec) in isLinkageSpecContext()
993 case Decl::TranslationUnit: in getPrimaryContext()
994 case Decl::ExternCContext: in getPrimaryContext()
995 case Decl::LinkageSpec: in getPrimaryContext()
996 case Decl::Block: in getPrimaryContext()
997 case Decl::Captured: in getPrimaryContext()
998 case Decl::OMPDeclareReduction: in getPrimaryContext()
1002 case Decl::Namespace: in getPrimaryContext()
1006 case Decl::ObjCMethod: in getPrimaryContext()
1009 case Decl::ObjCInterface: in getPrimaryContext()
1015 case Decl::ObjCProtocol: in getPrimaryContext()
1021 case Decl::ObjCCategory: in getPrimaryContext()
1024 case Decl::ObjCImplementation: in getPrimaryContext()
1025 case Decl::ObjCCategoryImpl: in getPrimaryContext()
1029 if (DeclKind >= Decl::firstTag && DeclKind <= Decl::lastTag) { in getPrimaryContext()
1049 assert(DeclKind >= Decl::firstFunction && DeclKind <= Decl::lastFunction && in getPrimaryContext()
1059 if (DeclKind != Decl::Namespace) { in collectAllContexts()
1072 std::pair<Decl *, Decl *>
1073 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls, in BuildDeclChain()
1076 Decl *FirstNewDecl = nullptr; in BuildDeclChain()
1077 Decl *PrevDecl = nullptr; in BuildDeclChain()
1082 Decl *D = Decls[I]; in BuildDeclChain()
1117 SmallVector<Decl*, 64> Decls; in LoadLexicalDeclsFromExternalStorage()
1132 Decl *ExternalFirst, *ExternalLast; in LoadLexicalDeclsFromExternalStorage()
1219 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1224 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1237 for (Decl *I = FirstDecl; true; I = I->NextInContextAndBits.getPointer()) { in removeDecl()
1270 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1296 void DeclContext::addDecl(Decl *D) { in addDecl()
1304 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1379 for (Decl *D : DCtx->noload_decls()) { in buildLookupImpl()
1408 assert(DeclKind != Decl::LinkageSpec && in lookup()
1420 (void)cast<Decl>(this)->getMostRecentDecl(); in lookup()
1470 assert(DeclKind != Decl::LinkageSpec && in noload_lookup()
1527 for (Decl *D = FirstDecl; D; D = D->getNextDeclInContext()) { in localUncachedLookup()
1629 Decl *DCAsDecl = cast<Decl>(this); in makeDeclVisibleInContextWithFlags()