Home
last modified time | relevance | path

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

12

/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
DTransforms.cpp206 return DRE->getDecl()->getDeclContext()->isFileContext() && in isGlobalVar()
/external/clang/lib/Sema/
DSemaLookup.cpp107 assert(InnermostFileDC && InnermostFileDC->isFileContext()); in visitScopeChain()
114 if (Ctx && Ctx->isFileContext()) { in visitScopeChain()
762 assert(NS && NS->isFileContext() && "CppNamespaceLookup() requires namespace!"); in CppNamespaceLookup()
783 return Ctx->isFileContext(); in isNamespaceOrTranslationUnitScope()
842 while (!Semantic->isFileContext()) in findOuterContext()
849 if (Lexical->isFileContext() && !Lexical->Equals(Semantic) && in findOuterContext()
1020 if (Ctx->isFileContext()) { in CppLookupName()
1140 assert(Ctx->isFileContext() && in CppLookupName()
1206 if (Context->isFileContext()) in getDefiningModule()
1452 assert(StartDC->isFileContext() && "start context is not a file context"); in LookupQualifiedNameInUsingDirectives()
[all …]
DSemaAccess.cpp117 } else if (DC->isFileContext()) { in EffectiveContext()
263 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()
335 if (Friend->isFileContext()) in MightInstantiateTo()
DSemaLambda.cpp247 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()
265 while (!DC->isFileContext()) { in isInInlineFunction()
DSemaTemplateInstantiate.cpp109 while (!Ctx->isFileContext()) { in getTemplateInstantiationArgs()
160 Function->getDeclContext()->isFileContext() && in getTemplateInstantiationArgs()
161 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
DSemaCXXScopeSpec.cpp943 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
DSemaDecl.cpp4244 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
5134 if (DC->isFileContext()) in shouldConsiderLinkage()
5143 if (DC->isFileContext() || DC->isFunctionOrMethod()) in shouldConsiderLinkage()
5194 while (!DC->isFileContext() && !isa<LinkageSpecDecl>(DC)) in adjustContextForLocalExternDecl()
5801 } else if (OldDC->isFileContext()) in CheckShadow()
9070 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
9276 if (DC->getRedeclContext()->isFileContext() && VD->isExternallyVisible()) in FinalizeDeclaration()
10923 if (DC->isFileContext() && in ActOnTag()
11005 while (!SearchDC->isFileContext() && !SearchDC->isFunctionOrMethod()) in ActOnTag()
11589 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
DSemaTemplateInstantiateDecl.cpp1302 assert(D->getDeclContext()->isFileContext()); in VisitFunctionDecl()
4478 while (!DC->isFileContext()) { in FindInstantiatedDecl()
4501 if (FD->getFriendObjectKind() && FD->getDeclContext()->isFileContext()){ in FindInstantiatedDecl()
DSemaTemplate.cpp936 while (!OutermostContext->isFileContext()) in CheckClassTemplate()
2088 if (Ctx->isFileContext()) break; in CheckTemplateIdType()
5582 if (Ctx->isFileContext()) in CheckTemplateDeclScope()
DSemaCodeComplete.cpp3050 if (S.CurContext->isFileContext()) in mapCodeCompletionContext()
4127 if (Ctx && Ctx->isFileContext() && !SuppressedGlobalResults) { in CodeCompleteNamespaceDecl()
4320 return DC->isFileContext(); in isNamespaceScope()
DSemaDeclObjC.cpp1140 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation()
DSemaStmt.cpp3318 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in CreateCapturedStmtRecordDecl()
DSemaOpenMP.cpp644 (!getCurLexicalContext()->isFileContext() || in ActOnOpenMPIdExpression()
DSemaDeclAttr.cpp1331 if (!Ctx->isFileContext()) { in handleWeakRefAttr()
DSemaExprCXX.cpp137 if (DC && DC->isFileContext()) { in getDestructorName()
DSemaDeclCXX.cpp11959 if (LookupDC->isFileContext()) break; in ActOnFriendFunctionDecl()
12013 if (DC->isFileContext()) in ActOnFriendFunctionDecl()
/external/clang/lib/AST/
DDeclBase.cpp790 if (getParent()->getRedeclContext()->isFileContext() && in getLookupParent()
819 if (isFileContext()) in isDependentContext()
1428 while (!Ctx->isFileContext()) in getEnclosingNamespaceContext()
1435 if (!isFileContext()) in InEnclosingNamespaceSetOf()
DCXXInheritance.cpp125 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in isCurrentInstantiation()
DDecl.cpp568 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl()
1250 if (D->getDeclContext()->getRedeclContext()->isFileContext()) in computeLVForDecl()
1946 if (RD->getLexicalDeclContext()->isFileContext()) in getOutOfLineDefinition()
DItaniumMangle.cpp1083 getEffectiveDeclContext(ND)->isFileContext()) in mangleUnqualifiedName()
/external/clang/include/clang/AST/
DDeclBase.h1145 bool isFileContext() const { in isFileContext() function
DDecl.h975 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
/external/clang/lib/Frontend/
DASTUnit.cpp2604 if (!D->getLexicalDeclContext()->isFileContext()) in addFileLevelDecl()
/external/clang/lib/Serialization/
DASTWriter.cpp4897 if (!D->getLexicalDeclContext()->isFileContext()) in associateDeclWithFile()

12