/external/clang/tools/libclang/ |
D | IndexDecl.cpp | 211 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl() 214 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl() 239 D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl() 245 D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl() 263 D->getLexicalDeclContext()); in VisitUsingDecl() 273 D->getLocation(), D, D->getLexicalDeclContext()); in VisitUsingDirectiveDecl()
|
D | IndexTypeSourceInfo.cpp | 112 DC = Parent->getLexicalDeclContext(); in indexTypeLoc() 126 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
|
D | IndexBody.cpp | 174 DC = Parent->getLexicalDeclContext(); in indexBody()
|
D | CIndex.cpp | 288 for (DeclContext *DeclDC = D->getLexicalDeclContext(); in isInLexicalContext() 371 DeclContext *DC = DIt == Decls.begin() ? (*DIt)->getLexicalDeclContext() in visitDeclsFromFileRegion() 372 : (*(DIt-1))->getLexicalDeclContext(); in visitDeclsFromFileRegion() 385 DC = D->getLexicalDeclContext(); in visitDeclsFromFileRegion() 621 if (D->getLexicalDeclContext() != DC) in VisitDeclContext() 986 if (!SubDecl || SubDecl->getLexicalDeclContext() != D || in VisitObjCContainerDecl() 1068 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 1073 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 6258 const DeclContext *DC = D->getLexicalDeclContext(); in clang_getCursorLexicalParent()
|
D | IndexingContext.cpp | 325 LexicalDC = D->getLexicalDeclContext(); in handleDecl()
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 296 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 326 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 342 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 358 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
|
D | ASTUnit.cpp | 2604 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
|
/external/clang/include/clang/AST/ |
D | DeclBase.h | 669 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function 674 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function 675 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext() 679 return getLexicalDeclContext() != getDeclContext(); in isOutOfLine() 1102 return cast<Decl>(this)->getLexicalDeclContext(); in getLexicalParent()
|
D | Decl.h | 889 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl() 899 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl() 975 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 221 if (DC == getLexicalDeclContext()) in setLexicalDeclContext() 1115 return (D->getLexicalDeclContext() == this && in containsDecl() 1120 assert(D->getLexicalDeclContext() == this && in removeDecl() 1163 assert(D->getLexicalDeclContext() == this && in addHiddenDecl() 1480 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
|
D | ASTImporter.cpp | 1818 if (D->getDeclContext() != D->getLexicalDeclContext()) { in ImportDeclParts() 1819 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in ImportDeclParts() 3637 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCCategoryImplDecl() 3638 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCCategoryImplDecl() 3683 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCImplementationDecl() 3685 = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCImplementationDecl() 3807 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCPropertyImplDecl() 3808 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl() 4073 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitClassTemplateSpecializationDecl() 4074 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitClassTemplateSpecializationDecl() [all …]
|
D | Decl.cpp | 1795 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 1799 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 1946 if (RD->getLexicalDeclContext()->isFileContext()) in getOutOfLineDefinition() 2481 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 2485 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 2674 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
|
D | ASTDumper.cpp | 797 if (D->getLexicalDeclContext() != D->getDeclContext()) in dumpDecl()
|
/external/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 961 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 962 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1043 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1044 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1664 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() 1691 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() 3572 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); in BuildVariableInstantiation() 3623 NewVar->getLexicalDeclContext()->addHiddenDecl(NewVar); in BuildVariableInstantiation() 3938 Var->getLexicalDeclContext()->isRecord()) { in InstantiateVariableDefinition() 4502 DC = FD->getLexicalDeclContext(); in FindInstantiatedDecl() [all …]
|
D | SemaAccess.cpp | 114 DC = Function->getLexicalDeclContext(); in EffectiveContext() 1476 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck() 1882 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
|
D | SemaDecl.cpp | 1156 D->getLexicalDeclContext()->getRedeclContext()) && in PushOnScopeChains() 1157 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains() 1185 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains() 1323 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl() 2642 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl() 2891 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl() 3075 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious() 3076 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious() 3080 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious() 3081 OldVD->getLexicalDeclContext() == NewVD->getLexicalDeclContext(); in mergeTypeWithPrevious() [all …]
|
D | SemaTemplateInstantiate.cpp | 161 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs() 162 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
|
D | SemaLookup.cpp | 344 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching() 2836 DeclContext *LexDC = DI->getLexicalDeclContext(); in ArgumentDependentLookup()
|
D | AnalysisBasedWarnings.cpp | 685 << const_cast<DeclContext*>(VD->getLexicalDeclContext()) in DiagUninitUse()
|
D | SemaTemplateDeduction.cpp | 2943 Owner = FunctionTemplate->getLexicalDeclContext(); in FinishTemplateArgumentDeduction()
|
D | SemaDeclCXX.cpp | 451 DeclContext *ScopeDC = New->getLexicalDeclContext(); in MergeCXXFunctionDecl() 12063 assert(ND->getLexicalDeclContext() == CurContext); in ActOnFriendFunctionDecl()
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 1002 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl() 2461 if (Reader.MergedDeclContexts.count(D->getLexicalDeclContext())) in findExisting()
|
D | ASTWriterDecl.cpp | 166 Writer.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext()), Record); in VisitDecl()
|
D | ASTWriter.cpp | 4897 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile()
|
/external/clang/lib/CodeGen/ |
D | CodeGenModule.cpp | 1519 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in GetOrCreateLLVMFunction()
|