| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Program.h | 117 class DeclScope { 119 DeclScope(Program &P, const VarDecl *VD) : P(P) { P.startDeclaration(VD); } in DeclScope() function 120 ~DeclScope() { P.endDeclaration(); } in ~DeclScope() 134 friend class DeclScope;
|
| H A D | ByteCodeExprGen.cpp | 29 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()
|
| H A D | ByteCodeExprGen.h | 35 template <class Emitter> class DeclScope; variable 162 friend class DeclScope<Emitter>;
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/Parser/ |
| H A D | CodeComplete.h | 19 class DeclScope; variable 58 const ast::DeclScope *scope);
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | Scope.cpp | 73 if (flags & DeclScope) { in setFlags() 78 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags() 201 {DeclScope, "DeclScope"}, in dumpImpl()
|
| H A D | Sema.cpp | 2064 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) in getScopeForContext()
|
| H A D | SemaDeclCXX.cpp | 11657 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDirective() 11747 assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); in ActOnUsingDeclaration() 12957 assert((S->getFlags() & Scope::DeclScope) && in ActOnAliasDeclaration() 17184 Scope FakeDCScope(S, Scope::DeclScope, Diags); in ActOnFriendFunctionDecl()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/ |
| H A D | CodeComplete.cpp | 28 bool allowInlineTypeConstraints, const ast::DeclScope *scope) {} in codeCompleteConstraintName()
|
| H A D | Parser.cpp | 99 ast::DeclScope *pushDeclScope() { in pushDeclScope() 100 ast::DeclScope *newScope = in pushDeclScope() 101 new (scopeAllocator.Allocate()) ast::DeclScope(curDeclScope); in pushDeclScope() 104 void pushDeclScope(ast::DeclScope *scope) { curDeclScope = scope; } in pushDeclScope() 210 ArrayRef<ast::VariableDecl *> arguments, ast::DeclScope *argumentScope, 249 ast::DeclScope *&argumentScope, ast::Type &resultType); 551 ast::DeclScope *curDeclScope = nullptr; 552 llvm::SpecificBumpPtrAllocator<ast::DeclScope> scopeAllocator; 931 ast::DeclScope *argScope = pushDeclScope(); in createODSNativePDLLConstraintDecl() 1289 ast::DeclScope *argumentScope; in parseUserConstraintOrRewriteDecl() [all …]
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseStmt.cpp | 554 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock() 592 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock() 932 Scope::DeclScope | Scope::CompoundStmtScope); in ParseCompoundStatement() 1501 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement() 1552 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement() 1660 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement() 1750 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement() 1950 ScopeFlags = Scope::DeclScope | Scope::ControlScope; in ParseForStatement() 2233 ParseScope InnerScope(this, Scope::DeclScope, C99orCXXorObjC, in ParseForStatement() 2550 /*isStmtExpr=*/false, Scope::DeclScope | Scope::TryScope | in ParseCXXTryBlockCommon() [all …]
|
| H A D | ParseCXXInlineMethods.cpp | 318 Scopes.Enter(Scope::ClassScope|Scope::DeclScope); in ReenterClassScopeRAII() 353 Scope::DeclScope); in ParseLexedMethodDeclaration() 557 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef() 740 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
|
| H A D | ParseObjc.cpp | 1407 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl() 1919 ParseScope ClassScope(this, Scope::DeclScope | Scope::ClassScope); in ParseObjCClassInstanceVariables() 2486 ParseScope bodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCSynchronizedStmt() 2522 ParseScope TryScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt() 2543 ParseScope CatchScope(this, Scope::DeclScope | in ParseObjCTryStmt() 2591 Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt() 2641 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCAutoreleasePoolStmt() 3679 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
|
| H A D | Parser.cpp | 477 EnterScope(Scope::DeclScope); in Initialize() 1272 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition() 1303 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition() 1322 ParseScope BodyScope(this, Scope::FnScope | Scope::DeclScope | in ParseFunctionDefinition() 1462 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
|
| H A D | ParseOpenMP.cpp | 372 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective() 407 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective() 593 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective() 693 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII() 2488 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclarativeOrExecutableDirective() 4223 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList() 4366 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
|
| H A D | ParseDeclCXX.cpp | 224 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace() 271 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace() 351 ParseScope LinkageScope(this, Scope::DeclScope); in ParseLinkage() 434 ParseScope ExportScope(this, Scope::DeclScope); in ParseExportDeclaration() 3165 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in SkipCXXMemberSpecification() 3354 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in ParseCXXMemberSpecification() 3977 ParseScope ParamScope(this, Scope::DeclScope | in ParseTrailingRequiresClause()
|
| H A D | ParseTemplate.cpp | 1702 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef() 1722 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
|
| H A D | ParseExprCXX.cpp | 1401 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer() 1459 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer() 3419 Scope::DeclScope); in ParseRequiresExpression() 3449 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
|
| H A D | ParseDecl.cpp | 545 Scope::DeclScope); in ParseGNUAttributeArgs() 4436 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody() 4962 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody() 6387 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDirectDeclarator() 6605 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseParenDeclarator()
|
| H A D | ParseExpr.cpp | 3534 Scope::CompoundStmtScope | Scope::DeclScope); in ParseBlockLiteralExpression()
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/ |
| H A D | Nodes.h | 63 class DeclScope { 66 DeclScope(DeclScope *parent = nullptr) : parent(parent) {} in parent() 69 DeclScope *getParentScope() { return parent; } in getParentScope() 70 const DeclScope *getParentScope() const { return parent; } in getParentScope() 86 return const_cast<DeclScope *>(this)->lookup(name); in lookup() 95 DeclScope *parent;
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | CxxModuleHandler.cpp | 62 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Scope.h | 59 DeclScope = 0x08, enumerator
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/ |
| H A D | Nodes.cpp | 170 void DeclScope::add(Decl *decl) { in add() 177 Decl *DeclScope::lookup(StringRef name) { in lookup()
|
| /llvm-project-15.0.7/clang/lib/Interpreter/ |
| H A D | IncrementalParser.cpp | 165 P->EnterScope(Scope::DeclScope); in ParseOrWrapTopLevelDecl()
|
| /llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/ |
| H A D | PDLLServer.cpp | 812 const ast::DeclScope *scope) final { in codeCompleteConstraintName()
|