Home
last modified time | relevance | path

Searched refs:getLexicalDeclContext (Results 1 – 25 of 32) sorted by relevance

12

/external/clang/tools/libclang/
DIndexDecl.cpp211 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()
DIndexTypeSourceInfo.cpp112 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
126 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
DIndexBody.cpp175 DC = Parent->getLexicalDeclContext(); in indexBody()
DCIndex.cpp292 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()
DIndexingContext.cpp325 LexicalDC = D->getLexicalDeclContext(); in handleDecl()
/external/clang/lib/Frontend/
DASTConsumers.cpp305 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()
DASTUnit.cpp2581 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
/external/clang/lib/Serialization/
DASTCommon.cpp354 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber()
365 if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
DASTWriterDecl.cpp279 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()
DASTReaderDecl.cpp1175 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()
DASTWriter.cpp4989 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile()
5066 auto *DC = D->getLexicalDeclContext(); in getAnonymousDeclarationNumber()
/external/clang/lib/AST/
DDeclBase.cpp246 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()
DDecl.cpp44 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()
DASTImporter.cpp1893 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 …]
DASTDumper.cpp992 if (D->getLexicalDeclContext() != D->getDeclContext()) in dumpDecl()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp46 !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 …]
DSemaAccess.cpp114 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1481 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck()
1887 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
DSemaDecl.cpp1221 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 …]
DSemaTemplateInstantiate.cpp161 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
162 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
DSemaLookup.cpp349 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
1497 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow()
3208 DeclContext *LexDC = DI->getLexicalDeclContext(); in ArgumentDependentLookup()
DAnalysisBasedWarnings.cpp692 << const_cast<DeclContext*>(VD->getLexicalDeclContext()) in DiagUninitUse()
DSemaTemplateDeduction.cpp2920 Owner = FunctionTemplate->getLexicalDeclContext(); in FinishTemplateArgumentDeduction()
/external/clang/include/clang/AST/
DDeclBase.h703 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()
DDecl.h957 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/
DCodeGenModule.cpp1864 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in GetOrCreateLLVMFunction()
3323 isa<CXXRecordDecl>(InitVD->getLexicalDeclContext())) { in GetAddrOfGlobalTemporary()

12