Home
last modified time | relevance | path

Searched refs:CurScope (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.h159 std::unique_ptr<TGVarScope> CurScope; variable
202 CurScope = std::make_unique<TGVarScope>(std::move(CurScope)); in PushScope()
206 return CurScope.get(); in PushScope()
209 CurScope = std::make_unique<TGVarScope>(std::move(CurScope), Rec); in PushScope()
210 return CurScope.get(); in PushScope()
213 CurScope = std::make_unique<TGVarScope>(std::move(CurScope), Loop); in PushScope()
214 return CurScope.get(); in PushScope()
217 CurScope = std::make_unique<TGVarScope>(std::move(CurScope), Multiclass); in PushScope()
218 return CurScope.get(); in PushScope()
221 assert(ExpectedStackTop == CurScope.get() && in PopScope()
[all …]
H A DTGParser.cpp1155 if (Init *I = CurScope->getVar(Records, CurMultiClass, Name, NameLoc, in ParseIDValue()
3262 if (!ParsingTemplateArgs && CurScope->varAlreadyDefined(Str)) { in ParseDeclaration()
3721 if (CurScope->varAlreadyDefined(DeclName->getValue())) in ParseDefvar()
3733 if (CurScope->isOutermost() && Records.getGlobal(DeclName->getValue())) in ParseDefvar()
3747 if (!CurScope->isOutermost()) in ParseDefvar()
3748 CurScope->addVar(DeclName->getValue(), Value); in ParseDefvar()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DScopedHashTable.h165 ScopeTy *CurScope = nullptr; variable
174 assert(!CurScope && TopLevelMap.empty() && "Scope imbalance!"); in ~ScopedHashTable()
194 insertIntoScope(CurScope, Key, Val); in insert()
208 ScopeTy *getCurScope() { return CurScope; } in getCurScope()
209 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope()
229 PrevScope = HT.CurScope; in ScopedHashTableScope()
230 HT.CurScope = this; in ScopedHashTableScope()
236 assert(HT.CurScope == this && "Scope imbalance!"); in ~ScopedHashTableScope()
237 HT.CurScope = PrevScope; in ~ScopedHashTableScope()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp917 Declarator &ParamInfo, Scope *CurScope, in getLambdaType() argument
1079 if (CurScope->getTemplateParamParent() != nullptr) { in ActOnLambdaExpressionAfterIntroducer()
1081 } else if (Scope *P = CurScope->getParent()) { in ActOnLambdaExpressionAfterIntroducer()
1110 PushDeclContext(CurScope, Method); in ActOnLambdaExpressionAfterIntroducer()
1236 LookupName(R, CurScope); in ActOnLambdaExpressionAfterIntroducer()
1243 if (DiagnoseEmptyLookup(CurScope, ScopeSpec, R, Validator)) in ActOnLambdaExpressionAfterIntroducer()
1450 ProcessDeclAttributes(CurScope, Method, ParamInfo); in ActOnStartOfLambdaDefinition()
1467 PushOnScopeChains(Var, CurScope, false); in ActOnStartOfLambdaDefinition()
1487 CheckShadow(CurScope, P); in ActOnStartOfLambdaDefinition()
1488 PushOnScopeChains(P, CurScope); in ActOnStartOfLambdaDefinition()
[all …]
H A DSemaStmt.cpp553 Stmt *SubStmt, Scope *CurScope) { in ActOnDefaultStmt() argument
2150 Scope *BreakParent = CurScope->getBreakParent(); in CheckBreakContinueBinding()
2158 } else if (BCFinder.ContinueFound() && CurScope->getContinueParent()) { in CheckBreakContinueBinding()
3181 Sema::ActOnContinueStmt(SourceLocation ContinueLoc, Scope *CurScope) { in ActOnContinueStmt() argument
3182 Scope *S = CurScope->getContinueParent(); in ActOnContinueStmt()
3208 Sema::ActOnBreakStmt(SourceLocation BreakLoc, Scope *CurScope) { in ActOnBreakStmt() argument
3209 Scope *S = CurScope->getBreakParent(); in ActOnBreakStmt()
3737 Scope *CurScope) { in ActOnReturnStmt() argument
3758 CurScope->updateNRVOCandidate(VD); in ActOnReturnStmt()
3760 CheckJumpOutOfSEHFinally(*this, ReturnLoc, *CurScope->getFnParent()); in ActOnReturnStmt()
[all …]
H A DSemaOpenMP.cpp176 Scope *CurScope = nullptr; member
230 Scope *CurScope, SourceLocation Loc) in SharingMapTy()
231 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy()
403 Scope *CurScope, SourceLocation Loc) { in push() argument
409 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push()
1007 return Top ? Top->CurScope : nullptr; in getCurScope()
1693 if (I->CurScope) { in isOpenMPLocal()
1694 Scope *TopScope = I->CurScope->getParent(); in isOpenMPLocal()
1695 Scope *CurScope = getCurScope(); in isOpenMPLocal() local
1696 while (CurScope && CurScope != TopScope && !CurScope->isDeclScope(D)) in isOpenMPLocal()
[all …]
H A DSemaObjC.cpp270 Scope *CurScope) { in ActOnObjCAtThrowStmt() argument
277 Scope *AtCatchParent = CurScope; in ActOnObjCAtThrowStmt()
H A DSemaLookup.cpp4370 Scope *S = CurScope; in LookupOrCreateLabel()
4376 Res = LookupSingleName(CurScope, II, Loc, LookupLabel, in LookupOrCreateLabel()
4385 Scope *S = CurScope->getFnParent(); in LookupOrCreateLabel()
H A DSemaExpr.cpp15932 void Sema::ActOnBlockStart(SourceLocation CaretLoc, Scope *CurScope) { in ActOnBlockStart() argument
15946 PushBlockScope(CurScope, Block); in ActOnBlockStart()
15948 if (CurScope) in ActOnBlockStart()
15949 PushDeclContext(CurScope, Block); in ActOnBlockStart()
15962 Scope *CurScope) { in ActOnBlockArguments() argument
16062 ProcessDeclAttributes(CurScope, CurBlock->TheDecl, ParamInfo); in ActOnBlockArguments()
16080 void Sema::ActOnBlockError(SourceLocation CaretLoc, Scope *CurScope) { in ActOnBlockError() argument
16091 Stmt *Body, Scope *CurScope) { in ActOnBlockStmtExpr() argument
H A DSema.cpp223 CurScope(nullptr), Ident_super(nullptr), in Sema()
H A DSemaTemplate.cpp4656 LookupParsedName(Result, CurScope, &SS, /*ObjectType=*/QualType()); in CheckTemplateTypeArgument()
10493 LookupName(Result, CurScope); in CheckTypenameType()
H A DSemaExprCXX.cpp9229 TypeResult T = ActOnTypenameType(CurScope, TypenameKWLoc, SS, in ActOnTypeRequirement()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParser.cpp62 Actions.CurScope = nullptr; in Parser()
424 Actions.CurScope = N; in EnterScope()
426 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
439 Actions.CurScope = OldScope->getParent(); in ExitScope()
451 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags()
452 if (CurScope) { in ParseScopeFlags()
453 OldFlags = CurScope->getFlags(); in ParseScopeFlags()
454 CurScope->setFlags(ScopeFlags); in ParseScopeFlags()
461 if (CurScope) in ~ParseScopeFlags()
462 CurScope->setFlags(OldFlags); in ~ParseScopeFlags()
[all …]
H A DParseHLSL.cpp101 Actions.ProcessDeclAttributeList(Actions.CurScope, D, Attrs); in ParseHLSLBuffer()
H A DParseDeclCXX.cpp844 Scope *CurScope = getCurScope(); in ParseUsingDeclaration() local
845 if (CurScope) in ParseUsingDeclaration()
846 CurScope->setFlags(Scope::ScopeFlags::TypeAliasScope | in ParseUsingDeclaration()
847 CurScope->getFlags()); in ParseUsingDeclaration()
H A DParseCXXInlineMethods.cpp813 Actions.ActOnReenterFunctionContext(Actions.CurScope, D); in ParseLexedAttribute()
H A DParseStmt.cpp803 Actions.ProcessDeclAttributeList(Actions.CurScope, LD, Attrs); in ParseLabeledStatement()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaOpenMP.h196 const DeclarationNameInfo &DirName, Scope *CurScope,
220 ExprResult ActOnOpenMPIdExpression(Scope *CurScope, CXXScopeSpec &ScopeSpec,
342 NamedDecl *lookupOpenMPDeclareTargetName(Scope *CurScope,
380 void ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope);
H A DSema.h803 Scope *getCurScope() const { return CurScope; } in getCurScope()
968 return CurScope->incrementMSManglingNumber(); in incrementMSManglingNumber()
1290 Scope *CurScope; variable
4821 Decl *ActOnUsingDirective(Scope *CurScope, SourceLocation UsingLoc,
4829 Decl *ActOnNamespaceAliasDef(Scope *CurScope, SourceLocation NamespaceLoc,
4936 Decl *ActOnUsingDeclaration(Scope *CurScope, AccessSpecifier AS,
4941 Decl *ActOnUsingEnumDeclaration(Scope *CurScope, AccessSpecifier AS,
4946 Decl *ActOnAliasDeclaration(Scope *CurScope, AccessSpecifier AS,
7128 void ActOnBlockStart(SourceLocation CaretLoc, Scope *CurScope);
7133 Scope *CurScope);
[all …]
H A DSemaObjC.h73 Scope *CurScope);
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DDecoderEmitter.cpp728 FixupList &CurScope = TableInfo.FixupStack.back(); in emitTableEntry() local
730 resolveTableFixups(Table, CurScope, Table.size()); in emitTableEntry()
731 CurScope.clear(); in emitTableEntry()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1244 Scope *CurScope; variable
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp7102 auto CurScope = GetScope(*ItCurrent); in verifyNoAliasScopeDecl() local
7107 GetScope(*ItNext) == CurScope); in verifyNoAliasScopeDecl()