Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp58 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
198 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
591 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
610 ObjCTypeParamListScope Scope(Actions, getCurScope()); in parseObjCTypeParamList()
687 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCInterfaceDeclList()
1908 getCurScope(), in parseObjCTypeArgsAndProtocolQualifiers()
2013 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCClassInstanceVariables()
2331 P.Actions.ActOnAtEnd(P.getCurScope(), AtEnd); in finish()
2415 getCurScope(), atLoc, propertyLoc, true, in ParseObjCPropertySynthesize()
2477 getCurScope(), atLoc, propertyLoc, false, in ParseObjCPropertyDynamic()
[all …]
H A DParseExpr.cpp166 Actions.CodeCompleteExpression(getCurScope(), in ParseAssignmentExpression()
1183 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
1213 getCurScope()->isInObjcMethodScope() && in ParseCastExpression()
1481 if (getCurScope()->getFnParent() == nullptr) in ParseCastExpression()
1785 Actions.CodeCompleteExpression(getCurScope(), in ParseCastExpression()
3001 if (!getCurScope()->getFnParent() && !getCurScope()->getBlockParent()) { in ParseParenExpression()
3181 getCurScope()->isInObjcMethodScope() && in ParseParenExpression()
3691 Actions.ActOnBlockStart(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
3716 Actions.ActOnBlockError(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
3761 Actions.ActOnBlockError(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
[all …]
H A DParser.cpp422 N->Init(getCurScope(), ScopeFlags); in EnterScope()
431 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
437 Scope *OldScope = getCurScope(); in ExitScope()
471 delete getCurScope(); in ~Parser()
493 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
945 Actions.CodeCompleteObjCMethodDecl(getCurScope(), in ParseExternalDeclaration()
1351 Scope *ParentScope = getCurScope()->getParent(); in ParseFunctionDefinition()
1382 Scope *ParentScope = getCurScope()->getParent(); in ParseFunctionDefinition()
2170 getCurScope(), SS, in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
2275 Actions.CodeCompleteOrdinaryName(getCurScope(), in handleUnexpectedCodeCompletionToken()
[all …]
H A DParseExprCXX.cpp362 Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
905 Actions.CodeCompleteObjCMessageReceiver(getCurScope()); in ParseLambdaIntroducer()
1325 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
1438 Actions.ActOnLambdaClosureParameters(getCurScope(), ParamInfo); in ParseLambdaExpressionAfterIntroducer()
1529 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
1542 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
2451 TNK = Actions.isTemplateName(getCurScope(), SS, in ParseUnqualifiedIdTemplateId()
2703 Actions.CodeCompleteOperatorName(getCurScope()); in ParseUnqualifiedIdOperator()
2906 Actions.isCurrentClassName(*Id, getCurScope(), &SS)) { in ParseUnqualifiedId()
3099 if (Actions.ShouldEnterDeclaratorScope(getCurScope(), SS)) in ParseUnqualifiedId()
[all …]
H A DParseStmt.cpp550 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
706 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
844 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
1773 getCurScope()->AddFlags(Scope::BreakScope); in ParseSwitchStatement()
1779 getCurScope()->decrementMSManglingNumber(); in ParseSwitchStatement()
2041 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseForStatement()
2236 getCurScope(), ForLoc, SecondExpr.get(), in ParseForStatement()
2244 if (!getCurScope()->isContinueScope()) in ParseForStatement()
2327 getCurScope()->decrementMSManglingNumber(); in ParseForStatement()
2412 return Actions.ActOnBreakStmt(BreakLoc, getCurScope()); in ParseBreakStatement()
[all …]
H A DParseDeclCXX.cpp72 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
161 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
162 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
163 getCurScope()->getFnParent()) { in ParseNamespace()
304 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
445 getCurScope(), ExportLoc, in ParseExportDeclaration()
487 Actions.CodeCompleteUsing(getCurScope()); in ParseUsingDirectiveOrDeclaration()
537 Actions.CodeCompleteUsingDirective(getCurScope()); in ParseUsingDirective()
728 Actions.CodeCompleteUsing(getCurScope()); in ParseUsingDeclaration()
1566 Actions.CodeCompleteTag(getCurScope(), TagType); in ParseClassSpecifier()
[all …]
H A DParseTemplate.cpp33 return Actions.getCurScope(); in ReenterTemplateScopes()
246 getCurScope(), AS, DS, ParsedAttributesView::none(), in ParseSingleDeclarationAfterTemplate()
460 return Actions.ActOnConceptDefinition(getCurScope(), in ParseConceptDefinition()
756 auto TNK = Actions.isTemplateName(getCurScope(), SS, in TryAnnotateTypeConstraint()
871 NamedDecl *NewDecl = Actions.ActOnTypeParameter(getCurScope(), in ParseTypeParameter()
1476 getCurScope(), SS, TemplateId->TemplateKWLoc, in AnnotateTemplateIdTokenAsType()
1559 getCurScope(), SS, in ParseTemplateTemplateArgument()
1751 Actions.PushDeclContext(Actions.getCurScope(), DC); in ParseLateTemplatedFuncDef()
1779 Actions.ActOnStartOfFunctionDef(getCurScope(), FunD); in ParseLateTemplatedFuncDef()
1863 getCurScope(), PotentialTemplateName, Less, Greater); in checkPotentialAngleBracket()
[all …]
H A DParseDecl.cpp2478 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2488 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2976 if (getCurScope()->isFunctionPrototypeScope()) in ParseImplicitInt()
3466 Actions.CodeCompleteDeclSpec(getCurScope(), DS, in ParseDeclarationSpecifiers()
3478 else if (getCurScope()->getFnParent() || getCurScope()->getBlockParent()) in ParseDeclarationSpecifiers()
4762 Actions.ActOnField(getCurScope(), TagDecl, in ParseStructUnionBody()
5356 getCurScope(), attrs); in ParseEnumBody()
5371 bool CanBeBitfield = getCurScope()->isClassScope(); in ParseEnumBody()
7065 assert(getCurScope()->isFunctionPrototypeScope() && in ParseFunctionDeclarator()
7216 for (Decl *D : getCurScope()->decls()) { in ParseFunctionDeclarator()
[all …]
H A DParseCXXInlineMethods.cpp41 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
44 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
48 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef()
321 P.Actions.ActOnStartDelayedMemberDeclarations(P.getCurScope(), in ReenterClassScopeRAII()
328 P.Actions.ActOnFinishDelayedMemberDeclarations(P.getCurScope(), in ~ReenterClassScopeRAII()
349 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
360 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
521 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
562 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D); in ParseLexedMethodDef()
776 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
H A DParseInit.cpp257 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
294 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
H A DParseOpenMP.cpp91 P->getCurScope(), SS, NameInfo, Kind); in operator ()()
367 getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, AS); in ParseOpenMPDeclareReductionDirective()
378 Actions.ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D); in ParseOpenMPDeclareReductionDirective()
414 Actions.ActOnOpenMPDeclareReductionInitializerStart(getCurScope(), in ParseOpenMPDeclareReductionDirective()
447 return Actions.ActOnOpenMPDeclareReductionDirectiveEnd(getCurScope(), DRD, in ParseOpenMPDeclareReductionDirective()
459 Actions.CodeCompleteInitializer(getCurScope(), OmpPrivParm); in ParseOpenMPReductionInitializerForDecl()
598 getCurScope(), MapperType, Range.getBegin(), VName); in ParseOpenMPDeclareMapperDirective()
628 getCurScope(), Actions.getCurLexicalContext(), MapperId, MapperType, in ParseOpenMPDeclareMapperDirective()
693 Actions.ActOnReenterFunctionContext(Actions.getCurScope(), D); in FNContextRAII()
2956 Actions.ActOnOpenMPRegionStart(DKind, getCurScope()); in ParseOpenMPDeclarativeOrExecutableDirective()
[all …]
H A DParseHLSL.cpp74 Decl *D = Actions.ActOnStartHLSLBuffer(getCurScope(), IsCBuffer, BufferLoc, in ParseHLSLBuffer()
H A DParseTentative.cpp79 getCurScope(), *II, Tok.getLocation(), SS, /*Template=*/nullptr); in isCXXDeclarationStatement()
80 if (Actions.isCurrentClassName(*II, getCurScope(), &SS) || in isCXXDeclarationStatement()
2239 Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, Next, &CCC); in NameAfterArrowIsNonType()
2365 getCurScope(), &SS)) in isExplicitBool()
H A DParseOpenACC.cpp879 Res = Actions.ActOnIdExpression(getCurScope(), ScopeSpec, TemplateKWLoc, in ParseOpenACCIDExpression()
H A DParseStmtAsm.cpp662 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
/freebsd-14.2/contrib/llvm-project/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
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaPseudoObject.cpp1482 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet()
1492 return S.BuildCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1511 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet()
1524 return S.BuildCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
H A DSemaStmtAsm.cpp786 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
838 if (LookupName(BaseResult, getCurScope()) && BaseResult.isSingleResult()) in LookupInlineAsmField()
H A DSemaOpenMP.cpp1000 Scope *getCurScope() const { in getCurScope() function in __anon8e68b8fa0111::DSAStackTy
1690 Scope *CurScope = getCurScope(); in isOpenMPLocal()
5002 if (Stack->getCurScope()) { in checkNestingOfRegions()
9532 DSA.getCurScope(), in checkOpenMPIterationSpace()
9547 DSA.getCurScope(), in checkOpenMPIterationSpace()
9552 DSA.getCurScope(), in checkOpenMPIterationSpace()
9883 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop()
11475 if (Scope *S = DSAStack->getCurScope()) { in ActOnOpenMPScanDirective()
15061 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective()
15137 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective()
[all …]
H A DSemaCoroutine.cpp870 if (isWithinCatchScope(S.getCurScope())) { in checkSuspensionContext()
1643 S.BuildCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr()
1693 S.BuildCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr()
H A DHLSLExternalSemaSource.cpp134 S.LookupParsedName(R, S.getCurScope(), &SS, false); in lookupBuiltinFunction()
H A DSemaCXXScopeSpec.cpp320 for (Scope *S = getCurScope(); S; S = S->getParent()) { in ActOnSuperScopeSpecifier()
H A DSemaStmt.cpp2610 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange()
2766 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
4507 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
/freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp266 S.ActOnTranslationUnitScope(P->getCurScope()); in ParseOrWrapTopLevelDecl()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h468 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
3100 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
3107 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12