Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.h114 class DeclScope {
116 DeclScope(Program &P, const VarDecl *VD) : P(P) { P.startDeclaration(VD); } in DeclScope() function
117 ~DeclScope() { P.endDeclaration(); } in ~DeclScope()
131 friend class DeclScope;
H A DByteCodeExprGen.cpp29 template <class Emitter> class DeclScope final : public LocalScope<Emitter> { class
31 DeclScope(ByteCodeExprGen<Emitter> *Ctx, const VarDecl *VD) in DeclScope() function in clang::interp::DeclScope
39 Program::DeclScope Scope;
491 Program::DeclScope Scope(P, VD); in getGlobalIdx()
538 DeclScope<Emitter> LocalScope(this, VD); in visitDecl()
552 DeclScope<Emitter> LocalScope(this, VD); in visitDecl()
H A DByteCodeExprGen.h37 template <class Emitter> class DeclScope; variable
164 friend class DeclScope<Emitter>;
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DScope.cpp73 if (flags & DeclScope) { in setFlags()
78 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags()
149 {DeclScope, "DeclScope"}, in dumpImpl()
H A DSema.cpp1958 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) in getScopeForContext()
H A DSemaDeclCXX.cpp11457 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDirective()
11547 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDeclaration()
12757 assert((S->getFlags() & Scope::DeclScope) && in ActOnAliasDeclaration()
16930 Scope FakeDCScope(S, Scope::DeclScope, Diags); in ActOnFriendFunctionDecl()
H A DSemaDecl.cpp1975 assert((S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) && in ActOnPopScope()
2079 while (((S->getFlags() & Scope::DeclScope) == 0) || in getNonFieldDeclScope()
5792 while ((S->getFlags() & Scope::DeclScope) == 0 || in HandleDeclarator()
8997 ((S->getFlags() & Scope::DeclScope) == 0) || in getTagInjectionScope()
H A DSemaTemplate.cpp7926 while ((S->getFlags() & Scope::DeclScope) == 0 || in CheckTemplateDeclScope()
9949 while ((S->getFlags() & Scope::DeclScope) == 0 || in ActOnExplicitInstantiation()
H A DSemaLookup.cpp1924 while (!(S->getFlags() & Scope::DeclScope) || in LookupName()
H A DSemaCodeComplete.cpp4322 (S->getFlags() & Scope::DeclScope) != 0 && in CodeCompleteDeclSpec()
H A DSemaExpr.cpp13297 const unsigned ForInitFlags = Scope::ControlScope | Scope::DeclScope; in DiagnoseCommaOperator()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp506 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
544 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
883 Scope::DeclScope | Scope::CompoundStmtScope); in ParseCompoundStatement()
1411 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement()
1455 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1531 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1620 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
1810 ScopeFlags = Scope::DeclScope | Scope::ControlScope; in ParseForStatement()
2082 ParseScope InnerScope(this, Scope::DeclScope, C99orCXXorObjC, in ParseForStatement()
2398 /*isStmtExpr=*/false, Scope::DeclScope | Scope::TryScope | in ParseCXXTryBlockCommon()
[all …]
H A DParseCXXInlineMethods.cpp304 Scopes.Enter(Scope::ClassScope|Scope::DeclScope); in ReenterClassScopeRAII()
339 Scope::DeclScope); in ParseLexedMethodDeclaration()
542 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef()
726 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
H A DParseObjc.cpp1401 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1911 ParseScope ClassScope(this, Scope::DeclScope|Scope::ClassScope); in ParseObjCClassInstanceVariables()
2479 ParseScope bodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCSynchronizedStmt()
2515 ParseScope TryScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2536 ParseScope CatchScope(this, Scope::DeclScope | in ParseObjCTryStmt()
2583 Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2633 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCAutoreleasePoolStmt()
3670 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
H A DParser.cpp477 EnterScope(Scope::DeclScope); in Initialize()
1230 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1261 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1280 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1411 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
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()
2287 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclarativeOrExecutableDirective()
3788 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
3932 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
H A DParseDeclCXX.cpp212 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace()
259 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace()
339 ParseScope LinkageScope(this, Scope::DeclScope); in ParseLinkage()
422 ParseScope ExportScope(this, Scope::DeclScope); in ParseExportDeclaration()
3154 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope); in SkipCXXMemberSpecification()
3340 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope); in ParseCXXMemberSpecification()
3971 Scope::DeclScope | in ParseTrailingRequiresClause()
H A DParseTemplate.cpp1655 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef()
1675 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
H A DParseExprCXX.cpp1400 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer()
1458 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
3373 Scope::DeclScope); in ParseRequiresExpression()
3403 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
H A DParseDecl.cpp502 Scope::DeclScope); in ParseGNUAttributeArgs()
4279 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
4805 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
6215 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator()
6433 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
H A DParseExpr.cpp3487 Scope::CompoundStmtScope | Scope::DeclScope); in ParseBlockLiteralExpression()
H A DParsePragma.cpp747 ParseScope CapturedRegionScope(this, Scope::FnScope | Scope::DeclScope | in HandlePragmaCaptured()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DScope.h59 DeclScope = 0x08, enumerator
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp61 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()
/freebsd-13.1/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp160 P->EnterScope(Scope::DeclScope); in ParseOrWrapTopLevelDecl()