Home
last modified time | relevance | path

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

/external/clang/tools/libclang/
DIndexDecl.cpp207 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
210 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
234 D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl()
239 D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl()
258 D, D->getLexicalDeclContext()); in VisitUsingDecl()
269 D->getLocation(), D, D->getLexicalDeclContext()); in VisitUsingDirectiveDecl()
DIndexTypeSourceInfo.cpp112 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
126 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
DIndexBody.cpp169 DC = Parent->getLexicalDeclContext(); in indexBody()
DCIndex.cpp269 for (DeclContext *DeclDC = D->getLexicalDeclContext(); in isInLexicalContext()
352 DeclContext *DC = DIt == Decls.begin() ? (*DIt)->getLexicalDeclContext() in visitDeclsFromFileRegion()
353 : (*(DIt-1))->getLexicalDeclContext(); in visitDeclsFromFileRegion()
366 DC = D->getLexicalDeclContext(); in visitDeclsFromFileRegion()
598 if (D->getLexicalDeclContext() != DC) in VisitDeclContext()
975 if (!subDecl || subDecl->getLexicalDeclContext() != D || in VisitObjCContainerDecl()
1052 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
1057 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
5876 const DeclContext *DC = D->getLexicalDeclContext(); in clang_getCursorLexicalParent()
DIndexingContext.cpp324 LexicalDC = D->getLexicalDeclContext(); in handleDecl()
/external/clang/lib/Frontend/
DASTConsumers.cpp293 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
323 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
339 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
355 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
DASTUnit.cpp2636 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
/external/clang/include/clang/AST/
DDeclBase.h637 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function
642 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function
643 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext()
647 return getLexicalDeclContext() != getDeclContext(); in isOutOfLine()
1008 return cast<Decl>(this)->getLexicalDeclContext(); in getLexicalParent()
/external/clang/lib/AST/
DDeclBase.cpp213 if (DC == getLexicalDeclContext()) in setLexicalDeclContext()
1047 assert(D->getLexicalDeclContext() == this && in removeDecl()
1090 assert(D->getLexicalDeclContext() == this && in addHiddenDecl()
1360 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
DASTImporter.cpp1806 if (D->getDeclContext() != D->getLexicalDeclContext()) { in ImportDeclParts()
1807 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in ImportDeclParts()
3609 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCCategoryImplDecl()
3610 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCCategoryImplDecl()
3654 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCImplementationDecl()
3656 = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCImplementationDecl()
3777 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCPropertyImplDecl()
3778 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl()
4043 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitClassTemplateSpecializationDecl()
4044 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitClassTemplateSpecializationDecl()
DDecl.cpp1692 if (RD->getLexicalDeclContext()->isFileContext()) in getOutOfLineDefinition()
2241 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
DASTDumper.cpp663 if (D->getLexicalDeclContext() != D->getDeclContext()) in dumpDecl()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp356 Var->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarDecl()
386 D->getLexicalDeclContext()->addDecl(Var); in VisitVarDecl()
932 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
933 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1566 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
1594 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
3514 DC = FD->getLexicalDeclContext(); in FindInstantiatedDecl()
3595 EnumDecl *Enum = cast<EnumDecl>(ED->getLexicalDeclContext()); in FindInstantiatedDecl()
DSemaAccess.cpp114 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1885 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
DSemaDecl.cpp1050 D->getLexicalDeclContext()->getRedeclContext())) in PushOnScopeChains()
1078 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains()
1210 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl()
2467 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()
2923 !(Old->getLexicalDeclContext()->isRecord() && in MergeVarDecl()
2924 !New->getLexicalDeclContext()->isRecord())) { in MergeVarDecl()
4326 assert(ND->getLexicalDeclContext()->isFunctionOrMethod() && in RegisterLocallyScopedExternCDecl()
7456 VDecl->getLexicalDeclContext()->isRecord()) { in AddInitializerToDecl()
8592 if (D->getLexicalDeclContext() == Context.getTranslationUnitDecl()) { in ActOnStartOfFunctionDef()
8630 !(LangOpts.MicrosoftExt && FD->getLexicalDeclContext()->isRecord())) { in ActOnStartOfFunctionDef()
DSemaTemplateInstantiate.cpp130 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
131 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
DSemaLookup.cpp2698 DeclContext *LexDC = D->getLexicalDeclContext(); in ArgumentDependentLookup()
DSemaTemplateDeduction.cpp2705 Owner = FunctionTemplate->getLexicalDeclContext(); in FinishTemplateArgumentDeduction()
DSemaTemplate.cpp2102 Decl->setLexicalDeclContext(ClassTemplate->getLexicalDeclContext()); in CheckTemplateIdType()
DSemaDeclCXX.cpp10944 assert(ND->getLexicalDeclContext() == CurContext); in ActOnFriendFunctionDecl()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp151 Writer.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext()), Record); in VisitDecl()
DASTReaderDecl.cpp1793 DeclContext *DC = New->getLexicalDeclContext(); in ~FindExistingResult()
DASTWriter.cpp4294 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp1319 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in GetOrCreateLLVMFunction()
/external/clang/docs/
DInternalsManual.rst1125 ``Decl::getLexicalDeclContext`` while the semantic context is accessible via