/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 | 175 DC = Parent->getLexicalDeclContext(); in indexBody()
|
D | CIndex.cpp | 292 for (DeclContext *DeclDC = D->getLexicalDeclContext(); in isInLexicalContext() 375 DeclContext *DC = DIt == Decls.begin() ? (*DIt)->getLexicalDeclContext() in visitDeclsFromFileRegion() 376 : (*(DIt-1))->getLexicalDeclContext(); in visitDeclsFromFileRegion() 389 DC = D->getLexicalDeclContext(); in visitDeclsFromFileRegion() 625 if (D->getLexicalDeclContext() != DC) in VisitDeclContext() 1009 if (!SubDecl || SubDecl->getLexicalDeclContext() != D || in VisitObjCContainerDecl() 1094 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 1099 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 6816 const DeclContext *DC = D->getLexicalDeclContext(); in clang_getCursorLexicalParent()
|
D | IndexingContext.cpp | 325 LexicalDC = D->getLexicalDeclContext(); in handleDecl()
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 305 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 335 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 351 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext() 367 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
|
D | ASTUnit.cpp | 2581 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
|
/external/clang/lib/Serialization/ |
D | ASTCommon.cpp | 354 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber() 365 if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
|
D | ASTWriterDecl.cpp | 279 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl() 280 Writer.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext()), Record); in VisitDecl() 346 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl() 409 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl() 438 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl() 697 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl() 830 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl() 905 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl() 954 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl() 1175 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitCXXMethodDecl()
|
D | ASTReaderDecl.cpp | 1175 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl() 2726 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult() 2829 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting() 2886 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
|
D | ASTWriter.cpp | 4989 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile() 5066 auto *DC = D->getLexicalDeclContext(); in getAnonymousDeclarationNumber()
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 246 if (DC == getLexicalDeclContext()) in setLexicalDeclContext() 270 const DeclContext *LDC = getLexicalDeclContext(); in isLexicallyWithinFunctionOrMethod() 1176 return (D->getLexicalDeclContext() == this && in containsDecl() 1181 assert(D->getLexicalDeclContext() == this && in removeDecl() 1227 assert(D->getLexicalDeclContext() == this && in addHiddenDecl() 1564 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
|
D | Decl.cpp | 44 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine() 1898 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 1902 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 2052 if (RD->getLexicalDeclContext()->isFileContext()) in getOutOfLineDefinition() 2552 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 2556 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 2750 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
|
D | ASTImporter.cpp | 1893 if (D->getDeclContext() != D->getLexicalDeclContext()) { in ImportDeclParts() 1894 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in ImportDeclParts() 3639 DeclContext *LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitLinkageSpecDecl() 3862 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCCategoryImplDecl() 3863 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCCategoryImplDecl() 3908 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCImplementationDecl() 3910 = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCImplementationDecl() 4036 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCPropertyImplDecl() 4037 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl() 4305 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitClassTemplateSpecializationDecl() [all …]
|
D | ASTDumper.cpp | 992 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() 312 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation() 1092 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1093 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1175 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1176 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1817 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() 1844 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() [all …]
|
D | SemaAccess.cpp | 114 DC = Function->getLexicalDeclContext(); in EffectiveContext() 1481 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck() 1887 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
|
D | SemaDecl.cpp | 1221 D->getLexicalDeclContext()->getRedeclContext()) && in PushOnScopeChains() 1222 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains() 1250 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains() 1388 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl() 1974 ED->getLexicalDeclContext()->removeDecl(ED); in MergeTypedefNameDecl() 2916 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl() 3166 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl() 3363 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious() 3364 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious() 3368 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious() [all …]
|
D | SemaTemplateInstantiate.cpp | 161 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs() 162 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
|
D | SemaLookup.cpp | 349 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching() 1497 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow() 3208 DeclContext *LexDC = DI->getLexicalDeclContext(); in ArgumentDependentLookup()
|
D | AnalysisBasedWarnings.cpp | 692 << const_cast<DeclContext*>(VD->getLexicalDeclContext()) in DiagUninitUse()
|
D | SemaTemplateDeduction.cpp | 2920 Owner = FunctionTemplate->getLexicalDeclContext(); in FinishTemplateArgumentDeduction()
|
/external/clang/include/clang/AST/ |
D | DeclBase.h | 703 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function 708 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function 709 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext() 1212 return cast<Decl>(this)->getLexicalDeclContext(); in getLexicalParent()
|
D | Decl.h | 957 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl() 972 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl() 1048 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
|
/external/clang/lib/CodeGen/ |
D | CodeGenModule.cpp | 1864 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in GetOrCreateLLVMFunction() 3323 isa<CXXRecordDecl>(InitVD->getLexicalDeclContext())) { in GetAddrOfGlobalTemporary()
|