Home
last modified time | relevance | path

Searched refs:getLexicalDeclContext (Results 1 – 25 of 30) 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.cpp174 DC = Parent->getLexicalDeclContext(); in indexBody()
DCIndex.cpp288 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()
DIndexingContext.cpp325 LexicalDC = D->getLexicalDeclContext(); in handleDecl()
/external/clang/lib/Frontend/
DASTConsumers.cpp296 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()
DASTUnit.cpp2604 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
/external/clang/include/clang/AST/
DDeclBase.h669 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()
DDecl.h889 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/
DDeclBase.cpp221 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()
DASTImporter.cpp1818 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 …]
DDecl.cpp1795 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()
DASTDumper.cpp797 if (D->getLexicalDeclContext() != D->getDeclContext()) in dumpDecl()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp961 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 …]
DSemaAccess.cpp114 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1476 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck()
1882 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
DSemaDecl.cpp1156 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 …]
DSemaTemplateInstantiate.cpp161 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
162 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
DSemaLookup.cpp344 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
2836 DeclContext *LexDC = DI->getLexicalDeclContext(); in ArgumentDependentLookup()
DAnalysisBasedWarnings.cpp685 << const_cast<DeclContext*>(VD->getLexicalDeclContext()) in DiagUninitUse()
DSemaTemplateDeduction.cpp2943 Owner = FunctionTemplate->getLexicalDeclContext(); in FinishTemplateArgumentDeduction()
DSemaDeclCXX.cpp451 DeclContext *ScopeDC = New->getLexicalDeclContext(); in MergeCXXFunctionDecl()
12063 assert(ND->getLexicalDeclContext() == CurContext); in ActOnFriendFunctionDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1002 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()
2461 if (Reader.MergedDeclContexts.count(D->getLexicalDeclContext())) in findExisting()
DASTWriterDecl.cpp166 Writer.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext()), Record); in VisitDecl()
DASTWriter.cpp4897 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp1519 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in GetOrCreateLLVMFunction()

12