Home
last modified time | relevance | path

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

12

/llvm-project/clang/lib/AST/Interp/
H A DProgram.h
H A DCompiler.h
H A DCompiler.cpp
/llvm-project/mlir/include/mlir/Tools/PDLL/Parser/
H A DCodeComplete.h20 class DeclScope; variable
56 const ast::DeclScope *scope);
/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.cpp2171 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) in PushFunctionScope()
/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp619 Scope::DeclScope | Scope::CompoundStmtScope | Scope::SEHTryScope)); in ParseSEHTryBlock()
657 ParseScope ExpectScope(this, Scope::DeclScope | Scope::ControlScope | in ParseSEHExceptBlock()
1026 Scope::DeclScope | Scope::CompoundStmtScope);
1577 ParseScope IfScope(this, Scope::DeclScope | Scope::ControlScope, C99orCXX); in ParseIfStatement()
1617 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, IsBracedThen); in ParseIfStatement()
1668 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, in ParseIfStatement()
1776 ScopeFlags |= Scope::DeclScope | Scope::ControlScope; in ParseSwitchStatement()
1816 ParseScope InnerScope(this, Scope::DeclScope, C99orCXX, Tok.is(tok::l_brace)); in ParseWhileStatement()
1865 Scope::DeclScope | Scope::ControlScope; in ParseWhileStatement()
1894 ParseScope InnerScope(this, Scope::DeclScope, C99orCX in ParseDoStatement()
[all...]
H A DParseCXXInlineMethods.cpp364 Scopes.Enter(Scope::ClassScope|Scope::DeclScope); in ReenterClassScopeRAII()
399 Scope::DeclScope); in ParseLexedMethodDeclaration()
621 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLexedMethodDef()
810 InDeclScope.Scopes.Enter(Scope::FnScope | Scope::DeclScope | in ParseLexedAttribute()
H A DParseObjc.cpp1459 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseObjCMethodDecl()
1966 ParseScope ClassScope(this, Scope::DeclScope | Scope::ClassScope); in ParseObjCClassInstanceVariables()
2556 ParseScope bodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCSynchronizedStmt()
2593 ParseScope TryScope(this, Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2614 ParseScope CatchScope(this, Scope::DeclScope | in ParseObjCTryStmt()
2662 Scope::DeclScope | Scope::CompoundStmtScope); in ParseObjCTryStmt()
2711 ParseScope BodyScope(this, Scope::DeclScope | Scope::CompoundStmtScope);
3748 Scope::FnScope | Scope::DeclScope | in ParseLexedObjCMethodDefs()
H A DParser.cpp493 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()
1554 Scope::FunctionDeclarationScope | Scope::DeclScope); in ParseKNRParamDeclarations()
H A DParseHLSL.cpp68 ParseScope BufferScope(this, Scope::DeclScope); in ParseHLSLBuffer()
H A DParseOpenMP.cpp378 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
414 ParseScope OMPDRScope(this, Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareReductionDirective()
598 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPDeclareMapperDirective()
701 Scopes.Enter(Scope::FnScope | Scope::DeclScope | in FNContextRAII()
2433 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope | in ParseOpenMPExecutableDirective()
2591 unsigned ScopeFlags = Scope::FnScope | Scope::DeclScope |
4682 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4795 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPVarList()
4903 EnterScope(Scope::OpenMPDirectiveScope | Scope::DeclScope); in ParseOpenMPExprListClause()
H A DParseDeclCXX.cpp229 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseNamespace()
277 ParseScope NamespaceScope(this, Scope::DeclScope); in ParseInnerNamespace()
357 ParseScope LinkageScope(this, Scope::DeclScope);
464 ParseScope ExportScope(this, Scope::DeclScope); in ParseExportDeclaration()
3605 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in ParseCXXClassMemberDeclarationWithPragmas()
3799 ParseScope ClassScope(this, Scope::ClassScope | Scope::DeclScope); in ParseCXXMemberSpecification()
4448 ParseScope ParamScope(this, Scope::DeclScope |
H A DParseExprCXX.cpp1377 ParseScope LambdaScope(this, Scope::LambdaScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
1472 Scope::DeclScope); in ParseLambdaExpressionAfterIntroducer()
1624 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
3632 Scope::DeclScope); in ParseRequiresExpression()
3661 ParseScope BodyScope(this, Scope::DeclScope); in ParseRequiresExpression()
H A DParseTemplate.cpp1646 Scopes.Enter(Scope::DeclScope); in ParseLateTemplatedFuncDef()
1671 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in ParseLateTemplatedFuncDef()
H A DParseDecl.cpp756 Scope::DeclScope); in ParseClangAttributeArgs()
5128 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope); in ParseStructUnionBody()
5680 ParseScope EnumScope(this, Scope::DeclScope | Scope::EnumScope); in ParseEnumBody()
6022 ParseScope FnScope(this, Scope::FnScope | Scope::DeclScope | in isDeclarationSpecifier()
7228 Scope::FunctionPrototypeScope|Scope::DeclScope| in ParseDecompositionDeclarator()
7518 Scope::FunctionPrototypeScope | Scope::DeclScope | in ParseFunctionDeclarator()
H A DParseExpr.cpp3833 Scope::CompoundStmtScope | Scope::DeclScope); in ParseBlockLiteralExpression()
/llvm-project/mlir/lib/Tools/PDLL/Parser/
H A DCodeComplete.cpp28 const ast::DeclScope *scope) {} in codeCompleteConstraintName()
H A DParser.cpp98 ast::DeclScope *pushDeclScope() { in pushDeclScope()
99 ast::DeclScope *newScope = in pushDeclScope()
100 new (scopeAllocator.Allocate()) ast::DeclScope(curDeclScope); in pushDeclScope()
103 void pushDeclScope(ast::DeclScope *scope) { curDeclScope = scope; } in pushDeclScope()
216 ArrayRef<ast::VariableDecl *> arguments, ast::DeclScope *argumentScope,
231 ArrayRef<ast::VariableDecl *> arguments, ast::DeclScope *argumentScope,
255 ast::DeclScope *&argumentScope, ast::Type &resultType);
553 ast::DeclScope *curDeclScope = nullptr;
554 llvm::SpecificBumpPtrAllocator<ast::DeclScope> scopeAllocator;
977 ast::DeclScope *argScop in createODSNativePDLLConstraintDecl()
[all...]
/llvm-project/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h64 class DeclScope {
67 DeclScope(DeclScope *parent = nullptr) : parent(parent) {} in parent()
70 DeclScope *getParentScope() { return parent; } in getParentScope()
71 const DeclScope *getParentScope() const { return parent; } in getParentScope()
87 return const_cast<DeclScope *>(this)->lookup(name); in lookup()
96 DeclScope *parent;
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp63 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()
/llvm-project/clang/include/clang/Sema/
H A DScope.h63 DeclScope = 0x08, enumerator
74 /// the FnScope and DeclScope flags set as well.
98 /// It always has FnScope and DeclScope set as well.
217 /// DeclScope, i.e. scope which can contain declarations.
/llvm-project/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp175 void DeclScope::add(Decl *decl) { in add()
182 Decl *DeclScope::lookup(StringRef name) { in lookup()
/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp59 P->EnterScope(Scope::DeclScope); in HandleInlineFunctionDefinition()
/llvm-project/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp769 const ast::DeclScope *scope) final { in codeCompleteConstraintName()

12