Home
last modified time | relevance | path

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

123

/external/llvm-project/clang/examples/Attribute/
DAttribute.cpp51 if (!D->getDeclContext()->isFileContext()) { in handleDeclAttribute()
/external/llvm-project/clang/lib/ARCMigrate/
DTransGCCalls.cpp48 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
DTransforms.cpp200 return DRE->getDecl()->getDeclContext()->isFileContext() && in isGlobalVar()
/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
DTransforms.cpp205 return DRE->getDecl()->getDeclContext()->isFileContext() && in isGlobalVar()
/external/llvm-project/clang/lib/AST/
DDeclBase.cpp267 if (DC->isFileContext()) in getTemplateDepth()
1095 if (getParent()->getRedeclContext()->isFileContext() && in getLookupParent()
1142 if (isFileContext()) in isDependentContext()
1825 while (!Ctx->isFileContext()) in getEnclosingNamespaceContext()
1843 if (!isFileContext()) in InEnclosingNamespaceSetOf()
DCXXInheritance.cpp120 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in isCurrentInstantiation()
DODRHash.cpp530 if (DC->getLexicalParent()->isFileContext()) return; in AddFunctionDecl()
/external/clang/lib/Sema/
DSemaLookup.cpp110 assert(InnermostFileDC && InnermostFileDC->isFileContext()); in visitScopeChain()
117 if (Ctx && Ctx->isFileContext()) { in visitScopeChain()
924 assert(NS && NS->isFileContext() && "CppNamespaceLookup() requires namespace!"); in CppNamespaceLookup()
942 return Ctx->isFileContext(); in isNamespaceOrTranslationUnitScope()
1001 while (!Semantic->isFileContext()) in findOuterContext()
1008 if (Lexical->isFileContext() && !Lexical->Equals(Semantic) && in findOuterContext()
1182 if (Ctx->isFileContext()) { in CppLookupName()
1302 assert(Ctx->isFileContext() && in CppLookupName()
1424 if (Context->isFileContext()) in getDefiningModule()
1496 if (Redecl->getLexicalDeclContext()->isFileContext()) { in hasVisibleMemberSpecialization()
[all …]
DSemaAccess.cpp117 } else if (DC->isFileContext()) { in EffectiveContext()
268 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()
341 if (Friend->isFileContext()) in MightInstantiateTo()
DSemaLambda.cpp248 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()
266 while (!DC->isFileContext()) { in isInInlineFunction()
DSemaTemplateInstantiate.cpp110 while (!Ctx->isFileContext()) { in getTemplateInstantiationArgs()
161 Function->getDeclContext()->isFileContext() && in getTemplateInstantiationArgs()
162 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
DSemaCXXScopeSpec.cpp1038 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
DSemaDecl.cpp4793 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
5104 if (!DC->getRedeclContext()->isFileContext()) { in HandleDeclarator()
5772 if (DC->isFileContext()) in shouldConsiderLinkage()
5781 if (DC->isFileContext() || DC->isFunctionOrMethod() || in shouldConsiderLinkage()
5833 while (!DC->isFileContext() && !isa<LinkageSpecDecl>(DC)) in adjustContextForLocalExternDecl()
6519 return OldDC->isFileContext() ? SDK_Global : SDK_Local; in computeShadowedDeclKind()
10330 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
10625 if (DC->getRedeclContext()->isFileContext() && VD->isExternallyVisible()) in FinalizeDeclaration()
12229 while (!DC->isFileContext() && !DC->isFunctionOrMethod()) in getTagInjectionContext()
12472 if (DC->isFileContext() && in ActOnTag()
[all …]
/external/clang/lib/AST/
DDeclBase.cpp894 if (getParent()->getRedeclContext()->isFileContext() && in getLookupParent()
923 if (isFileContext()) in isDependentContext()
1545 while (!Ctx->isFileContext()) in getEnclosingNamespaceContext()
1563 if (!isFileContext()) in InEnclosingNamespaceSetOf()
DCXXInheritance.cpp130 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in isCurrentInstantiation()
/external/llvm-project/clang/lib/Sema/
DSemaLookup.cpp109 assert(InnermostFileDC && InnermostFileDC->isFileContext()); in visitScopeChain()
116 if (Ctx && Ctx->isFileContext()) { in visitScopeChain()
1151 assert(NS && NS->isFileContext() && "CppNamespaceLookup() requires namespace!"); in CppNamespaceLookup()
1169 return Ctx->isFileContext(); in isNamespaceOrTranslationUnitScope()
1334 if (Ctx->isFileContext()) { in CppLookupName()
1438 assert(Ctx->isFileContext() && in CppLookupName()
1498 if (Context->isFileContext()) in getDefiningModule()
1625 return D->getLexicalDeclContext()->isFileContext(); in hasVisibleMemberSpecialization()
1652 return DC->isFileContext() || isa<LinkageSpecDecl>(DC) || in isVisibleSlow()
2011 assert(StartDC->isFileContext() && "start context is not a file context"); in LookupQualifiedNameInUsingDirectives()
[all …]
DSemaAccess.cpp117 } else if (DC->isFileContext()) { in EffectiveContext()
267 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()
340 if (Friend->isFileContext()) in MightInstantiateTo()
DSemaModule.cpp674 if (DC->getRedeclContext()->isFileContext() && !isa<EnumDecl>(D)) in checkExportedDecl()
DSemaCXXScopeSpec.cpp1050 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
DSemaLambda.cpp246 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()
264 while (!DC->isFileContext()) { in isInInlineFunction()
DSemaTemplateInstantiate.cpp119 while (!Ctx->isFileContext()) { in getTemplateInstantiationArgs()
175 Function->getDeclContext()->isFileContext() && in getTemplateInstantiationArgs()
176 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DAddUsing.cpp180 while (ParentDeclCtx && !ParentDeclCtx->isFileContext()) { in findInsertionPoint()
/external/llvm-project/clang-tools-extra/clangd/
DQuality.cpp276 for (; !DC->isFileContext(); DC = DC->getParent()) { in computeScope()
/external/llvm-project/clang-tools-extra/modularize/
DModularize.cpp612 if (!ND->getDeclContext()->isFileContext()) in VisitNamedDecl()

123