Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/Parse/
H A DParseObjc.cpp53 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
176 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
557 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
576 ObjCTypeParamListScope Scope(Actions, getCurScope()); in parseObjCTypeParamList()
637 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCInterfaceDeclList()
1841 getCurScope(), in parseObjCTypeArgsAndProtocolQualifiers()
1944 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCClassInstanceVariables()
2240 P.Actions.ActOnAtEnd(P.getCurScope(), AtEnd); in finish()
2324 getCurScope(), atLoc, propertyLoc, true, in ParseObjCPropertySynthesize()
2386 getCurScope(), atLoc, propertyLoc, false, in ParseObjCPropertyDynamic()
[all …]
H A DParseExpr.cpp399 Actions.CodeCompleteBinaryRHS(getCurScope(), LHS.get(), in ParseRHSOfBinaryExpression()
962 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
992 getCurScope()->isInObjcMethodScope() && in ParseCastExpression()
1194 if (getCurScope()->getFnParent() == nullptr) in ParseCastExpression()
2335 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseParenExpression()
2365 if (!getCurScope()->getFnParent() && !getCurScope()->getBlockParent()) { in ParseParenExpression()
2541 getCurScope()->isInObjcMethodScope() && in ParseParenExpression()
2970 Actions.ActOnBlockStart(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
2994 Actions.ActOnBlockError(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
3039 Actions.ActOnBlockError(CaretLoc, getCurScope()); in ParseBlockLiteralExpression()
[all …]
H A DParseExprCXX.cpp360 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
458 getCurScope(), IdInfo, EnteringContext, SS, false, in ParseOptionalCXXScopeSpecifier()
795 Actions.CodeCompleteObjCMessageReceiver(getCurScope()); in ParseLambdaIntroducer()
1291 Actions.ActOnStartOfLambdaDefinition(Intro, D, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
1296 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
1306 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope()); in ParseLambdaExpressionAfterIntroducer()
2089 TNK = Actions.isTemplateName(getCurScope(), SS, in ParseUnqualifiedIdTemplateId()
2330 Actions.CodeCompleteOperatorName(getCurScope()); in ParseUnqualifiedIdOperator()
2444 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), D); in ParseUnqualifiedIdOperator()
2527 Actions.isCurrentClassName(*Id, getCurScope(), &SS)) { in ParseUnqualifiedId()
[all …]
H A DParser.cpp362 N->Init(getCurScope(), ScopeFlags); in EnterScope()
371 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
377 Scope *OldScope = getCurScope(); in ExitScope()
411 delete getCurScope(); in ~Parser()
442 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
765 getCurScope(), in ParseExternalDeclaration()
1110 Scope *ParentScope = getCurScope()->getParent(); in ParseFunctionDefinition()
1141 Scope *ParentScope = getCurScope()->getParent(); in ParseFunctionDefinition()
1827 getCurScope(), SS, in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
1927 Actions.CodeCompleteOrdinaryName(getCurScope(), in handleUnexpectedCodeCompletionToken()
[all …]
H A DParseCXXInlineMethods.cpp40 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
43 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
137 LM->TemplateScope = getCurScope()->isTemplateParamScope(); in ParseCXXInlineMethodDef()
279 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
287 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
296 Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
310 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
490 Actions.ActOnReenterTemplateScope(getCurScope(), LM.D); in ParseLexedMethodDef()
518 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D); in ParseLexedMethodDef()
588 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedMemberInitializers()
[all …]
H A DParseDeclCXX.cpp66 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
146 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
147 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
148 getCurScope()->getFnParent()) { in ParseNamespace()
216 getCurScope(), InlineLoc, NamespaceLoc, IdentLoc, Ident, in ParseNamespace()
286 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
422 getCurScope(), ExportLoc, in ParseExportDeclaration()
471 Actions.CodeCompleteUsing(getCurScope()); in ParseUsingDirectiveOrDeclaration()
518 Actions.CodeCompleteUsingDirective(getCurScope()); in ParseUsingDirective()
1393 Actions.CodeCompleteTag(getCurScope(), TagType); in ParseClassSpecifier()
[all …]
H A DParseStmt.cpp429 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
572 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
681 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
1265 Actions.CodeCompleteAfterIf(getCurScope()); in ParseIfStatement()
1361 getCurScope()->AddFlags(Scope::BreakScope); in ParseSwitchStatement()
1367 getCurScope()->decrementMSManglingNumber(); in ParseSwitchStatement()
1612 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseForStatement()
1821 getCurScope(), ForLoc, CoawaitLoc, FirstPart.get(), in ParseForStatement()
1859 getCurScope()->decrementMSManglingNumber(); in ParseForStatement()
1939 return Actions.ActOnBreakStmt(BreakLoc, getCurScope()); in ParseBreakStatement()
[all …]
H A DParseDecl.cpp69 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
2173 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2183 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2196 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclarationAfterDeclaratorAndAttributes()
3008 Actions.CodeCompleteDeclSpec(getCurScope(), DS, in ParseDeclarationSpecifiers()
3014 if (getCurScope()->getFnParent() || getCurScope()->getBlockParent()) in ParseDeclarationSpecifiers()
4032 Actions.ActOnField(getCurScope(), TagDecl, in ParseStructUnionBody()
4591 getCurScope(), attrs); in ParseEnumBody()
6059 assert(getCurScope()->isFunctionPrototypeScope() && in ParseFunctionDeclarator()
6224 for (Decl *D : getCurScope()->decls()) { in ParseFunctionDeclarator()
[all …]
H A DParseTemplate.cpp141 unsigned NewFlags = getCurScope()->getFlags() & ~Scope::TemplateParamScope; in ParseTemplateDeclarationOrSpecialization()
206 getCurScope(), AS, DS, in ParseSingleDeclarationAfterTemplate()
725 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1181 getCurScope(), SS, TemplateKWLoc, Name, in ParseTemplateTemplateArgument()
1198 getCurScope(), SS, in ParseTemplateTemplateArgument()
1410 getCurScope(), cast<Decl>(CDC.getDC())); in ParseLateTemplatedFuncDef()
1414 Actions.PushDeclContext(Actions.getCurScope(), CDC.getDC()); in ParseLateTemplatedFuncDef()
1439 Actions.ActOnStartOfFunctionDef(getCurScope(), FunD); in ParseLateTemplatedFuncDef()
1500 Actions.diagnoseExprIntendedAsTemplateName(getCurScope(), LHS, in diagnoseUnknownTemplateId()
1530 getCurScope(), PotentialTemplateName, Less, Greater); in checkPotentialAngleBracket()
[all …]
H A DParseOpenMP.cpp55 P->getActions().ActOnOpenMPIdExpression(P->getCurScope(), SS, NameInfo); in operator ()()
314 Actions.ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D); in ParseOpenMPDeclareReductionDirective()
390 return Actions.ActOnOpenMPDeclareReductionDirectiveEnd(getCurScope(), DRD, in ParseOpenMPDeclareReductionDirective()
401 Actions.CodeCompleteInitializer(getCurScope(), OmpPrivParm); in ParseOpenMPReductionInitializerForDecl()
428 getCurScope(), in ParseOpenMPReductionInitializerForDecl()
432 Actions.CodeCompleteExpression(getCurScope(), PreferredType); in ParseOpenMPReductionInitializerForDecl()
506 Actions.ActOnReenterTemplateScope(Actions.getCurScope(), D); in FNContextRAII()
514 Actions.ActOnReenterFunctionContext(Actions.getCurScope(), D); in FNContextRAII()
664 Actions.ActOnOpenMPDeclareTargetName(getCurScope(), SS, NameInfo, MT, in ParseOMPDeclareTargetClauses()
1168 Actions.ActOnOpenMPRegionStart(DKind, getCurScope()); in ParseOpenMPDeclarativeOrExecutableDirective()
[all …]
H A DParseInit.cpp216 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
253 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
H A DParseStmtAsm.cpp658 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
H A DParsePragma.cpp496 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
559 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump()
659 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default, in HandlePragmaCaptured()
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DScopedHashTable.h210 ScopeTy *getCurScope() { return CurScope; } in getCurScope() function
211 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope() function
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaPseudoObject.cpp1486 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet()
1496 return S.ActOnCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1515 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet()
1528 return S.ActOnCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
H A DSemaStmtAsm.cpp692 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
744 if (LookupName(BaseResult, getCurScope()) && BaseResult.isSingleResult()) in LookupInlineAsmField()
H A DSemaOpenMP.cpp561 Scope *getCurScope() const { in getCurScope() function in __anon45dbc4930111::DSAStackTy
1079 Scope *CurScope = getCurScope(); in isOpenMPLocal()
1836 SemaRef.getCurScope()); in ValidateCandidate()
1852 SemaRef.getCurScope()); in ValidateCandidate()
3054 if (Stack->getCurScope()) { in checkNestingOfRegions()
4881 ISC.buildPreCond(DSA.getCurScope(), For->getCond(), Captures); in checkOpenMPIterationSpace()
4883 DSA.getCurScope(), in checkOpenMPIterationSpace()
4926 DSA.getCurScope(), ResultIterSpace.CounterVar, Captures, in checkOpenMPIterationSpace()
4930 DSA.getCurScope(), ResultIterSpace.CounterVar, Captures, in checkOpenMPIterationSpace()
5242 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop()
[all …]
H A DSemaCoroutine.cpp1238 S.ActOnCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr()
1264 S.ActOnCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr()
H A DSemaCXXScopeSpec.cpp283 for (Scope *S = getCurScope(); S; S = S->getParent()) { in ActOnSuperScopeSpecifier()
H A DSemaStmt.cpp2184 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange()
2354 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
4026 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
H A DSemaType.cpp3210 if (S.LookupName(Result, S.getCurScope())) in warnAboutAmbiguousFunction()
3330 if (!S.LookupName(Result, S.getCurScope())) in warnAboutRedundantParens()
5864 S.getCurScope(), SS, TemplateKWLoc, id, false, false); in HandleAddressSpaceTypeAttribute()
6993 ExprResult Size = S.ActOnIdExpression(S.getCurScope(), SS, TemplateKWLoc, in HandleVectorSizeAttr()
7030 ExprResult Size = S.ActOnIdExpression(S.getCurScope(), SS, TemplateKWLoc, in HandleExtVectorTypeAttr()
H A DSemaExprMember.cpp1000 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
H A DSema.cpp1367 for (Scope *S = getCurScope(); S; S = S->getParent()) { in getScopeForContext()
H A DSemaExprCXX.cpp766 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in BuildCXXThrow()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Parse/
H A DParser.h374 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
2582 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
2589 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12