Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/lib/AST/Interp/
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;
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()
DByteCodeExprGen.h37 template <class Emitter> class DeclScope; variable
164 friend class DeclScope<Emitter>; variable
/external/clang/lib/Sema/
DScope.cpp74 if (flags & DeclScope) { in setFlags()
79 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags()
156 } else if (Flags & DeclScope) { in dumpImpl()
158 Flags &= ~DeclScope; in dumpImpl()
/external/llvm-project/clang/lib/Sema/
DScope.cpp73 if (flags & DeclScope) { in setFlags()
78 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags()
149 {DeclScope, "DeclScope"}, in dumpImpl()
/external/clang/lib/Parse/
DParseStmt.cpp446 Scope::DeclScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
484 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
832 return ParseCompoundStatement(isStmtExpr, Scope::DeclScope); in ParseCompoundStatement()
1141 ParseScope IfScope(this, Scope::DeclScope | Scope::ControlScope, C99orCXX); in ParseIfStatement()
1173 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseIfStatement()
1211 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1281 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1319 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseSwitchStatement()
1368 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
1390 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseWhileStatement()
[all …]
DParseCXXInlineMethods.cpp287 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope, in ParseLexedMethodDeclarations()
316 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseLexedMethodDeclaration()
486 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope, in ParseLexedMethodDefs()
523 ParseScope FnScope(this, Scope::FnScope|Scope::DeclScope); in ParseLexedMethodDef()
593 unsigned ScopeFlags = Scope::ClassScope|Scope::DeclScope; in ParseLexedMemberInitializers()
DParseObjc.cpp1413 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1927 ParseScope ClassScope(this, Scope::DeclScope|Scope::ClassScope); in ParseObjCClassInstanceVariables()
2507 ParseScope bodyScope(this, Scope::DeclScope); in ParseObjCSynchronizedStmt()
2543 ParseScope TryScope(this, Scope::DeclScope); in ParseObjCTryStmt()
2564 ParseScope CatchScope(this, Scope::DeclScope|Scope::AtCatchScope); in ParseObjCTryStmt()
2608 ParseScope FinallyScope(this, Scope::DeclScope); in ParseObjCTryStmt()
2645 ParseScope BodyScope(this, Scope::DeclScope); in ParseObjCAutoreleasePoolStmt()
3645 ? Scope::ObjCMethodScope|Scope::FnScope|Scope::DeclScope in ParseLexedObjCMethodDefs()
3646 : Scope::FnScope|Scope::DeclScope); in ParseLexedObjCMethodDefs()
DParser.cpp455 EnterScope(Scope::DeclScope); in Initialize()
1038 ParseScope BodyScope(this, Scope::FnScope|Scope::DeclScope); in ParseFunctionDefinition()
1068 ParseScope BodyScope(this, Scope::FnScope|Scope::DeclScope); in ParseFunctionDefinition()
1086 ParseScope BodyScope(this, Scope::FnScope|Scope::DeclScope); in ParseFunctionDefinition()
1207 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
DParseOpenMP.cpp290 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
325 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
394 FnScope = new Parser::ParseScope(&P, Scope::FnScope | Scope::DeclScope, in FNContextRAII()
788 Scope::FnScope | Scope::DeclScope | Scope::OpenMPDirectiveScope; in ParseOpenMPDeclarativeOrExecutableDirective()
DParseTemplate.cpp1364 TemplateParamScopeStack.push_back(new ParseScope(this, Scope::DeclScope)); in ParseLateTemplatedFuncDef()
1383 ParseScope FnScope(this, Scope::FnScope|Scope::DeclScope); in ParseLateTemplatedFuncDef()
DParseDeclCXX.cpp182 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace()
234 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace()
303 ParseScope LinkageScope(this, Scope::DeclScope); in ParseLinkage()
2812 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope); in SkipCXXMemberSpecification()
2983 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope); in ParseCXXMemberSpecification()
DParseDecl.cpp375 Scope::DeclScope)); in ParseGNUAttributeArgs()
1169 unsigned ScopeFlags = Scope::ClassScope|Scope::DeclScope; in ParseLexedAttributes()
1246 ParseScope FnScope(this, Scope::FnScope|Scope::DeclScope, HasFunScope); in ParseLexedAttribute()
3673 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
4165 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
5410 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator()
5543 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
/external/llvm-project/clang/lib/Parse/
DParseStmt.cpp491 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
529 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
875 Scope::DeclScope | Scope::CompoundStmtScope); in ParseCompoundStatement()
1366 ParseScope IfScope(this, Scope::DeclScope | Scope::ControlScope, C99orCXX); in ParseIfStatement()
1403 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement()
1447 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1523 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1563 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseSwitchStatement()
1612 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
1636 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseWhileStatement()
[all …]
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()
DParseObjc.cpp1397 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1909 ParseScope ClassScope(this, Scope::DeclScope|Scope::ClassScope); in ParseObjCClassInstanceVariables()
2475 ParseScope bodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCSynchronizedStmt()
2511 ParseScope TryScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2532 ParseScope CatchScope(this, Scope::DeclScope | in ParseObjCTryStmt()
2579 Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2629 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCAutoreleasePoolStmt()
3666 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
DParser.cpp476 EnterScope(Scope::DeclScope); in Initialize()
1227 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1258 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1277 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition()
1408 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
DParseOpenMP.cpp351 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
386 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
572 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective()
672 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII()
2149 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclarativeOrExecutableDirective()
3428 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
3572 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
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()
3066 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope); in SkipCXXMemberSpecification()
3251 ParseScope ClassScope(this, Scope::ClassScope|Scope::DeclScope); in ParseCXXMemberSpecification()
3867 Scope::DeclScope | in ParseTrailingRequiresClause()
DParseTemplate.cpp1655 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef()
1675 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
DParseExprCXX.cpp1311 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer()
1503 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
3387 Scope::DeclScope); in ParseRequiresExpression()
3417 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
DParseDecl.cpp478 Scope::DeclScope); in ParseGNUAttributeArgs()
4203 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
4731 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
6138 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator()
6356 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
/external/clang/include/clang/Sema/
DScope.h58 DeclScope = 0x08, enumerator
/external/llvm-project/clang/include/clang/Sema/
DScope.h59 DeclScope = 0x08, enumerator
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DCxxModuleHandler.cpp57 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()

12