Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.h132 class DeclScope {
134 DeclScope(Program &P, const ValueDecl *VD) : P(P) { in DeclScope() function
137 ~DeclScope() { P.endDeclaration(); } in ~DeclScope()
151 friend class DeclScope;
H A DByteCodeExprGen.h35 template <class Emitter> class DeclScope; variable
223 friend class DeclScope<Emitter>;
H A DByteCodeExprGen.cpp28 template <class Emitter> class DeclScope final : public VariableScope<Emitter> { class
30 DeclScope(ByteCodeExprGen<Emitter> *Ctx, const ValueDecl *VD) in DeclScope() function in clang::interp::DeclScope
40 ~DeclScope() { this->Ctx->GlobalDecl = OldGlobalDecl; } in ~DeclScope()
43 Program::DeclScope Scope;
2418 DeclScope<Emitter> LocalScope(this, VD); in visitVarDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DScope.cpp78 if (flags & DeclScope) { in setFlags()
83 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags()
206 {DeclScope, "DeclScope"}, in dumpImpl()
H A DSema.cpp2143 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) in getScopeForContext()
H A DSemaDeclCXX.cpp12194 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDirective()
12284 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDeclaration()
13505 assert((S->getFlags() & Scope::DeclScope) && in ActOnAliasDeclaration()
18036 Scope FakeDCScope(S, Scope::DeclScope, Diags); in ActOnFriendFunctionDecl()
H A DSemaDecl.cpp2262 assert((S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) && in ActOnPopScope()
2404 while (((S->getFlags() & Scope::DeclScope) == 0) || in getNonFieldDeclScope()
6382 while ((S->getFlags() & Scope::DeclScope) == 0 || in HandleDeclarator()
9775 ((S->getFlags() & Scope::DeclScope) == 0) || in getTagInjectionScope()
H A DSemaLookup.cpp2194 while (!(S->getFlags() & Scope::DeclScope) || in LookupName()
H A DSemaTemplate.cpp8536 while ((S->getFlags() & Scope::DeclScope) == 0 || in CheckTemplateDeclScope()
10609 while ((S->getFlags() & Scope::DeclScope) == 0 || in ActOnExplicitInstantiation()
H A DSemaCodeComplete.cpp4557 (S->getFlags() & Scope::DeclScope) != 0 && in CodeCompleteDeclSpec()
/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp597 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
635 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
996 Scope::DeclScope | Scope::CompoundStmtScope); in ParseCompoundStatement()
1575 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement()
1626 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1734 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1823 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
2023 ScopeFlags = Scope::DeclScope | Scope::ControlScope; in ParseForStatement()
2319 ParseScope InnerScope(this, Scope::DeclScope, C99orCXXorObjC, in ParseForStatement()
2638 /*isStmtExpr=*/false, Scope::DeclScope | Scope::TryScope | in ParseCXXTryBlockCommon()
[all …]
H A DParseCXXInlineMethods.cpp320 Scopes.Enter(Scope::ClassScope|Scope::DeclScope); in ReenterClassScopeRAII()
355 Scope::DeclScope); in ParseLexedMethodDeclaration()
560 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef()
748 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
H A DParseHLSL.cpp67 ParseScope BufferScope(this, Scope::DeclScope); in ParseHLSLBuffer()
H A DParseObjc.cpp1452 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1964 ParseScope ClassScope(this, Scope::DeclScope | Scope::ClassScope); in ParseObjCClassInstanceVariables()
2545 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()
2700 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCAutoreleasePoolStmt()
3737 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
H A DParser.cpp492 EnterScope(Scope::DeclScope); in Initialize()
1349 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1380 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1399 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1550 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
H A DParseOpenMP.cpp374 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
409 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
591 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective()
691 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII()
2502 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclarativeOrExecutableDirective()
4492 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4605 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4710 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
H A DParseDeclCXX.cpp228 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace()
276 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace()
356 ParseScope LinkageScope(this, Scope::DeclScope); in ParseLinkage()
443 ParseScope ExportScope(this, Scope::DeclScope); in ParseExportDeclaration()
3316 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in SkipCXXMemberSpecification()
3507 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in ParseCXXMemberSpecification()
4133 ParseScope ParamScope(this, Scope::DeclScope | in ParseTrailingRequiresClause()
H A DParseExprCXX.cpp1284 ParseScope LambdaScope(this, Scope::LambdaScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
1370 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer()
1520 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
3497 Scope::DeclScope); in ParseRequiresExpression()
3526 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
H A DParseTemplate.cpp1748 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef()
1773 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
H A DParseDecl.cpp642 Scope::DeclScope); in ParseGNUAttributeArgs()
4706 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
5247 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
6745 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator()
6991 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
H A DParseExpr.cpp3688 Scope::CompoundStmtScope | Scope::DeclScope); in ParseBlockLiteralExpression()
H A DParsePragma.cpp941 ParseScope CapturedRegionScope(this, Scope::FnScope | Scope::DeclScope | in HandlePragmaCaptured()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp63 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DScope.h60 DeclScope = 0x08, enumerator
/freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp265 P->EnterScope(Scope::DeclScope); in ParseOrWrapTopLevelDecl()

12