Home
last modified time | relevance | path

Searched refs:DestContext (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang/unittests/Sema/
DExternalSemaSourceTest.cpp114 DeclContext *DestContext = nullptr; in CorrectTypo() local
117 DestContext = CurrentSema->computeDeclContext(*SS, EnteringContext); in CorrectTypo()
118 if (!DestContext) in CorrectTypo()
119 DestContext = Context.getTranslationUnitDecl(); in CorrectTypo()
123 NamespaceDecl::Create(Context, DestContext, false, Typo.getBeginLoc(), in CorrectTypo()
125 DestContext->addDecl(NewNamespace); in CorrectTypo()
156 DeclContext *DestContext = nullptr; in CorrectTypo() local
159 DestContext = CurrentSema->computeDeclContext(*SS, EnteringContext); in CorrectTypo()
160 if (!DestContext) in CorrectTypo()
161 DestContext = Context.getTranslationUnitDecl(); in CorrectTypo()
[all …]
/external/clang/unittests/Sema/
DExternalSemaSourceTest.cpp115 DeclContext *DestContext = nullptr; in CorrectTypo() local
118 DestContext = CurrentSema->computeDeclContext(*SS, EnteringContext); in CorrectTypo()
119 if (!DestContext) in CorrectTypo()
120 DestContext = Context.getTranslationUnitDecl(); in CorrectTypo()
124 NamespaceDecl::Create(Context, DestContext, false, Typo.getBeginLoc(), in CorrectTypo()
126 DestContext->addDecl(NewNamespace); in CorrectTypo()
157 DeclContext *DestContext = nullptr; in CorrectTypo() local
160 DestContext = CurrentSema->computeDeclContext(*SS, EnteringContext); in CorrectTypo()
161 if (!DestContext) in CorrectTypo()
162 DestContext = Context.getTranslationUnitDecl(); in CorrectTypo()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DAST.cpp81 getUsingNamespaceDirectives(const DeclContext *DestContext, in getUsingNamespaceDirectives() argument
83 const auto &SM = DestContext->getParentASTContext().getSourceManager(); in getUsingNamespaceDirectives()
85 for (const auto *DC = DestContext; DC; DC = DC->getLookupParent()) { in getUsingNamespaceDirectives()
104 getQualification(ASTContext &Context, const DeclContext *DestContext, in getQualification() argument
112 if (CurContext->Encloses(DestContext)) in getQualification()
428 const DeclContext *DestContext, in getQualification() argument
432 getUsingNamespaceDirectives(DestContext, InsertionPoint); in getQualification()
434 Context, DestContext, ND->getDeclContext(), in getQualification()
447 const DeclContext *DestContext, in getQualification() argument
455 Context, DestContext, ND->getDeclContext(), in getQualification()
DAST.h129 const DeclContext *DestContext,
145 const DeclContext *DestContext,