Home
last modified time | relevance | path

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

1234

/external/llvm-project/clang/lib/Index/
DIndexDecl.cpp90 Parent->getLexicalDeclContext(), in handleDeclarator()
204 dyn_cast<ClassTemplateSpecializationDecl>(D->getLexicalDeclContext()); in gatherTemplatePseudoOverrides()
287 handleTemplateArgumentLoc(Arg, D, D->getLexicalDeclContext()); in VisitFunctionDecl()
369 Relations, D->getLexicalDeclContext()); in VisitTagDecl()
510 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
513 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
518 D->getLexicalDeclContext(), false, true); in VisitObjCPropertyDecl()
587 D->getLexicalDeclContext()); in VisitNamespaceAliasDecl()
597 D->getLexicalDeclContext()); in VisitUsingDecl()
600 D->getLexicalDeclContext(), SymbolRoleSet()); in VisitUsingDecl()
[all …]
DIndexTypeSourceInfo.cpp255 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
269 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
/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()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DASTTests.cpp140 D->getLexicalDeclContext(), D->getBeginLoc(), in TEST()
145 D->getLexicalDeclContext(), TargetDecl, in TEST()
/external/llvm-project/clang/lib/Serialization/
DASTCommon.cpp446 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber()
460 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in needsAnonymousDeclarationNumber()
470 if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
DASTWriterDecl.cpp299 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl()
300 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl()
388 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl()
453 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl()
490 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl()
796 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl()
930 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl()
1054 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl()
1102 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl()
1378 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitCXXMethodDecl()
/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()
/external/llvm-project/clang/lib/AST/
DDeclBase.cpp260 auto *DC = getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in isTemplated()
282 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth()
332 if (DC == getLexicalDeclContext()) in setLexicalDeclContext()
368 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation()
1452 return (D->getLexicalDeclContext() == this && in containsDecl()
1502 assert(D->getLexicalDeclContext() == this && in removeDecl()
1556 assert(D->getLexicalDeclContext() == this && in addHiddenDecl()
1891 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
/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()
/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DExtract.cpp51 while (const auto *RD = dyn_cast<CXXRecordDecl>(D->getLexicalDeclContext())) in computeFunctionExtractionLocation()
/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 …]
/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()
/external/llvm-project/clang/include/clang/AST/
DDeclBase.h843 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function
848 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function
849 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext()
1832 return cast<Decl>(this)->getLexicalDeclContext(); in getLexicalParent()
/external/llvm-project/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp51 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier()
56 ? NewDecl->getLexicalDeclContext() in SubstQualifier()
57 : OldDecl->getLexicalDeclContext())); in SubstQualifier()
750 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation()
1583 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1584 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1666 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
1667 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
2384 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
2410 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
[all …]
DSemaAccess.cpp114 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1475 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck()
1924 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
/external/clang/lib/CodeGen/
DModuleBuilder.cpp175 && !D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DCxxModuleHandler.cpp281 new_class_template->getLexicalDeclContext()); in tryInstantiateStdTemplate()
DClangASTImporter.cpp120 m_backups[decl] = {decl->getDeclContext(), decl->getLexicalDeclContext()}; in OverrideOne()
147 !ChainPassesThrough(decl, base, &clang::Decl::getLexicalDeclContext, in GetEscapedChild()
190 for (DeclContext *decl_context = decl->getLexicalDeclContext(); in OverrideAllDeclsFromContainingFunction()
/external/llvm-project/clang/lib/CodeGen/
DModuleBuilder.cpp207 if (!D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
/external/llvm-project/clang/unittests/AST/
DASTImporterTest.cpp2016 EXPECT_NE(ToBFInClass->getLexicalDeclContext(), in TEST_P()
2017 ToBFOutOfClass->getLexicalDeclContext()); in TEST_P()
2019 EXPECT_EQ(ToBFOutOfClass->getLexicalDeclContext(), ToTU); in TEST_P()
2083 EXPECT_NE(ToBFInClass->getLexicalDeclContext(), in TEST_P()
2084 ToBFOutOfClass->getLexicalDeclContext()); in TEST_P()
2086 EXPECT_EQ(ToBFOutOfClass->getLexicalDeclContext(), ToTU); in TEST_P()
2089 EXPECT_NE(ToDFInClass->getLexicalDeclContext(), in TEST_P()
2090 ToDFOutOfClass->getLexicalDeclContext()); in TEST_P()
2092 EXPECT_EQ(ToDFOutOfClass->getLexicalDeclContext(), ToTU); in TEST_P()
3629 ASSERT_EQ(FromRecordOfFriend->getLexicalDeclContext(), in TEST_P()
[all …]
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineInline.cpp160 auto *TargetContext = Target->getLexicalDeclContext(); in qualifyAllDecls()

1234