Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DProgram.h144 class DeclScope {
146 DeclScope(Program &P) : P(P), PrevDecl(P.CurrentDeclaration) { in DeclScope() function
150 ~DeclScope() { P.CurrentDeclaration = PrevDecl; } in ~DeclScope()
165 friend class DeclScope;
H A DCompiler.h34 template <class Emitter> class DeclScope; variable
329 friend class DeclScope<Emitter>; variable
H A DCompiler.cpp39 template <class Emitter> class DeclScope final : public LocalScope<Emitter> { class
41 DeclScope(Compiler<Emitter> *Ctx, const ValueDecl *VD) in DeclScope() function in clang::interp::DeclScope
48 ~DeclScope() { in ~DeclScope()
54 Program::DeclScope Scope;
4594 DeclScope<Emitter> LS(this, VD); in visitDeclAndReturn()
4696 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.cpp2320 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) in getScopeForContext()
H A DSemaLookup.cpp2225 while (!(S->getFlags() & Scope::DeclScope) || in LookupName()
H A DSemaDecl.cpp2200 assert((S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) && in ActOnPopScope()
2279 while (((S->getFlags() & Scope::DeclScope) == 0) || in getNonFieldDeclScope()
9844 ((S->getFlags() & Scope::DeclScope) == 0) || in getTagInjectionScope()
H A DSemaDeclCXX.cpp12528 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDeclaration()
18348 Scope FakeDCScope(S, Scope::DeclScope, Diags); in ActOnFriendFunctionDecl()
H A DSemaCodeComplete.cpp4728 (S->getFlags() & Scope::DeclScope) != 0 && in CodeCompleteDeclSpec()
H A DSemaExpr.cpp14118 const unsigned ForInitFlags = Scope::ControlScope | Scope::DeclScope; in DiagnoseCommaOperator()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp567 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
600 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
947 Scope::DeclScope | Scope::CompoundStmtScope); in ParseCompoundStatement()
1453 ParseScope IfScope(this, Scope::DeclScope | Scope::ControlScope, C99orCXX); in ParseIfStatement()
1493 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement()
1544 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1648 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1688 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseSwitchStatement()
1733 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
1762 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseWhileStatement()
[all …]
H A DParseCXXInlineMethods.cpp351 Scopes.Enter(Scope::ClassScope|Scope::DeclScope); in ReenterClassScopeRAII()
382 Scope::DeclScope); in ParseLexedMethodDeclaration()
600 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef()
768 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
H A DParseObjc.cpp1228 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1704 ParseScope ClassScope(this, Scope::DeclScope | Scope::ClassScope); in ParseObjCClassInstanceVariables()
2240 ParseScope bodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCSynchronizedStmt()
2266 ParseScope TryScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2287 ParseScope CatchScope(this, Scope::DeclScope | in ParseObjCTryStmt()
2335 Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2381 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCAutoreleasePoolStmt()
3299 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
H A DParseHLSL.cpp68 ParseScope BufferScope(this, Scope::DeclScope); in ParseHLSLBuffer()
H A DParser.cpp486 EnterScope(Scope::DeclScope); in Initialize()
1278 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1309 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1328 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1481 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
H A DParseOpenMP.cpp249 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
285 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
464 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective()
638 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII()
2287 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPExecutableDirective()
2447 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPInformationalDirective()
4487 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4600 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4708 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
H A DParseDeclCXX.cpp202 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace()
249 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace()
319 ParseScope LinkageScope(this, Scope::DeclScope); in ParseLinkage()
412 ParseScope ExportScope(this, Scope::DeclScope); in ParseExportDeclaration()
3396 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in SkipCXXMemberSpecification()
3584 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in ParseCXXMemberSpecification()
4203 ParseScope ParamScope(this, Scope::DeclScope | in ParseTrailingRequiresClause()
H A DParseExprCXX.cpp1219 ParseScope LambdaScope(this, Scope::LambdaScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
1315 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer()
1467 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
3138 Scope::DeclScope); in ParseRequiresExpression()
3167 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
H A DParseTemplate.cpp1423 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef()
1448 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
H A DParseDecl.cpp682 Scope::DeclScope); in ParseGNUAttributeArgs()
4844 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
5356 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
5694 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseTopLevelStmtDecl()
6820 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator()
7102 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
H A DParseExpr.cpp3269 Scope::CompoundStmtScope | Scope::DeclScope); in ParseBlockLiteralExpression()
H A DParsePragma.cpp937 ParseScope CapturedRegionScope(this, Scope::FnScope | Scope::DeclScope | in HandlePragmaCaptured()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp60 P->EnterScope(Scope::DeclScope); in ParseOrWrapTopLevelDecl()
/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