Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.h133 class DeclScope {
135 DeclScope(Program &P, const ValueDecl *VD) : P(P) { in DeclScope() function
138 ~DeclScope() { P.endDeclaration(); } in ~DeclScope()
152 friend class DeclScope;
H A DCompiler.h34 template <class Emitter> class DeclScope; variable
300 friend class DeclScope<Emitter>; variable
H A DCompiler.cpp28 template <class Emitter> class DeclScope final : public LocalScope<Emitter> { class
30 DeclScope(Compiler<Emitter> *Ctx, const ValueDecl *VD) in DeclScope() function in clang::interp::DeclScope
43 ~DeclScope() { in ~DeclScope()
50 Program::DeclScope Scope;
3624 DeclScope<Emitter> LS(this, VD); in visitDeclAndReturn()
3698 DeclScope<Emitter> LocalScope(this, VD); in visitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DScope.cpp80 if (flags & DeclScope) { in setFlags()
86 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags()
209 {DeclScope, "DeclScope"}, in dumpImpl()
H A DSema.cpp2154 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) in getScopeForContext()
H A DSemaLookup.cpp2187 while (!(S->getFlags() & Scope::DeclScope) || in LookupName()
H A DSemaDecl.cpp2182 assert((S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) && in ActOnPopScope()
2261 while (((S->getFlags() & Scope::DeclScope) == 0) || in getNonFieldDeclScope()
9631 ((S->getFlags() & Scope::DeclScope) == 0) || in getTagInjectionScope()
H A DSemaDeclCXX.cpp12200 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDeclaration()
17811 Scope FakeDCScope(S, Scope::DeclScope, Diags); in ActOnFriendFunctionDecl()
H A DSemaCodeComplete.cpp4565 (S->getFlags() & Scope::DeclScope) != 0 && in CodeCompleteDeclSpec()
H A DSemaExpr.cpp13720 const unsigned ForInitFlags = Scope::ControlScope | Scope::DeclScope; in DiagnoseCommaOperator()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp609 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
647 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
1008 Scope::DeclScope | Scope::CompoundStmtScope); in ParseCompoundStatement()
1550 ParseScope IfScope(this, Scope::DeclScope | Scope::ControlScope, C99orCXX); in ParseIfStatement()
1590 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement()
1641 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1749 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1789 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseSwitchStatement()
1838 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
1862 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseWhileStatement()
[all …]
H A DParseCXXInlineMethods.cpp364 Scopes.Enter(Scope::ClassScope|Scope::DeclScope); in ReenterClassScopeRAII()
399 Scope::DeclScope); in ParseLexedMethodDeclaration()
621 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef()
811 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
H A DParseObjc.cpp1458 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1954 ParseScope ClassScope(this, Scope::DeclScope | Scope::ClassScope); in ParseObjCClassInstanceVariables()
2544 ParseScope bodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCSynchronizedStmt()
2581 ParseScope TryScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2602 ParseScope CatchScope(this, Scope::DeclScope | in ParseObjCTryStmt()
2650 Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2699 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCAutoreleasePoolStmt()
3736 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
H A DParseHLSL.cpp68 ParseScope BufferScope(this, Scope::DeclScope); in ParseHLSLBuffer()
H A DParser.cpp493 EnterScope(Scope::DeclScope); in Initialize()
1354 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1385 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1404 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1559 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
H A DParseOpenMP.cpp378 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
414 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
598 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective()
701 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII()
2428 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPExecutableDirective()
4435 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4548 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4655 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
H A DParseDeclCXX.cpp237 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace()
285 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace()
365 ParseScope LinkageScope(this, Scope::DeclScope); in ParseLinkage()
460 ParseScope ExportScope(this, Scope::DeclScope); in ParseExportDeclaration()
3494 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in SkipCXXMemberSpecification()
3688 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in ParseCXXMemberSpecification()
4337 ParseScope ParamScope(this, Scope::DeclScope | in ParseTrailingRequiresClause()
H A DParseExprCXX.cpp1360 ParseScope LambdaScope(this, Scope::LambdaScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
1455 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer()
1608 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
3611 Scope::DeclScope); in ParseRequiresExpression()
3640 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
H A DParseTemplate.cpp1634 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef()
1659 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
H A DParseDecl.cpp723 Scope::DeclScope); in ParseGNUAttributeArgs()
5080 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
5630 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
5968 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseTopLevelStmtDecl()
7154 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator()
7421 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
H A DParseExpr.cpp3789 Scope::CompoundStmtScope | Scope::DeclScope); in ParseBlockLiteralExpression()
H A DParsePragma.cpp949 ParseScope CapturedRegionScope(this, Scope::FnScope | Scope::DeclScope | in HandlePragmaCaptured()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp63 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScope.h63 DeclScope = 0x08, enumerator
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp265 P->EnterScope(Scope::DeclScope); in ParseOrWrapTopLevelDecl()