Home
last modified time | relevance | path

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

12

/external/clang/lib/Index/
DIndexDecl.cpp198 D->getLexicalDeclContext(), in VisitTagDecl()
301 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
304 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
356 D->getLexicalDeclContext()); in VisitUsingDecl()
359 D->getLexicalDeclContext(), SymbolRoleSet()); in VisitUsingDecl()
368 D->getLexicalDeclContext()); in VisitUsingDirectiveDecl()
371 D->getLexicalDeclContext(), in VisitUsingDirectiveDecl()
DIndexTypeSourceInfo.cpp148 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
162 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
DIndexBody.cpp357 DC = Parent->getLexicalDeclContext(); in indexBody()
/external/clang/lib/Frontend/
DASTConsumers.cpp304 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
333 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
349 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
365 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
DASTUnit.cpp2591 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
/external/clang/lib/Serialization/
DASTCommon.cpp331 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber()
342 if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
DASTWriterDecl.cpp284 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl()
285 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl()
372 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl()
435 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl()
464 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl()
721 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl()
853 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl()
930 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl()
980 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl()
1209 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitCXXMethodDecl()
DASTReaderDecl.cpp1232 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()
2841 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult()
2944 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting()
3001 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
DASTWriter.cpp5032 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile()
5109 auto *DC = D->getLexicalDeclContext(); in getAnonymousDeclarationNumber()
/external/clang/lib/AST/
DDeclBase.cpp258 if (DC == getLexicalDeclContext()) in setLexicalDeclContext()
282 const DeclContext *LDC = getLexicalDeclContext(); in isLexicallyWithinFunctionOrMethod()
1220 return (D->getLexicalDeclContext() == this && in containsDecl()
1225 assert(D->getLexicalDeclContext() == this && in removeDecl()
1271 assert(D->getLexicalDeclContext() == this && in addHiddenDecl()
1611 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
DDecl.cpp45 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
1901 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
1905 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
2628 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
2632 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
2831 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
DASTImporter.cpp2009 if (D->getDeclContext() != D->getLexicalDeclContext()) { in ImportDeclParts()
2010 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in ImportDeclParts()
3863 DeclContext *LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitLinkageSpecDecl()
4086 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCCategoryImplDecl()
4087 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCCategoryImplDecl()
4132 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCImplementationDecl()
4134 = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCImplementationDecl()
4260 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitObjCPropertyImplDecl()
4261 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl()
4530 if (D->getDeclContext() != D->getLexicalDeclContext()) { in VisitClassTemplateSpecializationDecl()
[all …]
DASTDumper.cpp1023 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()
416 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation()
1199 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1200 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1282 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
1283 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
1893 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
1919 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
[all …]
DSemaAccess.cpp114 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1476 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck()
1894 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
DSemaDecl.cpp1261 D->getLexicalDeclContext()->getRedeclContext()) && in PushOnScopeChains()
1262 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains()
1290 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains()
1428 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl()
2029 ED->getLexicalDeclContext()->removeDecl(ED); in MergeTypedefNameDecl()
2990 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()
3240 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl()
3450 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious()
3451 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious()
3455 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious()
[all …]
DSemaLookup.cpp352 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
1496 if (Redecl->getLexicalDeclContext()->isFileContext()) { in hasVisibleMemberSpecialization()
1544 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow()
3297 DeclContext *LexDC = DI->getLexicalDeclContext(); in ArgumentDependentLookup()
DSemaTemplateInstantiate.cpp162 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
163 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
DAnalysisBasedWarnings.cpp692 << const_cast<DeclContext*>(VD->getLexicalDeclContext()) in DiagUninitUse()
/external/clang/include/clang/AST/
DDeclBase.h717 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function
722 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function
723 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext()
1231 return cast<Decl>(this)->getLexicalDeclContext(); in getLexicalParent()
DDecl.h1030 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl()
1045 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl()
1118 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
/external/clang/lib/CodeGen/
DModuleBuilder.cpp175 && !D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
DCodeGenModule.cpp1959 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in GetOrCreateLLVMFunction()
3596 isa<CXXRecordDecl>(InitVD->getLexicalDeclContext())) { in GetAddrOfGlobalTemporary()
/external/clang/tools/libclang/
DCIndex.cpp289 for (DeclContext *DeclDC = D->getLexicalDeclContext(); in isInLexicalContext()
372 DeclContext *DC = DIt == Decls.begin() ? (*DIt)->getLexicalDeclContext() in visitDeclsFromFileRegion()
373 : (*(DIt-1))->getLexicalDeclContext(); in visitDeclsFromFileRegion()
386 DC = D->getLexicalDeclContext(); in visitDeclsFromFileRegion()
624 if (D->getLexicalDeclContext() != DC) in VisitDeclContext()
1010 if (!SubDecl || SubDecl->getLexicalDeclContext() != D || in VisitObjCContainerDecl()
1096 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
1101 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
7187 const DeclContext *DC = D->getLexicalDeclContext(); in clang_getCursorLexicalParent()
DCXIndexDataConsumer.cpp546 LexicalDC = D->getLexicalDeclContext(); in handleDecl()

12