Home
last modified time | relevance | path

Searched refs:getCurScope (Results 1 – 25 of 33) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Parse/
H A DParseObjc.cpp53 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
176 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
556 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
575 ObjCTypeParamListScope Scope(Actions, getCurScope()); in parseObjCTypeParamList()
639 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCInterfaceDeclList()
1863 getCurScope(), in parseObjCTypeArgsAndProtocolQualifiers()
1968 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCClassInstanceVariables()
2272 P.Actions.ActOnAtEnd(P.getCurScope(), AtEnd); in finish()
2356 getCurScope(), atLoc, propertyLoc, true, in ParseObjCPropertySynthesize()
2418 getCurScope(), atLoc, propertyLoc, false, in ParseObjCPropertyDynamic()
[all …]
H A DParseExpr.cpp163 Actions.CodeCompleteExpression(getCurScope(), in ParseAssignmentExpression()
1154 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
1184 getCurScope()->isInObjcMethodScope() && in ParseCastExpression()
1437 if (getCurScope()->getFnParent() == nullptr) in ParseCastExpression()
1738 Actions.CodeCompleteExpression(getCurScope(), in ParseCastExpression()
2881 if (!getCurScope()->getFnParent() && !getCurScope()->getBlockParent()) { in ParseParenExpression()
3061 getCurScope()->isInObjcMethodScope() && in ParseParenExpression()
3537 Actions.ActOnBlockStart(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
3562 Actions.ActOnBlockError(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
3607 Actions.ActOnBlockError(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
[all …]
H A DParseExprCXX.cpp359 Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
902 Actions.CodeCompleteObjCMessageReceiver(getCurScope()); in ParseLambdaIntroducer()
1285 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
1463 Actions.ActOnStartOfLambdaDefinition(Intro, D, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
1468 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
1479 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
2382 TNK = Actions.isTemplateName(getCurScope(), SS, in ParseUnqualifiedIdTemplateId()
2634 Actions.CodeCompleteOperatorName(getCurScope()); in ParseUnqualifiedIdOperator()
2748 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), D); in ParseUnqualifiedIdOperator()
2835 Actions.isCurrentClassName(*Id, getCurScope(), &SS)) { in ParseUnqualifiedId()
[all …]
H A DParser.cpp407 N->Init(getCurScope(), ScopeFlags); in EnterScope()
416 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
422 Scope *OldScope = getCurScope(); in ExitScope()
456 delete getCurScope(); in ~Parser()
478 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
916 getCurScope(), in ParseExternalDeclaration()
1274 Scope *ParentScope = getCurScope()->getParent(); in ParseFunctionDefinition()
1305 Scope *ParentScope = getCurScope()->getParent(); in ParseFunctionDefinition()
2078 getCurScope(), SS, in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
2183 Actions.CodeCompleteOrdinaryName(getCurScope(), in handleUnexpectedCodeCompletionToken()
[all …]
H A DParseDeclCXX.cpp68 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
157 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
158 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
159 getCurScope()->getFnParent()) { in ParseNamespace()
228 getCurScope(), InlineLoc, NamespaceLoc, IdentLoc, Ident, in ParseNamespace()
299 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
436 getCurScope(), ExportLoc, in ParseExportDeclaration()
483 Actions.CodeCompleteUsing(getCurScope()); in ParseUsingDirectiveOrDeclaration()
533 Actions.CodeCompleteUsingDirective(getCurScope()); in ParseUsingDirective()
1494 Actions.CodeCompleteTag(getCurScope(), TagType); in ParseClassSpecifier()
[all …]
H A DParseStmt.cpp520 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
663 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
776 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
1700 getCurScope()->AddFlags(Scope::BreakScope); in ParseSwitchStatement()
1706 getCurScope()->decrementMSManglingNumber(); in ParseSwitchStatement()
1968 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseForStatement()
2148 getCurScope(), ForLoc, SecondExpr.get(), in ParseForStatement()
2156 if (!getCurScope()->isContinueScope()) in ParseForStatement()
2241 getCurScope()->decrementMSManglingNumber(); in ParseForStatement()
2326 return Actions.ActOnBreakStmt(BreakLoc, getCurScope()); in ParseBreakStatement()
[all …]
H A DParseTemplate.cpp32 return Actions.getCurScope(); in ReenterTemplateScopes()
234 getCurScope(), AS, DS, ParsedAttributesView::none(), in ParseSingleDeclarationAfterTemplate()
447 return Actions.ActOnConceptDefinition(getCurScope(), in ParseConceptDefinition()
743 auto TNK = Actions.isTemplateName(getCurScope(), SS, in TryAnnotateTypeConstraint()
851 NamedDecl *NewDecl = Actions.ActOnTypeParameter(getCurScope(), in ParseTypeParameter()
1436 getCurScope(), SS, TemplateId->TemplateKWLoc, in AnnotateTemplateIdTokenAsType()
1519 getCurScope(), SS, in ParseTemplateTemplateArgument()
1705 Actions.PushDeclContext(Actions.getCurScope(), DC); in ParseLateTemplatedFuncDef()
1728 Actions.ActOnStartOfFunctionDef(getCurScope(), FunD); in ParseLateTemplatedFuncDef()
1812 getCurScope(), PotentialTemplateName, Less, Greater); in checkPotentialAngleBracket()
[all …]
H A DParseDecl.cpp68 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
2320 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2330 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2814 if (getCurScope()->isFunctionPrototypeScope()) in ParseImplicitInt()
3269 if (getCurScope()->getFnParent() || getCurScope()->getBlockParent()) in ParseDeclarationSpecifiers()
4487 Actions.ActOnField(getCurScope(), TagDecl, in ParseStructUnionBody()
5071 getCurScope(), attrs); in ParseEnumBody()
5086 bool CanBeBitfield = getCurScope()->isClassScope(); in ParseEnumBody()
6679 assert(getCurScope()->isFunctionPrototypeScope() && in ParseFunctionDeclarator()
6831 for (Decl *D : getCurScope()->decls()) { in ParseFunctionDeclarator()
[all …]
H A DParseCXXInlineMethods.cpp39 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
42 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
46 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef()
319 P.Actions.ActOnStartDelayedMemberDeclarations(P.getCurScope(), in ReenterClassScopeRAII()
326 P.Actions.ActOnFinishDelayedMemberDeclarations(P.getCurScope(), in ~ReenterClassScopeRAII()
347 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
358 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
518 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
559 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D); in ParseLexedMethodDef()
768 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
H A DParseInit.cpp255 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
292 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
H A DParseOpenMP.cpp89 P->getCurScope(), SS, NameInfo, Kind); in operator ()()
365 getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, AS); in ParseOpenMPDeclareReductionDirective()
376 Actions.ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D); in ParseOpenMPDeclareReductionDirective()
412 Actions.ActOnOpenMPDeclareReductionInitializerStart(getCurScope(), in ParseOpenMPDeclareReductionDirective()
445 return Actions.ActOnOpenMPDeclareReductionDirectiveEnd(getCurScope(), DRD, in ParseOpenMPDeclareReductionDirective()
457 Actions.CodeCompleteInitializer(getCurScope(), OmpPrivParm); in ParseOpenMPReductionInitializerForDecl()
600 getCurScope(), MapperType, Range.getBegin(), VName); in ParseOpenMPDeclareMapperDirective()
630 getCurScope(), Actions.getCurLexicalContext(), MapperId, MapperType, in ParseOpenMPDeclareMapperDirective()
695 Actions.ActOnReenterFunctionContext(Actions.getCurScope(), D); in FNContextRAII()
2930 Actions.ActOnOpenMPRegionStart(DKind, getCurScope()); in ParseOpenMPDeclarativeOrExecutableDirective()
[all …]
H A DParseStmtAsm.cpp662 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
H A DParseTentative.cpp2167 getCurScope(), &SS)) in isExplicitBool()
H A DParsePragma.cpp650 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
713 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump()
838 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default, in HandlePragmaCaptured()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DScopedHashTable.h208 ScopeTy *getCurScope() { return CurScope; } in getCurScope() function
209 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope() function
/llvm-project-15.0.7/clang/lib/Interpreter/
H A DIncrementalParser.cpp166 S.ActOnTranslationUnitScope(P->getCurScope()); in ParseOrWrapTopLevelDecl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaPseudoObject.cpp1476 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet()
1486 return S.BuildCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1505 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet()
1518 return S.BuildCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
H A DSemaStmtAsm.cpp778 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
830 if (LookupName(BaseResult, getCurScope()) && BaseResult.isSingleResult()) in LookupInlineAsmField()
H A DSemaCoroutine.cpp780 if (isWithinCatchScope(S.getCurScope())) in checkSuspensionContext()
1431 S.BuildCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr()
1461 S.BuildCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr()
H A DSemaOpenMP.cpp963 Scope *getCurScope() const { in getCurScope() function in __anon296aa5740111::DSAStackTy
1639 Scope *CurScope = getCurScope(); in isOpenMPLocal()
4931 if (Stack->getCurScope()) { in checkNestingOfRegions()
7378 if (LookupName(Result, getCurScope())) { in checkOpenMPDeclareVariantFunction()
9210 ISC.buildFinalCondition(DSA.getCurScope()); in checkOpenMPIterationSpace()
9251 DSA.getCurScope(), in checkOpenMPIterationSpace()
9256 DSA.getCurScope(), in checkOpenMPIterationSpace()
9585 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop()
11111 if (Scope *S = DSAStack->getCurScope()) { in ActOnOpenMPScanDirective()
14623 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective()
[all …]
H A DSemaCXXScopeSpec.cpp296 for (Scope *S = getCurScope(); S; S = S->getParent()) { in ActOnSuperScopeSpecifier()
H A DSemaStmt.cpp2591 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange()
2747 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
4461 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
H A DSemaExprMember.cpp1006 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
/llvm-project-15.0.7/mlir/lib/IR/
H A DAsmPrinter.cpp968 while (usedNames.getCurScope() != parentScope) { in SSANameState()
969 usedNames.getCurScope()->~UsedNamesScopeTy(); in SSANameState()
970 assert((usedNames.getCurScope() != nullptr || parentScope == nullptr) && in SSANameState()
988 while (usedNames.getCurScope() != nullptr) in SSANameState()
989 usedNames.getCurScope()->~UsedNamesScopeTy(); in SSANameState()
/llvm-project-15.0.7/clang/include/clang/Parse/
H A DParser.h448 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
2947 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
2954 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12