Home
last modified time | relevance | path

Searched refs:FnScope (Results 1 – 17 of 17) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DScope.cpp24 if (parent && !(flags & FnScope)) { in setFlags()
42 if ((Flags & (FnScope | ClassScope | BlockScope | TemplateParamScope | in setFlags()
57 if (flags & FnScope) FnParent = this; in setFlags()
60 if (Flags & (ClassScope | FnScope)) { in setFlags()
146 {FnScope, "FnScope"}, in dumpImpl()
H A DSemaStmtAttr.cpp37 auto *FnScope = S.getCurFunction(); in handleFallThroughAttr() local
38 if (FnScope->SwitchStack.empty()) { in handleFallThroughAttr()
49 FnScope->setHasFallthroughStmt(); in handleFallThroughAttr()
H A DSemaCoroutine.cpp796 while (S && !(S->getFlags() & Scope::FnScope)) { in isWithinCatchScope()
H A DSemaExprCXX.cpp824 (Scope::FnScope | Scope::ClassScope | Scope::BlockScope | in ActOnCXXThrow()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DScope.h47 FnScope = 0x01, enumerator
367 bool isFunctionScope() const { return (getFlags() & Scope::FnScope); } in isFunctionScope()
434 else if (S->getFlags() & (Scope::FnScope | Scope::ClassScope | in isSwitchScope()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp542 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef() local
547 ParseFunctionTryBlock(LM.D, FnScope); in ParseLexedMethodDef()
561 FnScope.Exit(); in ParseLexedMethodDef()
581 ParseFunctionStatementBody(LM.D, FnScope); in ParseLexedMethodDef()
726 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
H A DParseTemplate.cpp1675 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef() local
1684 ParseFunctionTryBlock(LPT.D, FnScope); in ParseLateTemplatedFuncDef()
1698 ParseFunctionStatementBody(LPT.D, FnScope); in ParseLateTemplatedFuncDef()
H A DParser.cpp1227 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1258 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1277 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
2126 if (S->getFlags() & Scope::FnScope) { in handleUnexpectedCodeCompletionToken()
H A DParseOpenMP.cpp361 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
396 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
582 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective()
682 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII()
2284 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclarativeOrExecutableDirective()
H A DParseExpr.cpp3456 ParseScope BlockScope(this, Scope::BlockScope | Scope::FnScope | in ParseBlockLiteralExpression()
H A DParseExprCXX.cpp1458 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
H A DParseObjc.cpp3670 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
H A DParseDeclCXX.cpp3264 if ((S->getFlags() & Scope::FnScope)) in ParseCXXMemberSpecification()
H A DParsePragma.cpp747 ParseScope CapturedRegionScope(this, Scope::FnScope | Scope::DeclScope | in HandlePragmaCaptured()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DAttributor.h1151 const Function *FnScope = IRP.getAnchorScope();
1152 if (FnScope)
1153 Invalidate |= FnScope->hasFnAttribute(Attribute::Naked) ||
1154 FnScope->hasFnAttribute(Attribute::OptimizeNone);
1178 if (FnScope && !Functions.count(const_cast<Function *>(FnScope))) {
1179 if (!getInfoCache().isInModuleSlice(*FnScope)) {
2245 const Function *FnScope = IRP.getAnchorScope();
2253 if (IsFnInterface && (!FnScope || !A.isFunctionIPOAmendable(*FnScope)))
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfDebug.cpp2132 LexicalScope *FnScope = LScopes.getCurrentFunctionScope(); in endFunctionImpl() local
2133 assert(!FnScope || SP == FnScope->getScopeNode()); in endFunctionImpl()
2188 DIE &ScopeDIE = TheCU.constructSubprogramScopeDIE(SP, FnScope); in endFunctionImpl()
2192 SkelCU->constructSubprogramScopeDIE(SP, FnScope); in endFunctionImpl()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp3503 Function *FnScope = IRP.getAnchorScope(); in initialize() local
3504 if (IsFnInterface && (!FnScope || !A.isFunctionIPOAmendable(*FnScope))) { in initialize()