| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TGParser.h | 159 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 D | TGParser.cpp | 1155 if (const Init *I = CurScope->getVar(Records, CurMultiClass, Name, NameLoc, in ParseIDValue() 3348 if (!ParsingTemplateArgs && CurScope->varAlreadyDefined(Str)) { in ParseDeclaration() 3808 if (CurScope->varAlreadyDefined(DeclName->getValue())) in ParseDefvar() 3820 if (CurScope->isOutermost() && Records.getGlobal(DeclName->getValue())) in ParseDefvar() 3834 if (!CurScope->isOutermost()) in ParseDefvar() 3835 CurScope->addVar(DeclName->getValue(), Value); in ParseDefvar()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | ScopedHashTable.h | 165 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 D | SemaLambda.cpp | 938 Declarator &ParamInfo, Scope *CurScope, in getLambdaType() argument 1103 if (CurScope->getTemplateParamParent() != nullptr) { in ActOnLambdaExpressionAfterIntroducer() 1105 } else if (Scope *P = CurScope->getParent()) { in ActOnLambdaExpressionAfterIntroducer() 1136 PushDeclContext(CurScope, Method); in ActOnLambdaExpressionAfterIntroducer() 1262 LookupName(R, CurScope); in ActOnLambdaExpressionAfterIntroducer() 1269 if (DiagnoseEmptyLookup(CurScope, ScopeSpec, R, Validator)) in ActOnLambdaExpressionAfterIntroducer() 1477 ProcessDeclAttributes(CurScope, Method, ParamInfo); in ActOnStartOfLambdaDefinition() 1497 PushOnScopeChains(Var, CurScope, false); in ActOnStartOfLambdaDefinition() 1517 CheckShadow(CurScope, P); in ActOnStartOfLambdaDefinition() 1518 PushOnScopeChains(P, CurScope); in ActOnStartOfLambdaDefinition() [all …]
|
| H A D | SemaStmt.cpp | 579 Stmt *SubStmt, Scope *CurScope) { in ActOnDefaultStmt() argument 2249 Scope *BreakParent = CurScope->getBreakParent(); in CheckBreakContinueBinding() 2257 } else if (BCFinder.ContinueFound() && CurScope->getContinueParent()) { in CheckBreakContinueBinding() 3289 Sema::ActOnContinueStmt(SourceLocation ContinueLoc, Scope *CurScope) { in ActOnContinueStmt() argument 3290 Scope *S = CurScope->getContinueParent(); in ActOnContinueStmt() 3316 Sema::ActOnBreakStmt(SourceLocation BreakLoc, Scope *CurScope) { in ActOnBreakStmt() argument 3317 Scope *S = CurScope->getBreakParent(); in ActOnBreakStmt() 3847 Scope *CurScope) { in ActOnReturnStmt() argument 3878 CurScope->updateNRVOCandidate(VD); in ActOnReturnStmt() 3880 CheckJumpOutOfSEHFinally(*this, ReturnLoc, *CurScope->getFnParent()); in ActOnReturnStmt() [all …]
|
| H A D | SemaOpenMP.cpp | 173 Scope *CurScope = nullptr; member 227 Scope *CurScope, SourceLocation Loc) in SharingMapTy() 228 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy() 400 Scope *CurScope, SourceLocation Loc) { in push() argument 406 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push() 987 return Top ? Top->CurScope : nullptr; in getCurScope() 1669 if (I->CurScope) { in isOpenMPLocal() 1670 Scope *TopScope = I->CurScope->getParent(); in isOpenMPLocal() 1671 Scope *CurScope = getCurScope(); in isOpenMPLocal() local 1672 while (CurScope && CurScope != TopScope && !CurScope->isDeclScope(D)) in isOpenMPLocal() [all …]
|
| H A D | SemaOpenACC.cpp | 602 Scope *CurScope = SemaRef.getCurScope(); in CheckDeclReference() local 606 if (CurScope->getDepth() == 0) in CheckDeclReference() 609 while (CurScope) { in CheckDeclReference() 612 if (CurScope->isOpenACCLoopConstructScope()) in CheckDeclReference() 615 if (CurScope->isDeclScope(D)) { in CheckDeclReference() 621 CurScope = CurScope->getParent(); in CheckDeclReference()
|
| H A D | SemaObjC.cpp | 266 Scope *CurScope) { in ActOnObjCAtThrowStmt() argument 273 Scope *AtCatchParent = CurScope; in ActOnObjCAtThrowStmt()
|
| H A D | SemaLookup.cpp | 4465 Scope *S = CurScope; in LookupOrCreateLabel() 4471 Res = LookupSingleName(CurScope, II, Loc, LookupLabel, in LookupOrCreateLabel() 4480 Scope *S = CurScope->getFnParent(); in LookupOrCreateLabel()
|
| H A D | SemaExpr.cpp | 16298 void Sema::ActOnBlockStart(SourceLocation CaretLoc, Scope *CurScope) { in ActOnBlockStart() argument 16312 PushBlockScope(CurScope, Block); in ActOnBlockStart() 16314 if (CurScope) in ActOnBlockStart() 16315 PushDeclContext(CurScope, Block); in ActOnBlockStart() 16328 Scope *CurScope) { in ActOnBlockArguments() argument 16418 ProcessDeclAttributes(CurScope, CurBlock->TheDecl, ParamInfo); in ActOnBlockArguments() 16436 void Sema::ActOnBlockError(SourceLocation CaretLoc, Scope *CurScope) { in ActOnBlockError() argument 16447 Stmt *Body, Scope *CurScope) { in ActOnBlockStmtExpr() argument
|
| H A D | Sema.cpp | 281 StackHandler(Diags), CurScope(nullptr), Ident_super(nullptr), in Sema()
|
| H A D | SemaTemplate.cpp | 5037 LookupParsedName(Result, CurScope, &SS, /*ObjectType=*/QualType()); in CheckTemplateTypeArgument() 11057 LookupName(Result, CurScope); in CheckTypenameType()
|
| H A D | SemaExprCXX.cpp | 7838 TypeResult T = ActOnTypenameType(CurScope, TypenameKWLoc, SS, in ActOnTypeRequirement()
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | Parser.cpp | 66 Actions.CurScope = nullptr; in Parser() 424 Actions.CurScope = N; in EnterScope() 426 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope() 438 Actions.CurScope = OldScope->getParent(); in ExitScope() 448 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags() 449 if (CurScope) { in ParseScopeFlags() 450 OldFlags = CurScope->getFlags(); in ParseScopeFlags() 451 CurScope->setFlags(ScopeFlags); in ParseScopeFlags() 456 if (CurScope) in ~ParseScopeFlags() 457 CurScope->setFlags(OldFlags); in ~ParseScopeFlags() [all …]
|
| H A D | ParseHLSL.cpp | 78 Actions.ProcessDeclAttributeList(Actions.CurScope, D, Attrs); in ParseHLSLBuffer()
|
| H A D | ParseDeclCXX.cpp | 756 Scope *CurScope = getCurScope(); in ParseUsingDeclaration() local 757 if (CurScope) in ParseUsingDeclaration() 758 CurScope->setFlags(Scope::ScopeFlags::TypeAliasScope | in ParseUsingDeclaration() 759 CurScope->getFlags()); in ParseUsingDeclaration()
|
| H A D | ParseCXXInlineMethods.cpp | 770 Actions.ActOnReenterFunctionContext(Actions.CurScope, D); in ParseLexedAttribute()
|
| H A D | ParseStmt.cpp | 742 Actions.ProcessDeclAttributeList(Actions.CurScope, LD, Attrs); in ParseLabeledStatement()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaOpenMP.h | 197 const DeclarationNameInfo &DirName, Scope *CurScope, 221 ExprResult ActOnOpenMPIdExpression(Scope *CurScope, CXXScopeSpec &ScopeSpec, 343 NamedDecl *lookupOpenMPDeclareTargetName(Scope *CurScope, 381 void ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope);
|
| H A D | Sema.h | 1104 Scope *getCurScope() const { return CurScope; } in getCurScope() 1233 return CurScope->incrementMSManglingNumber(); in incrementMSManglingNumber() 1567 Scope *CurScope; variable 5236 Decl *ActOnUsingDirective(Scope *CurScope, SourceLocation UsingLoc, 5244 Decl *ActOnNamespaceAliasDef(Scope *CurScope, SourceLocation NamespaceLoc, 5351 Decl *ActOnUsingDeclaration(Scope *CurScope, AccessSpecifier AS, 5356 Decl *ActOnUsingEnumDeclaration(Scope *CurScope, AccessSpecifier AS, 5361 Decl *ActOnAliasDeclaration(Scope *CurScope, AccessSpecifier AS, 7553 void ActOnBlockStart(SourceLocation CaretLoc, Scope *CurScope); 7558 Scope *CurScope); [all …]
|
| H A D | SemaObjC.h | 75 Scope *CurScope);
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | DecoderEmitter.cpp | 776 FixupList &CurScope = TableInfo.FixupStack.back(); in emitTableEntry() local 778 resolveTableFixups(Table, CurScope, Table.size()); in emitTableEntry()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
| H A D | Parser.h | 844 Scope *CurScope; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Verifier.cpp | 7500 auto CurScope = GetScope(*ItCurrent); in verifyNoAliasScopeDecl() local 7505 GetScope(*ItNext) == CurScope); in verifyNoAliasScopeDecl()
|