/external/clang/lib/Index/ |
D | IndexDecl.cpp | 198 D->getLexicalDeclContext(), in VisitTagDecl() 301 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl() 304 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl() 356 D->getLexicalDeclContext()); in VisitUsingDecl() 359 D->getLexicalDeclContext(), SymbolRoleSet()); in VisitUsingDecl() 368 D->getLexicalDeclContext()); in VisitUsingDirectiveDecl() 371 D->getLexicalDeclContext(), in VisitUsingDirectiveDecl()
|
D | IndexTypeSourceInfo.cpp | 148 DC = Parent->getLexicalDeclContext(); in indexTypeLoc() 162 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
|
D | IndexBody.cpp | 357 DC = Parent->getLexicalDeclContext(); in indexBody()
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 304 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 333 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 349 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 365 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
|
D | ASTUnit.cpp | 2591 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
|
/external/clang/lib/Serialization/ |
D | ASTCommon.cpp | 331 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber() 342 if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
|
D | ASTWriterDecl.cpp | 284 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl() 285 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl() 372 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl() 435 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl() 464 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl() 721 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl() 853 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl() 930 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl() 980 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl() 1209 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitCXXMethodDecl()
|
D | ASTReaderDecl.cpp | 1232 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl() 2841 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult() 2944 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting() 3001 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
|
D | ASTWriter.cpp | 5032 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile() 5109 auto *DC = D->getLexicalDeclContext(); in getAnonymousDeclarationNumber()
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 258 if (DC == getLexicalDeclContext()) in setLexicalDeclContext() 282 const DeclContext *LDC = getLexicalDeclContext(); in isLexicallyWithinFunctionOrMethod() 1220 return (D->getLexicalDeclContext() == this && in containsDecl() 1225 assert(D->getLexicalDeclContext() == this && in removeDecl() 1271 assert(D->getLexicalDeclContext() == this && in addHiddenDecl() 1611 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
|
D | Decl.cpp | 45 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine() 1901 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 1905 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 2628 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 2632 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 2831 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
|
D | ASTImporter.cpp | 2009 if (D->getDeclContext() != D->getLexicalDeclContext()) { in ImportDeclParts() 2010 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in ImportDeclParts() 3863 DeclContext *LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitLinkageSpecDecl() 4086 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCCategoryImplDecl() 4087 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCCategoryImplDecl() 4132 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCImplementationDecl() 4134 = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCImplementationDecl() 4260 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCPropertyImplDecl() 4261 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl() 4530 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitClassTemplateSpecializationDecl() [all …]
|
D | ASTDumper.cpp | 1023 if (D->getLexicalDeclContext() != D->getDeclContext()) in dumpDecl()
|
/external/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 46 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier() 51 ? NewDecl->getLexicalDeclContext() in SubstQualifier() 52 : OldDecl->getLexicalDeclContext())); in SubstQualifier() 416 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation() 1199 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1200 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1282 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1283 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1893 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() 1919 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() [all …]
|
D | SemaAccess.cpp | 114 DC = Function->getLexicalDeclContext(); in EffectiveContext() 1476 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck() 1894 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
|
D | SemaDecl.cpp | 1261 D->getLexicalDeclContext()->getRedeclContext()) && in PushOnScopeChains() 1262 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains() 1290 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains() 1428 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl() 2029 ED->getLexicalDeclContext()->removeDecl(ED); in MergeTypedefNameDecl() 2990 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl() 3240 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl() 3450 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious() 3451 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious() 3455 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious() [all …]
|
D | SemaLookup.cpp | 352 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching() 1496 if (Redecl->getLexicalDeclContext()->isFileContext()) { in hasVisibleMemberSpecialization() 1544 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow() 3297 DeclContext *LexDC = DI->getLexicalDeclContext(); in ArgumentDependentLookup()
|
D | SemaTemplateInstantiate.cpp | 162 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs() 163 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
|
D | AnalysisBasedWarnings.cpp | 692 << const_cast<DeclContext*>(VD->getLexicalDeclContext()) in DiagUninitUse()
|
/external/clang/include/clang/AST/ |
D | DeclBase.h | 717 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function 722 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function 723 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext() 1231 return cast<Decl>(this)->getLexicalDeclContext(); in getLexicalParent()
|
D | Decl.h | 1030 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl() 1045 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl() 1118 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
|
/external/clang/lib/CodeGen/ |
D | ModuleBuilder.cpp | 175 && !D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
|
D | CodeGenModule.cpp | 1959 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in GetOrCreateLLVMFunction() 3596 isa<CXXRecordDecl>(InitVD->getLexicalDeclContext())) { in GetAddrOfGlobalTemporary()
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 289 for (DeclContext *DeclDC = D->getLexicalDeclContext(); in isInLexicalContext() 372 DeclContext *DC = DIt == Decls.begin() ? (*DIt)->getLexicalDeclContext() in visitDeclsFromFileRegion() 373 : (*(DIt-1))->getLexicalDeclContext(); in visitDeclsFromFileRegion() 386 DC = D->getLexicalDeclContext(); in visitDeclsFromFileRegion() 624 if (D->getLexicalDeclContext() != DC) in VisitDeclContext() 1010 if (!SubDecl || SubDecl->getLexicalDeclContext() != D || in VisitObjCContainerDecl() 1096 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 1101 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 7187 const DeclContext *DC = D->getLexicalDeclContext(); in clang_getCursorLexicalParent()
|
D | CXIndexDataConsumer.cpp | 546 LexicalDC = D->getLexicalDeclContext(); in handleDecl()
|