/external/clang/include/clang/AST/ |
D | DeclBase.h | 26 class DeclContext; variable 54 class PointerLikeTypeTraits<clang::DeclContext*> { 55 typedef clang::DeclContext* PT; 207 friend class DeclContext; 210 DeclContext *SemanticDC; 211 DeclContext *LexicalDC; 228 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx; 230 inline bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC() 235 inline DeclContext *getSemanticDC() const { in getSemanticDC() 236 return DeclCtx.get<DeclContext*>(); in getSemanticDC() [all …]
|
D | DeclLookups.h | 25 class DeclContext::all_lookups_iterator { 68 DeclContext::all_lookups_iterator DeclContext::lookups_begin() const { in lookups_begin() 69 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups_begin() 77 DeclContext::all_lookups_iterator DeclContext::lookups_end() const { in lookups_end() 78 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups_end()
|
D | Decl.h | 70 class TranslationUnitDecl : public Decl, public DeclContext { 80 DeclContext(TranslationUnit), in TranslationUnitDecl() 93 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext() 94 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext() 96 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() 97 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 114 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N) in NamedDecl() 200 const DeclContext *DC = getDeclContext(); in isCXXClassMember() 362 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() 367 static LabelDecl *Create(ASTContext &C, DeclContext *DC, [all …]
|
D | DependentDiagnostic.h | 39 DeclContext *Parent, in Create() 102 DeclContext *Parent, 106 friend class DeclContext::ddiag_iterator; 126 class DeclContext::ddiag_iterator { 176 inline DeclContext::ddiag_iterator DeclContext::ddiag_begin() const { in ddiag_begin() 186 inline DeclContext::ddiag_iterator DeclContext::ddiag_end() const { in ddiag_end()
|
D | DeclContextInternals.h | 102 DeclContext::lookup_result getLookupResult() { in getLookupResult() 104 return DeclContext::lookup_result(DeclContext::lookup_iterator(0), in getLookupResult() 105 DeclContext::lookup_iterator(0)); in getLookupResult() 113 return DeclContext::lookup_result((NamedDecl**)Ptr, (NamedDecl**)Ptr+1); in getLookupResult() 120 return DeclContext::lookup_result(&Vector[0], &Vector[0]+Vector.size()); in getLookupResult() 206 friend class DeclContext; variable 216 friend class DeclContext; // iterates over diagnostics variable
|
D | DeclObjC.h | 113 class ObjCMethodDecl : public NamedDecl, public DeclContext { 227 DeclContext *contextDecl, 236 DeclContext(ObjCMethod), Family(InvalidObjCMethodFamily), in NamedDecl() 261 DeclContext *contextDecl, 443 static DeclContext *castToDeclContext(const ObjCMethodDecl *D) { in castToDeclContext() 444 return static_cast<DeclContext *>(const_cast<ObjCMethodDecl*>(D)); in castToDeclContext() 446 static ObjCMethodDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() 447 return static_cast<ObjCMethodDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 458 class ObjCContainerDecl : public NamedDecl, public DeclContext { 468 ObjCContainerDecl(Kind DK, DeclContext *DC, in ObjCContainerDecl() [all …]
|
D | DeclCXX.h | 117 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, 140 DeclContext *DC, SourceLocation ASLoc, 633 friend class DeclContext; 652 CXXRecordDecl(Kind K, TagKind TK, DeclContext *DC, 703 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC, 707 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC, 2295 class LinkageSpecDecl : public Decl, public DeclContext { 2315 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, 2318 : Decl(LinkageSpec, DC, LangLoc), DeclContext(LinkageSpec), 2322 static LinkageSpecDecl *Create(ASTContext &C, DeclContext *DC, [all …]
|
D | ASTImporter.h | 27 class DeclContext; variable 126 DeclContext *ImportContext(DeclContext *FromDC); 233 DeclContext *DC,
|
D | DeclTemplate.h | 219 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() 225 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() 230 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() 595 RedeclarableTemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in RedeclarableTemplateDecl() 738 FunctionTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, 829 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC, 909 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc, 919 static TemplateTypeParmDecl *Create(const ASTContext &C, DeclContext *DC, 1011 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc, 1021 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc, [all …]
|
D | ExternalASTSource.h | 127 FindExternalVisibleDeclsByName(const DeclContext *DC, DeclarationName Name); 133 virtual void completeVisibleDeclsMap(const DeclContext *DC); 145 virtual ExternalLoadResult FindExternalLexicalDecls(const DeclContext *DC, 153 ExternalLoadResult FindExternalLexicalDecls(const DeclContext *DC, in FindExternalLexicalDecls() 159 ExternalLoadResult FindExternalLexicalDeclsBy(const DeclContext *DC, in FindExternalLexicalDeclsBy() 272 SetExternalVisibleDeclsForName(const DeclContext *DC, 277 SetNoExternalVisibleDeclsForName(const DeclContext *DC,
|
D | ASTMutationListener.h | 18 class DeclContext; variable 41 virtual void AddedVisibleDecl(const DeclContext *DC, const Decl *D) {} in AddedVisibleDecl()
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 80 const char *DeclContext::getDeclKindName() const { in getDeclKindName() 156 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod() 157 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod() 195 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext() 199 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext() 210 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl() 223 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace() 237 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl() 599 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext() 605 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext() [all …]
|
D | ExternalASTSource.cpp | 47 ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, in FindExternalVisibleDeclsByName() 49 return DeclContext::lookup_result(); in FindExternalVisibleDeclsByName() 52 void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) { in completeVisibleDeclsMap() 56 ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC, in FindExternalLexicalDecls()
|
D | DeclTemplate.cpp | 116 DeclContext *Owner) { in AdoptTemplateParameterList() 227 DeclContext *DC, in Create() 232 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create() 289 DeclContext *DC, in Create() 295 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create() 456 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create() 504 NonTypeTemplateParmDecl::NonTypeTemplateParmDecl(DeclContext *DC, in NonTypeTemplateParmDecl() 529 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create() 539 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create() 597 DeclContext *DC, SourceLocation L, unsigned D, unsigned P, in TemplateTemplateParmDecl() [all …]
|
D | Mangle.cpp | 50 static void checkMangleDC(const DeclContext *DC, const BlockDecl *BD) { in checkMangleDC() 52 const DeclContext *ExpectedDC = BD->getDeclContext(); in checkMangleDC() 107 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() 152 const DeclContext *DC = BD->getDeclContext(); in mangleBlock()
|
D | DeclObjC.cpp | 84 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl() 87 DeclContext::lookup_const_iterator I, E; in findPropertyDecl() 102 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(this), PropertyId)) in FindPropertyDeclaration() 169 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(this), PropertyId)) in FindPropertyVisibleInPrimaryClass() 414 DeclContext *contextDecl, in Create() 715 DeclContext *DC, in Create() 735 ObjCInterfaceDecl(DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, in ObjCInterfaceDecl() 993 *ObjCAtDefsFieldDecl::Create(ASTContext &C, DeclContext *DC, in Create() 1012 ObjCProtocolDecl::ObjCProtocolDecl(DeclContext *DC, IdentifierInfo *Id, in ObjCProtocolDecl() 1023 ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, DeclContext *DC, in Create() [all …]
|
/external/clang/include/clang/Basic/ |
D | DeclNodes.td | 11 class DeclContext { } 13 def TranslationUnit : Decl, DeclContext; 15 def Namespace : DDecl<Named>, DeclContext; 24 def Tag : DDecl<Type, 1>, DeclContext; 37 def Function : DDecl<Declarator>, DeclContext; 57 def ObjCMethod : DDecl<Named>, DeclContext; 58 def ObjCContainer : DDecl<Named, 1>, DeclContext; 67 def LinkageSpec : Decl, DeclContext; 74 def Block : Decl, DeclContext;
|
/external/clang/lib/Sema/ |
D | SemaLookup.cpp | 56 const DeclContext *Nominated; 57 const DeclContext *CommonAncestor; 60 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry() 61 const DeclContext *CommonAncestor) in UnqualUsingEntry() 65 const DeclContext *getCommonAncestor() const { in getCommonAncestor() 69 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace() 79 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()() 83 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()() 95 llvm::SmallPtrSet<DeclContext*, 8> visited; 105 DeclContext *InnermostFileDC in visitScopeChain() [all …]
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 178 void PrintDeclContext(const DeclContext* DC, unsigned Indentation); 182 void DeclContextPrinter::PrintDeclContext(const DeclContext* DC, in PrintDeclContext() 290 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext() 291 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 320 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext() 321 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 336 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext() 337 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 352 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext() 353 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() [all …]
|
/external/clang/tools/libclang/ |
D | IndexingContext.h | 59 const DeclContext *DC; 298 typedef llvm::DenseMap<const DeclContext *, CXIdxClientContainer> 390 const DeclContext *DC = 0); 393 const DeclContext *DC = 0); 397 const DeclContext *DC = 0); 399 void indexDeclContext(const DeclContext *DC); 402 const DeclContext *DC = 0); 430 const DeclContext *LexicalDC); 442 const DeclContext *DC, 448 const DeclContext *DC, [all …]
|
D | IndexTypeSourceInfo.cpp | 22 const DeclContext *ParentDC; 26 const DeclContext *DC) in TypeIndexer() 99 const DeclContext *DC) { in indexTypeSourceInfo() 108 const DeclContext *DC) { in indexTypeLoc() 119 const DeclContext *DC) { in indexNestedNameSpecifierLoc()
|
D | IndexBody.cpp | 22 const DeclContext *ParentDC; 27 const NamedDecl *Parent, const DeclContext *DC) in BodyIndexer() 153 const DeclContext *DC) { in indexBody()
|
/external/clang/lib/Analysis/ |
D | UninitializedValues.cpp | 31 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { in isTrackedVar() 52 void computeMap(const DeclContext &dc); 62 void DeclToIndex::computeMap(const DeclContext &dc) { in computeMap() 64 DeclContext::specific_decl_iterator<VarDecl> I(dc.decls_begin()), in computeMap() 113 void computeSetOfDeclarations(const DeclContext &dc); 147 void CFGBlockValues::computeSetOfDeclarations(const DeclContext &dc) { in computeSetOfDeclarations() 279 static FindVarResult findVar(const Expr *E, const DeclContext *DC) { in findVar() 301 const DeclContext *DC; 311 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs() 435 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar() [all …]
|
/external/clang/include/clang/Frontend/ |
D | ChainedIncludesSource.h | 48 FindExternalVisibleDeclsByName(const DeclContext *DC, DeclarationName Name); 49 virtual ExternalLoadResult FindExternalLexicalDecls(const DeclContext *DC,
|
/external/clang/include/clang/Analysis/Analyses/ |
D | UninitializedValues.h | 24 class DeclContext; variable 101 void runUninitializedVariablesAnalysis(const DeclContext &dc, const CFG &cfg,
|