Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/clang/lib/AST/Interp/
H A DProgram.h132 class DeclScope {
134 DeclScope(Program &P, const VarDecl *VD) : P(P) { P.startDeclaration(VD); } in DeclScope() function
135 ~DeclScope() { P.endDeclaration(); } in ~DeclScope()
149 friend class DeclScope;
H A DByteCodeExprGen.h34 template <class Emitter> class DeclScope; variable
182 friend class DeclScope<Emitter>;
H A DByteCodeExprGen.cpp28 template <class Emitter> class DeclScope final : public LocalScope<Emitter> { class
30 DeclScope(ByteCodeExprGen<Emitter> *Ctx, const VarDecl *VD) in DeclScope() function in clang::interp::DeclScope
38 Program::DeclScope Scope;
1165 DeclScope<Emitter> LocalScope(this, VD); in visitVarDecl()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DScope.cpp76 if (flags & DeclScope) { in setFlags()
81 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags()
204 {DeclScope, "DeclScope"}, in dumpImpl()
H A DSema.cpp2101 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) in getScopeForContext()
H A DSemaDeclCXX.cpp11755 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDirective()
11845 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDeclaration()
13066 assert((S->getFlags() & Scope::DeclScope) && in ActOnAliasDeclaration()
17393 Scope FakeDCScope(S, Scope::DeclScope, Diags); in ActOnFriendFunctionDecl()
H A DSemaDecl.cpp2216 assert((S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) && in ActOnPopScope()
2352 while (((S->getFlags() & Scope::DeclScope) == 0) || in getNonFieldDeclScope()
6245 while ((S->getFlags() & Scope::DeclScope) == 0 || in HandleDeclarator()
9542 ((S->getFlags() & Scope::DeclScope) == 0) || in getTagInjectionScope()
H A DSemaTemplate.cpp8238 while ((S->getFlags() & Scope::DeclScope) == 0 || in CheckTemplateDeclScope()
10305 while ((S->getFlags() & Scope::DeclScope) == 0 || in ActOnExplicitInstantiation()
H A DSemaLookup.cpp2191 while (!(S->getFlags() & Scope::DeclScope) || in LookupName()
H A DSemaCodeComplete.cpp4476 (S->getFlags() & Scope::DeclScope) != 0 && in CodeCompleteDeclSpec()
/openbsd/gnu/llvm/clang/lib/Parse/
H A DParseStmt.cpp569 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
607 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
949 Scope::DeclScope | Scope::CompoundStmtScope); in ParseCompoundStatement()
1525 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement()
1576 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1684 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1773 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
1972 ScopeFlags = Scope::DeclScope | Scope::ControlScope; in ParseForStatement()
2255 ParseScope InnerScope(this, Scope::DeclScope, C99orCXXorObjC, in ParseForStatement()
2574 /*isStmtExpr=*/false, Scope::DeclScope | Scope::TryScope | in ParseCXXTryBlockCommon()
[all …]
H A DParseCXXInlineMethods.cpp318 Scopes.Enter(Scope::ClassScope|Scope::DeclScope); in ReenterClassScopeRAII()
353 Scope::DeclScope); in ParseLexedMethodDeclaration()
557 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef()
745 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
H A DParseHLSL.cpp67 ParseScope BufferScope(this, Scope::DeclScope); in ParseHLSLBuffer()
H A DParseObjc.cpp1439 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1951 ParseScope ClassScope(this, Scope::DeclScope | Scope::ClassScope); in ParseObjCClassInstanceVariables()
2532 ParseScope bodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCSynchronizedStmt()
2568 ParseScope TryScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2589 ParseScope CatchScope(this, Scope::DeclScope | in ParseObjCTryStmt()
2637 Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2687 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCAutoreleasePoolStmt()
3724 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
H A DParser.cpp477 EnterScope(Scope::DeclScope); in Initialize()
1305 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1336 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1355 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1495 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
H A DParseOpenMP.cpp373 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
408 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
590 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective()
690 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII()
2500 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclarativeOrExecutableDirective()
4373 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4434 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4539 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
H A DParseDeclCXX.cpp226 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace()
274 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace()
354 ParseScope LinkageScope(this, Scope::DeclScope); in ParseLinkage()
441 ParseScope ExportScope(this, Scope::DeclScope); in ParseExportDeclaration()
3258 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in SkipCXXMemberSpecification()
3447 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in ParseCXXMemberSpecification()
4069 ParseScope ParamScope(this, Scope::DeclScope | in ParseTrailingRequiresClause()
H A DParseTemplate.cpp1721 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef()
1741 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
H A DParseExprCXX.cpp1454 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer()
1512 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
3481 Scope::DeclScope); in ParseRequiresExpression()
3511 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
H A DParseDecl.cpp543 Scope::DeclScope); in ParseGNUAttributeArgs()
4525 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
5059 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
6523 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator()
6759 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
H A DParseExpr.cpp3568 Scope::CompoundStmtScope | Scope::DeclScope); in ParseBlockLiteralExpression()
H A DParsePragma.cpp842 ParseScope CapturedRegionScope(this, Scope::FnScope | Scope::DeclScope | in HandlePragmaCaptured()
/openbsd/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp63 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()
/openbsd/gnu/llvm/clang/include/clang/Sema/
H A DScope.h60 DeclScope = 0x08, enumerator
/openbsd/gnu/llvm/clang/lib/Interpreter/
H A DIncrementalParser.cpp168 P->EnterScope(Scope::DeclScope); in ParseOrWrapTopLevelDecl()

12