|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Parse/Parser.h 406 Sema &getActions() const { return Actions; }
410 Scope *getCurScope() const { return Actions.getCurScope(); }
412 return Actions.incrementMSManglingNumber();
415 Decl *getObjCDeclContext() const { return Actions.getObjCDeclContext(); }
501 return Actions.getNullabilityKeyword(nullability);
954 P.Actions.ActOnObjCTemporaryExitContainerContext(cast<DeclContext>(DC));
958 P.Actions.ActOnObjCReenterContainerContext(cast<DeclContext>(DC));
2218 Actions.startOpenMPLoop();
2655 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS))
2662 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS);
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 39 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D,
42 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D,
46 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs);
48 Actions.ActOnPureSpecifier(FnD, PureSpecLoc);
71 Actions.SetDeclDeleted(FnD, KWLoc);
81 Actions.SetDeclDefaulted(FnD, KWLoc);
101 if (SkipFunctionBodies && (!FnD || Actions.canSkipFunctionBody(FnD)) &&
103 Actions.ActOnSkippedFunctionBody(FnD);
115 ((Actions.CurContext->isDependentContext() ||
118 !Actions.IsInsideALocalClassWithinATemplateFunction())) {
125 Actions.CheckForFunctionRedefinition(FD);
126 Actions.MarkAsLateParsedTemplate(FD, FnD, Toks);
169 Actions.CheckForFunctionRedefinition(FD);
268 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
278 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(),
286 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(),
295 Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method);
299 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
309 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param);
338 Actions,
347 DefArgResult = Actions.CorrectDelayedTyposInExpr(DefArgResult);
349 Actions.ActOnParamDefaultArgumentError(Param, EqualLoc);
360 Actions.ActOnParamDefaultArgument(Param, EqualLoc,
417 Sema::CXXThisScopeRAII ThisScope(Actions, Method->getParent(),
438 Actions.actOnDelayedExceptionSpecification(LM.Method, EST,
461 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
472 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
489 Actions.ActOnReenterTemplateScope(getCurScope(), LM.D);
517 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D);
535 Actions.ActOnFinishFunctionBody(LM.D, nullptr);
545 Actions.ActOnDefaultCtorInitializers(LM.D);
547 assert((Actions.getDiagnostics().hasErrorOccurred() ||
565 Actions.ActOnFinishInlineFunctionDef(FD);
577 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
587 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(),
596 Sema::CXXThisScopeRAII ThisScope(Actions, Class.TagOrTemplate,
605 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(),
608 Actions.ActOnFinishDelayedMemberInitializers(Class.TagOrTemplate);
627 Actions.ActOnStartCXXInClassMemberInitializer();
632 Actions.ActOnFinishCXXInClassMemberInitializer(MI.Field, EqualLoc,
1045 Sema::TentativeAnalysisScope Scope(Actions);
tools/clang/lib/Parse/ParseDecl.cpp 68 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
294 IdentifierLoc *IL = IdentifierLoc::create(Actions.Context,
392 Actions,
397 Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression()));
476 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param);
1434 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate);
1444 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(),
1453 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(),
1503 Sema::CXXThisScopeRAII ThisScope(Actions, RD, Qualifiers(),
1511 Actions.ActOnReenterTemplateScope(Actions.CurScope, D);
1511 Actions.ActOnReenterTemplateScope(Actions.CurScope, D);
1519 Actions.ActOnReenterFunctionContext(Actions.CurScope, D);
1519 Actions.ActOnReenterFunctionContext(Actions.CurScope, D);
1526 Actions.ActOnExitFunctionContext();
1549 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs);
1787 return Actions.ConvertDeclToDeclGroup(SingleDecl);
1834 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none,
1839 return Actions.BuildDeclaratorGroup(decls);
1841 return Actions.ConvertDeclToDeclGroup(TheDecl);
2066 return Actions.ConvertDeclToDeclGroup(TheDecl);
2104 Actions.startOpenMPCXXRangeFor();
2111 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D);
2113 Actions.ActOnCXXForRangeDecl(ThisDecl);
2119 Actions.FinalizeDeclaration(ThisDecl);
2121 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl);
2191 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
2260 P.Actions.ActOnCXXEnterDeclInitializer(S, ThisDecl);
2269 P.Actions.ActOnCXXExitDeclInitializer(S, ThisDecl);
2281 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D);
2286 ThisDecl = Actions.ActOnTemplateDeclarator(getCurScope(),
2297 DeclResult ThisRes = Actions.ActOnExplicitInstantiation(
2313 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D);
2324 FakedParamLists.push_back(Actions.ActOnTemplateParameterList(
2329 Actions.ActOnTemplateDeclarator(getCurScope(), FakedParamLists, D);
2358 Actions.CodeCompleteInitializer(getCurScope(), ThisDecl);
2359 Actions.FinalizeDeclaration(ThisDecl);
2388 Actions.ActOnInitializerError(ThisDecl);
2390 Actions.AddInitializerToDecl(ThisDecl, Init.get(),
2405 QualType PreferredType = Actions.ProduceConstructorSignatureHelp(
2425 Actions.ProduceConstructorSignatureHelp(
2430 Actions.ActOnInitializerError(ThisDecl);
2441 ExprResult Initializer = Actions.ActOnParenListExpr(T.getOpenLocation(),
2444 Actions.AddInitializerToDecl(ThisDecl, Initializer.get(),
2459 Actions.ActOnInitializerError(ThisDecl);
2461 Actions.AddInitializerToDecl(ThisDecl, Init.get(), /*DirectInit=*/true);
2464 Actions.ActOnUninitializedDecl(ThisDecl);
2467 Actions.FinalizeDeclaration(ThisDecl);
2611 if (ParsedType T = Actions.ActOnMSVCUnknownTypeName(
2617 Actions.getASTContext().getPrintingPolicy());
2634 switch (Actions.isTagName(*Tok.getIdentifierInfo(), getCurScope())) {
2651 LookupResult R(Actions, TokenName, SourceLocation(),
2658 if (Actions.LookupParsedName(R, getCurScope(), SS)) {
2707 if (Actions.isCurrentClassNameTypo(II, SS)) {
2745 Actions.DiagnoseUnknownTypeName(II, Loc, getCurScope(), SS, T,
2754 Actions.getASTContext().getPrintingPolicy());
2825 ER = Actions.ActOnUnaryExprOrTypeTraitExpr(TypeLoc, UETT_AlignOf, true,
2928 Actions.RestoreNestedNameSpecifierAnnotation(
2931 Sema::NameClassification Classification = Actions.ClassifyName(
2965 const PrintingPolicy &PPol = Actions.getASTContext().getPrintingPolicy();
3039 PrintingPolicy Policy = Actions.getPrintingPolicy();
3080 DS.Finish(Actions, Policy);
3112 Actions.CodeCompleteDeclSpec(getCurScope(), DS,
3128 Actions.CodeCompleteOrdinaryName(getCurScope(), CCC);
3148 Actions.RestoreNestedNameSpecifierAnnotation(Tok.getAnnotationValue(),
3170 Actions.isCurrentClassName(*TemplateId->Name, getCurScope(), &SS) &&
3212 Actions.isCurrentClassName(*Next.getIdentifierInfo(), getCurScope(),
3218 Actions.getTypeName(*Next.getIdentifierInfo(), Next.getLocation(),
3351 ParsedType TypeRep = Actions.ActOnObjCInstanceType(Loc);
3366 Actions.isCurrentClassName(*Tok.getIdentifierInfo(), getCurScope()) &&
3370 ParsedType TypeRep = Actions.getTypeName(
3394 Actions.isDeductionGuideName(getCurScope(), *Tok.getIdentifierInfo(),
3441 Actions.isCurrentClassName(*TemplateId->Name, getCurScope()) &&
3516 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_typedef, Loc,
3523 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_extern, Loc,
3528 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_private_extern,
3535 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_static, Loc,
3542 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_auto, Loc,
3551 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_auto, Loc,
3561 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_register, Loc,
3566 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_mutable, Loc,
3621 Actions.ActOnExplicitBoolSpecifier(ExplicitExpr.get());
3946 if (Actions.getLangOpts().OpenCLVersion < 200 &&
3947 !Actions.getLangOpts().OpenCLCPlusPlus) {
3979 Actions.getASTContext().getPrintingPolicy()))
4065 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none,
4127 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, TagDecl, RecordLoc,
4136 Actions.ActOnTagStartDefinition(getCurScope(), TagDecl);
4179 TagType, Actions.getASTContext().getPrintingPolicy());
4188 Actions.ActOnField(getCurScope(), TagDecl,
4213 Actions.ActOnDefs(getCurScope(), TagDecl, Tok.getLocation(),
4241 Actions.ActOnFields(getCurScope(), RecordLoc, TagDecl, FieldDecls,
4244 Actions.ActOnTagFinishDefinition(getCurScope(), TagDecl, T.getRange());
4283 Actions.CodeCompleteTag(getCurScope(), DeclSpec::TST_enum);
4397 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
4541 SkipBody = Actions.shouldSkipAnonEnumBody(getCurScope(),
4549 Decl *TagDecl = Actions.ActOnTag(
4568 Actions.getASTContext().getPrintingPolicy()))
4582 TypeResult Type = Actions.ActOnDependentTag(
4592 Actions.getASTContext().getPrintingPolicy()))
4614 !Actions.ActOnDuplicateDefinition(DS, TagDecl, SkipBody)) {
4623 Actions.getASTContext().getPrintingPolicy()))
4640 Actions.ActOnTagStartDefinition(getCurScope(), EnumDecl);
4686 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
4694 Decl *EnumConstDecl = Actions.ActOnEnumConstant(
4748 Actions.ActOnEnumBody(StartLoc, T.getRange(), EnumDecl, EnumConstantDecls,
4760 Actions.ActOnTagFinishDefinition(getCurScope(), EnumDecl, T.getRange());
5203 if (SS.isSet() && Actions.ShouldEnterDeclaratorScope(getCurScope(), SS))
5324 Actions.CodeCompleteTypeQualifiers(DS);
5431 DS.Finish(Actions, Actions.getASTContext().getPrintingPolicy());
5431 DS.Finish(Actions, Actions.getASTContext().getPrintingPolicy());
5763 if (Actions.ShouldEnterDeclaratorScope(getCurScope(),
5791 !Actions.containsUnexpandedParameterPacks(D) &&
5846 Actions.ShouldEnterDeclaratorScope(getCurScope(),
5930 Actions.ShouldEnterDeclaratorScope(getCurScope(),
6308 Actions.CodeCompleteFunctionQualifiers(DS, D);
6332 Actions.CurContext->isRecord());
6353 Actions, dyn_cast<CXXRecordDecl>(Actions.CurContext), Q,
6353 Actions, dyn_cast<CXXRecordDecl>(Actions.CurContext), Q,
6359 if (Delayed && Actions.isLibstdcxxEagerExceptionSpecHack(D) &&
6514 if (Actions.getTypeName(*ParmII, Tok.getLocation(), getCurScope()))
6631 !Actions.isUnexpandedParameterPackPermitted())) &&
6632 Actions.containsUnexpandedParameterPacks(ParmDeclarator))
6637 Decl *Param = Actions.ActOnParamDeclarator(getCurScope(), ParmDeclarator);
6655 Actions.ActOnParamDefaultArgumentError(Param, EqualLoc);
6657 Actions.ActOnParamUnparsedDefaultArgument(Param, EqualLoc,
6667 Actions,
6677 DefArgResult = Actions.CorrectDelayedTyposInExpr(DefArgResult);
6679 Actions.ActOnParamDefaultArgumentError(Param, EqualLoc);
6683 Actions.ActOnParamDefaultArgument(Param, EqualLoc,
6701 Actions.containsUnexpandedParameterPacks(ParmDeclarator)) {
6759 ExprResult ExprRes(Actions.ActOnNumericConstant(Tok, getCurScope()));
6773 Actions.CodeCompleteBracketDeclarator(getCurScope());
6819 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
6821 Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression());
6951 Actions, Sema::ExpressionEvaluationContext::Unevaluated,
6957 ExprResult Operand = Actions.CorrectDelayedTyposInExpr(
6979 Actions.getASTContext().getPrintingPolicy()))
6991 Operand = Actions.HandleExprEvaluationContextForTypeof(Operand.get());
7002 Actions.getASTContext().getPrintingPolicy()))
7037 Actions.getASTContext().getPrintingPolicy()))
7077 const PrintingPolicy &Policy = Actions.getASTContext().getPrintingPolicy();
tools/clang/lib/Parse/ParseDeclCXX.cpp 66 Actions.CodeCompleteNamespaceDecl(getCurScope());
134 return Actions.ConvertDeclToDeclGroup(NSAlias);
215 Decl *NamespcDecl = Actions.ActOnStartNamespaceDef(
219 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, NamespcDecl,
230 Actions.ActOnFinishNamespaceDef(NamespcDecl, DeclEnd);
232 return Actions.ConvertDeclToDeclGroup(NamespcDecl,
261 Decl *NamespcDecl = Actions.ActOnStartNamespaceDef(
271 Actions.ActOnFinishNamespaceDef(NamespcDecl, Tracker.getCloseLocation());
286 Actions.CodeCompleteNamespaceAliasDecl(getCurScope());
322 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc,
341 : Actions.ActOnStartLinkageSpecification(
356 return LinkageSpec ? Actions.ActOnFinishLinkageSpecification(
405 return LinkageSpec ? Actions.ActOnFinishLinkageSpecification(
421 Decl *ExportDecl = Actions.ActOnStartExportDecl(
431 return Actions.ActOnFinishExportDecl(getCurScope(), ExportDecl,
454 return Actions.ActOnFinishExportDecl(getCurScope(), ExportDecl,
472 Actions.CodeCompleteUsing(getCurScope());
494 return Actions.ConvertDeclToDeclGroup(UsingDir);
526 Actions.CodeCompleteUsingDirective(getCurScope());
576 return Actions.ActOnUsingDirective(getCurScope(), UsingLoc, NamespcLoc, SS,
631 Actions.getInheritingConstructorName(D.SS, IdLoc, *LastII);
706 return Actions.ConvertDeclToDeclGroup(AD, DeclFromDeclSpec);
747 Decl *UD = Actions.ActOnUsingDeclaration(getCurScope(), AS, UsingLoc,
774 return Actions.BuildDeclaratorGroup(DeclsInGroup);
850 return Actions.ActOnAliasDeclaration(getCurScope(), AS, TemplateParamsArg,
882 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
922 return Actions.ActOnStaticAssertDeclaration(StaticAssertLoc,
979 Actions, Sema::ExpressionEvaluationContext::Unevaluated, nullptr,
982 Actions.CorrectDelayedTyposInExpr(ParseExpression(), [](Expr *E) {
1003 Result = Actions.ActOnDecltypeExpression(Result.get());
1026 const PrintingPolicy &Policy = Actions.getASTContext().getPrintingPolicy();
1084 Actions.getASTContext().getPrintingPolicy()))
1136 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
1173 if (!Actions.DiagnoseUnknownTemplateName(*Id, IdLoc, getCurScope(),
1213 ParsedType Type = Actions.getTypeName(
1235 Actions.getASTContext().getPrintingPolicy());
1238 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
1411 Actions.CodeCompleteTag(getCurScope(), TagType);
1624 Actions.ActOnUndeclaredTypeTemplateName(getCurScope(), TemplateId->Template,
1682 const PrintingPolicy &Policy = Actions.getASTContext().getPrintingPolicy();
1740 const PrintingPolicy &PPol = Actions.getASTContext().getPrintingPolicy();
1814 TagOrTempResult = Actions.ActOnExplicitInstantiation(
1828 TypeResult = Actions.ActOnTagTemplateIdType(TUK, TagType, StartLoc,
1869 FakedParamLists.push_back(Actions.ActOnTemplateParameterList(
1877 TagOrTempResult = Actions.ActOnClassTemplateSpecialization(
1894 TagOrTempResult = Actions.ActOnExplicitInstantiation(
1901 TagOrTempResult = Actions.ActOnTemplatedFriendTag(
1932 TagOrTempResult = Actions.ActOnTag(
1945 TypeResult = Actions.ActOnDependentTag(getCurScope(), TagType, TUK,
1967 !Actions.ActOnDuplicateDefinition(DS, TagOrTempResult.get(),
1977 Actions.ProcessDeclAttributeDelayed(TagOrTempResult.get(), attrs);
2015 const PrintingPolicy &PPol = Actions.getASTContext().getPrintingPolicy();
2060 Actions.ActOnBaseSpecifiers(ClassDecl, BaseInfo);
2136 return Actions.ActOnBaseSpecifier(ClassDecl, Range, Attributes, IsVirtual,
2378 Actions.CodeCompleteFunctionQualifiers(DS, D, &VS);
2525 return DeclGroupPtrTy::make(DeclGroupRef(Actions.ActOnUsingDeclaration(
2630 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(
2635 return Actions.BuildDeclaratorGroup(decls);
2637 return Actions.ConvertDeclToDeclGroup(TheDecl);
2806 ThisDecl = Actions.ActOnFriendFunctionDecl(getCurScope(), DeclaratorInfo,
2809 ThisDecl = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS,
2822 Actions.ProcessDeclAttributeList(getCurScope(), ThisDecl, AccessAttrs);
2835 Actions.ActOnPureSpecifier(ThisDecl, PureSpecLoc);
2866 Actions.AddInitializerToDecl(ThisDecl, Init.get(), EqualLoc.isInvalid());
2869 Actions.ActOnUninitializedDecl(ThisDecl);
2880 Actions.FinalizeDeclaration(ThisDecl);
2933 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
2962 Actions, Sema::ExpressionEvaluationContext::PotentiallyEvaluated, D);
3025 Actions.ActOnTagStartSkippedDefinition(getCurScope(), TagDecl);
3030 Actions.ActOnTagFinishSkippedDefinition(OldContext);
3130 if (Actions.ActOnAccessSpecifier(NewAS, ASLoc, EndLoc, AccessAttrs)) {
3146 Actions.getASTContext().getPrintingPolicy());
3175 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, TagDecl, RecordLoc,
3213 Actions.ActOnTagStartDefinition(getCurScope(), TagDecl);
3256 Actions.ActOnTagDefinitionError(getCurScope(), TagDecl);
3300 Actions.ActOnTagDefinitionError(getCurScope(), TagDecl);
3311 Actions.ActOnStartCXXMemberDeclarations(getCurScope(), TagDecl, FinalLoc,
3343 Actions.ActOnFinishCXXMemberSpecification(getCurScope(), RecordLoc, TagDecl,
3362 Actions.ActOnFinishCXXMemberDecls();
3370 Actions.ActOnFinishCXXNonNestedClass(TagDecl);
3374 Actions.ActOnTagFinishDefinition(getCurScope(), TagDecl, T.getRange());
3437 Actions.CodeCompleteConstructorInitializer(ConstructorDecl,
3469 Actions.ActOnMemInitializers(ConstructorDecl, ColonLoc, MemInitializers,
3541 return Actions.ActOnMemInitializer(ConstructorDecl, getCurScope(), SS, II,
3552 QualType PreferredType = Actions.ProduceCtorInitMemberSignatureHelp(
3574 return Actions.ActOnMemInitializer(ConstructorDecl, getCurScope(), SS, II,
3670 NoexceptExpr = Actions.ActOnNoexceptSpec(KeywordLoc, NoexceptExpr.get(),
3763 Res = Actions.ActOnPackExpansion(Res.get(), Ellipsis);
3804 return Actions.PushParsingClass();
3824 Actions.PopParsingClass(state);
4277 cast<StringLiteral>(Actions.ActOnStringLiteral(Toks, nullptr).get());
4372 Actions.ActOnAccessSpecifier(AS, ASLoc, Tok.getLocation(),
tools/clang/lib/Parse/ParseExpr.cpp 152 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__,
161 Actions.CodeCompleteExpression(getCurScope(),
201 assert(Actions.ExprEvalContexts.back().Context ==
207 return Actions.ActOnConstantExpression(Res);
216 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
222 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
225 return Actions.ActOnCaseExpr(CaseLoc, Res);
236 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
239 if (Res.isUsable() && !Actions.CheckConstraintExpression(Res.get()))
342 << Actions.getExprRange(TernaryMiddle.get());
362 Actions.CorrectDelayedTyposInExpr(LHS);
397 PreferredType.enterBinary(Actions, Tok.getLocation(), LHS.get(),
422 Actions.CorrectDelayedTyposInExpr(LHS);
424 TernaryMiddle = Actions.CorrectDelayedTyposInExpr(TernaryMiddle);
444 << /*LHS*/0 << PP.getSpelling(Tok) << Actions.getExprRange(RHS.get());
459 Actions.CorrectDelayedTyposInExpr(LHS);
461 TernaryMiddle = Actions.CorrectDelayedTyposInExpr(TernaryMiddle);
472 << Actions.getExprRange(RHS.get());
476 << Actions.getExprRange(RHS.get());
481 << Actions.getExprRange(RHS.get());
496 SourceRange(Actions.getExprRange(LHS.get()).getBegin(),
497 Actions.getExprRange(RHS.get()).getEnd()));
499 LHS = Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(),
503 LHS = Actions.ActOnConditionalOp(OpToken.getLocation(), ColonLoc,
515 Actions.CorrectDelayedTyposInExpr(OrigLHS);
516 Actions.CorrectDelayedTyposInExpr(TernaryMiddle);
517 Actions.CorrectDelayedTyposInExpr(RHS);
823 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope());
838 return Actions.ActOnCXXNullPtrLiteral(ConsumeToken());
975 (Actions.getTypeName(II, ILoc, getCurScope()) ||
981 Actions.CodeCompleteObjCClassPropertyRefExpr(
995 Res = Actions.ActOnClassPropertyRefExpr(II, PropertyName,
1025 if (ParsedType Typ = Actions.getTypeName(II, ILoc, getCurScope()))
1034 Actions.getASTContext().getPrintingPolicy());
1037 TypeResult Ty = Actions.ActOnTypeName(getCurScope(),
1072 Res = Actions.ActOnIdExpression(
1091 Res = Actions.ActOnCharacterConstant(Tok, /*UDLScope*/getCurScope());
1101 Res = Actions.ActOnPredefinedExpr(Tok.getLocation(), SavedKind);
1127 return Actions.ActOnGNUNullExpr(ConsumeToken());
1138 PreferredType.enterUnary(Actions, Tok.getLocation(), SavedTok.getKind(),
1154 Res = Actions.ActOnUnaryOp(getCurScope(), SavedTok.getLocation(),
1161 PreferredType.enterUnary(Actions, Tok.getLocation(), tok::amp, SavedLoc);
1164 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get());
1176 PreferredType.enterUnary(Actions, Tok.getLocation(), SavedKind, SavedLoc);
1179 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get());
1187 Res = Actions.ActOnCoawaitExpr(getCurScope(), CoawaitLoc, Res.get());
1197 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get());
1222 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(),
1224 Res = Actions.ActOnAddrLabel(AmpAmpLoc, Tok.getLocation(), LD);
1260 Actions.getASTContext().getPrintingPolicy());
1263 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
1311 if (!Actions.isSimpleTypeSpecifier(Tok.getKind()))
1422 Actions, Sema::ExpressionEvaluationContext::Unevaluated);
1428 Result = Actions.ActOnNoexceptExpr(KeyLoc, T.getOpenLocation(),
1454 Actions.CodeCompleteExpression(getCurScope(),
1539 Actions.CodeCompletePostfixExpression(
1573 (void)Actions.CorrectDelayedTyposInExpr(LHS);
1582 PreferredType.enterSubscript(Actions, Tok.getLocation(), LHS.get());
1604 LHS = Actions.CorrectDelayedTyposInExpr(LHS);
1605 Idx = Actions.CorrectDelayedTyposInExpr(Idx);
1606 Length = Actions.CorrectDelayedTyposInExpr(Length);
1610 LHS = Actions.ActOnOMPArraySectionExpr(LHS.get(), Loc, Idx.get(),
1613 LHS = Actions.ActOnArraySubscriptExpr(getCurScope(), LHS.get(), Loc,
1642 (void)Actions.CorrectDelayedTyposInExpr(LHS);
1666 ExprResult ECResult = Actions.ActOnCUDAExecConfigExpr(getCurScope(),
1683 QualType PreferredType = Actions.ProduceCallSignatureHelp(
1694 (void)Actions.CorrectDelayedTyposInExpr(LHS);
1704 Actions.CorrectDelayedTyposInExpr(E);
1714 if (Actions.CorrectDelayedTyposInExpr(LHS).get() != LHS.get())
1717 if (Actions.CorrectDelayedTyposInExpr(E).get() != E)
1731 LHS = Actions.ActOnCallExpr(getCurScope(), LHS.get(), Loc,
1751 PreferredType.enterMemAccess(Actions, Tok.getLocation(), OrigLHS);
1765 LHS = Actions.ActOnStartCXXMemberReference(getCurScope(), Base,
1785 Sema::TentativeAnalysisScope Trap(Actions);
1786 CorrectedLHS = Actions.ActOnStartCXXMemberReference(
1797 Actions.CodeCompleteMemberReferenceExpr(
1841 (void)Actions.CorrectDelayedTyposInExpr(LHS);
1846 LHS = Actions.ActOnMemberAccessExpr(getCurScope(), LHS.get(), OpLoc,
1857 LHS = Actions.ActOnPostfixUnaryOp(getCurScope(), Tok.getLocation(),
2026 Actions, Sema::ExpressionEvaluationContext::Unevaluated,
2029 return Actions.ActOnSizeofParameterPackExpr(getCurScope(),
2039 Actions, Sema::ExpressionEvaluationContext::Unevaluated,
2061 return Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(),
2072 Operand = Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(),
2137 Res = Actions.ActOnVAArg(StartLoc, Expr.get(), Ty.get(), ConsumeParen());
2211 Res = Actions.ActOnBuiltinOffsetOf(getCurScope(), StartLoc, TypeLoc,
2250 Res = Actions.ActOnChooseExpr(StartLoc, Cond.get(), Expr1.get(),
2279 Res = Actions.ActOnAsTypeExpr(Expr.get(), DestTy.get(), StartLoc,
2308 Res = Actions.ActOnConvertVectorExpr(Expr.get(), DestTy.get(), StartLoc,
2336 Res = Actions.ActOnSourceLocExpr(Kind, StartLoc, ConsumeParen());
2392 Actions.CodeCompleteExpression(
2428 DeclContext *CodeDC = Actions.CurContext;
2434 Sema::ContextRAII SavedContext(Actions, CodeDC, /*NewThisContext=*/false);
2436 Actions.ActOnStartStmtExpr();
2443 Result = Actions.ActOnStmtExpr(OpenLoc, Stmt.get(), Tok.getLocation());
2445 Actions.ActOnStmtExprError();
2482 return Actions.ActOnObjCBridgedCast(getCurScope(), OpenLoc, Kind,
2517 Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
2532 Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
2544 Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
2564 Result = Actions.ActOnCastExpr(getCurScope(), OpenLoc,
2591 Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
2614 Result = Actions.ActOnCastExpr(getCurScope(), OpenLoc,
2645 Result = Actions.ActOnParenListExpr(OpenLoc, Tok.getLocation(),
2655 Result = Actions.CorrectDelayedTyposInExpr(Result);
2668 Actions.ActOnParenExpr(OpenLoc, Tok.getLocation(), Result.get());
2699 return Actions.ActOnCompoundLiteral(LParenLoc, Ty, RParenLoc, Result.get());
2724 return Actions.ActOnStringLiteral(StringToks,
2757 Actions, Sema::ExpressionEvaluationContext::Unevaluated);
2759 Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression());
2806 Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression()));
2818 return Actions.ActOnGenericSelectionExpr(KeyLoc, DefaultLoc,
2873 return Actions.ActOnCXXFoldExpr(T.getOpenLocation(), LHS.get(), Kind,
2915 Expr = Actions.ActOnPackExpansion(Expr.get(), ConsumeToken());
2935 ExprResult Expr = Actions.CorrectDelayedTyposInExpr(E);
2979 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Type);
2995 Actions.ActOnBlockArguments(CaretLoc, DeclaratorInfo, getCurScope());
3023 Actions.ActOnBlockStart(CaretLoc, getCurScope());
3047 Actions.ActOnBlockError(CaretLoc, getCurScope());
3054 Actions.ActOnBlockArguments(CaretLoc, ParamInfo, getCurScope());
3084 Actions.ActOnBlockArguments(CaretLoc, ParamInfo, getCurScope());
3092 Actions.ActOnBlockError(CaretLoc, getCurScope());
3099 Result = Actions.ActOnBlockStmtExpr(CaretLoc, Stmt.get(), getCurScope());
3101 Actions.ActOnBlockError(CaretLoc, getCurScope());
3111 return Actions.ActOnObjCBoolLiteral(ConsumeToken(), Kind);
3165 Actions.CodeCompleteAvailabilityPlatformName();
3231 return Actions.ActOnObjCAvailabilityCheckExpr(AvailSpecs, BeginLoc,
tools/clang/lib/Parse/ParseExprCXX.cpp 93 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false,
156 Actions.RestoreNestedNameSpecifierAnnotation(Tok.getAnnotationValue(),
194 if (Actions.ActOnCXXGlobalScopeSpecifier(ConsumeToken(), SS))
208 return Actions.ActOnSuperScopeSpecifier(SuperLoc, ConsumeToken(), SS);
226 if (Actions.ActOnCXXNestedNameSpecifierDecltype(SS, DS, CCLoc))
239 Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext,
319 if (TemplateNameKind TNK = Actions.ActOnDependentTemplateName(
359 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(),
396 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, IdInfo,
422 !Actions.isNonTypeNestedNameSpecifier(getCurScope(), SS, IdInfo)) {
456 if (Actions.ActOnCXXNestedNameSpecifier(
483 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS,
525 if (TemplateNameKind TNK = Actions.ActOnDependentTemplateName(
565 E = Actions.ActOnNameClassifiedAsNonType(getCurScope(), SS, ND, Loc, Tok);
578 E = Actions.ActOnNameClassifiedAsDependentNonType(SS, II, Loc,
588 E = Actions.ActOnNameClassifiedAsUndeclaredNonType(II, Loc);
608 E = Actions.ActOnIdExpression(
876 Actions.CodeCompleteLambdaIntroducer(getCurScope(), Intro,
893 Actions.CodeCompleteObjCMessageReceiver(getCurScope());
895 Actions.CodeCompleteLambdaIntroducer(getCurScope(), Intro,
933 Actions.CodeCompleteLambdaIntroducer(getCurScope(), Intro,
974 Init = Actions.ActOnParenListExpr(Parens.getOpenLocation(),
983 Actions, Sema::ExpressionEvaluationContext::PotentiallyEvaluated);
1022 Init = Actions.CorrectDelayedTyposInExpr(Init.get());
1115 Init = Actions.CorrectDelayedTyposInExpr(Init.get());
1123 InitCaptureType = Actions.actOnLambdaInitCaptureInitialization(
1234 Actions.PushLambdaScope();
1269 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
1277 Actions.ActOnLambdaExplicitTemplateParameterList(
1299 Actions.RecordParsingTemplateParameterDepth(
1309 if (Actions.getCurGenericLambda())
1459 Actions.ActOnStartOfLambdaDefinition(Intro, D, getCurScope());
1464 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
1473 return Actions.ActOnLambdaExpr(LambdaBeginLoc, Stmt.get(), getCurScope());
1475 Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
1538 Result = Actions.ActOnCXXNamedCast(OpLoc, Kind,
1581 Actions, Sema::ExpressionEvaluationContext::Unevaluated,
1593 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/true,
1607 Result = Actions.ActOnCXXTypeid(OpLoc, LParenLoc, /*isType=*/false,
1641 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(), /*isType=*/true,
1646 Actions, Sema::ExpressionEvaluationContext::Unevaluated);
1655 Result = Actions.ActOnCXXUuidof(OpLoc, T.getOpenLocation(),
1719 return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind,
1743 return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind,
1755 return Actions.ActOnCXXBoolLiteral(ConsumeToken(), Kind);
1776 return Actions.ActOnCXXThrow(getCurScope(), ThrowLoc, nullptr);
1781 return Actions.ActOnCXXThrow(getCurScope(), ThrowLoc, Expr.get());
1796 Expr = Actions.ActOnCoyieldExpr(getCurScope(), Loc, Expr.get());
1808 return Actions.ActOnCXXThis(ThisLoc);
1827 ParsedType TypeRep = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo).get();
1838 return Actions.ActOnCXXTypeConstructExpr(
1851 QualType PreferredType = Actions.ProduceConstructorSignatureHelp(
1879 return Actions.ActOnCXXTypeConstructExpr(TypeRep, T.getOpenLocation(),
1915 PreferredType.enterCondition(Actions, Tok.getLocation());
1918 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Condition);
1949 *InitStmt = Actions.ActOnNullStmt(SemiLoc);
1960 *InitStmt = Actions.ActOnExprStmt(Expr.get());
1965 return Actions.ActOnCondition(getCurScope(), Loc, Expr.get(), CK);
1974 *InitStmt = Actions.ActOnDeclStmt(DG, DeclStart, DeclEnd);
1983 FRI->LoopVar = Actions.ActOnDeclStmt(DG, DeclStart, Tok.getLocation());
2017 DeclResult Dcl = Actions.ActOnCXXConditionDeclaration(getCurScope(),
2050 Actions.AddInitializerToDecl(DeclOut, InitExpr.get(), !CopyInitialization);
2052 Actions.ActOnInitializerError(DeclOut);
2054 Actions.FinalizeDeclaration(DeclOut);
2055 return Actions.ActOnConditionVariable(DeclOut, Loc, CK);
2090 Actions.getASTContext().getPrintingPolicy();
2110 DS.Finish(Actions, Policy);
2182 return DS.Finish(Actions, Policy);
2187 DS.Finish(Actions, Policy);
2192 DS.Finish(Actions, Policy);
2208 DS.Finish(Actions, Actions.getASTContext().getPrintingPolicy());
2208 DS.Finish(Actions, Actions.getASTContext().getPrintingPolicy());
2263 TNK = Actions.ActOnDependentTemplateName(
2270 TNK = Actions.isTemplateName(getCurScope(), SS,
2300 TNK = Actions.ActOnDependentTemplateName(
2313 TNK = Actions.isTemplateName(getCurScope(), SS, TemplateKWLoc.isValid(),
2325 TNK = Actions.ActOnDependentTemplateName(
2331 TNK = Actions.isTemplateName(getCurScope(), SS, TemplateKWLoc.isValid(),
2386 TypeResult Type = Actions.ActOnTemplateIdType(
2515 Actions.CodeCompleteOperatorName(getCurScope());
2604 return Actions.checkLiteralOperatorId(SS, Result);
2629 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), D);
2712 Actions.isCurrentClassName(*Id, getCurScope(), &SS)) {
2714 ParsedType Ty = Actions.getConstructorName(*Id, IdLoc, getCurScope(), SS,
2721 Actions.isDeductionGuideName(getCurScope(), *Id, IdLoc,
2737 Actions.ActOnDependentTemplateName(
2753 Actions.isCurrentClassName(*TemplateId->Name, getCurScope(), &SS)) {
2764 ParsedType Ty = Actions.getConstructorName(
2816 Actions.ActOnDependentTemplateName(
2839 Actions.getDestructorTypeForDecltype(DS, ObjectType)) {
2880 if (Actions.ShouldEnterDeclaratorScope(getCurScope(), SS))
2896 ParsedType Ty = Actions.getDestructorName(TildeLoc, *ClassName,
3026 Actions.ActOnTypeName(getCurScope(), DeclaratorInfo).get();
3027 QualType PreferredType = Actions.ProduceConstructorSignatureHelp(
3049 Initializer = Actions.ActOnParenListExpr(ConstructorLParen,
3060 return Actions.ActOnCXXNew(Start, UseGlobal, PlacementLParen,
3195 RBraceLoc, 0, Actions.getSourceManager(), getLangOpts()),
3211 return Actions.ActOnCXXDelete(Start, UseGlobal, /*ArrayForm=*/false,
3228 return Actions.ActOnCXXDelete(Start, UseGlobal, ArrayDelete, Operand.get());
3301 Ty = Actions.ActOnPackExpansion(Ty.get(), ConsumeToken());
3329 return Actions.ActOnTypeTrait(TypeTraitFromTokKind(Kind), Loc, Args, EndLoc);
3357 return Actions.ActOnArrayTypeTrait(ATT, Loc, Ty.get(), nullptr,
3369 return Actions.ActOnArrayTypeTrait(ATT, Loc, Ty.get(), DimExpr.get(),
3394 return Actions.ActOnExpressionTrait(ET, Loc, Expr.get(),
3508 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
3522 Result = Actions.ActOnCastExpr(getCurScope(), Tracker.getOpenLocation(),
3534 Result = Actions.ActOnParenExpr(Tracker.getOpenLocation(),
3583 return Actions.ActOnBuiltinBitCastExpr(KWLoc, DeclaratorInfo, Operand,
tools/clang/lib/Parse/ParseInit.cpp 181 return Actions.ActOnDesignatedInitializer(D, ColonLoc, true,
279 switch (Actions.getObjCMessageKind(
381 return Actions.ActOnDesignatedInitializer(Desig, EqualLoc, false,
389 return Actions.ActOnDesignatedInitializer(Desig, SourceLocation(), false,
402 return Actions.ActOnDesignatedInitializer(Desig, Tok.getLocation(),
439 return Actions.ActOnInitList(LBraceLoc, None, ConsumeBrace());
444 Actions, EnterExpressionEvaluationContext::InitList);
471 SubElt = Actions.ActOnPackExpansion(SubElt.get(), ConsumeToken());
473 SubElt = Actions.CorrectDelayedTyposInExpr(SubElt.get());
508 return Actions.ActOnInitList(LBraceLoc, InitExprs,
557 SubElt = Actions.ActOnPackExpansion(SubElt.get(), ConsumeToken());
tools/clang/lib/Parse/ParseObjc.cpp 52 Actions.CodeCompleteObjCAtDirective(getCurScope());
86 return Actions.ConvertDeclToDeclGroup(nullptr);
93 return Actions.ConvertDeclToDeclGroup(SingleDecl);
140 return Actions.ConvertDeclToDeclGroup(nullptr);
157 return Actions.ConvertDeclToDeclGroup(nullptr);
159 return Actions.ActOnForwardClassDeclaration(atLoc, ClassNames.data(),
167 Sema::ObjCContainerKind ock = Actions.getObjCContainerKind();
171 Decl *Decl = Actions.getObjCDeclContext();
175 Actions.ActOnAtEnd(getCurScope(), AtLoc);
221 Actions.CodeCompleteObjCInterfaceDecl(getCurScope());
241 ObjCTypeParamListScope typeParamScope(Actions, getCurScope());
255 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc);
285 Decl *CategoryType = Actions.ActOnStartCategoryInterface(
310 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc);
340 Actions.FindProtocolDeclaration(/*WarnOnDeclarations=*/true,
352 Actions.ActOnTypedefedProtocols(protocols, protocolLocs,
355 Decl *ClsType = Actions.ActOnStartClassInterface(
435 DeclResult typeParam = Actions.actOnObjCTypeParam(
474 Actions.CodeCompleteObjCProtocolReferences(protocolIdents);
513 DeclResult typeParam = Actions.actOnObjCTypeParam(
555 ObjCTypeParamList *list = Actions.actOnObjCTypeParamList(
575 ObjCTypeParamListScope Scope(Actions, getCurScope());
638 Actions.CodeCompleteOrdinaryName(getCurScope(),
671 Actions.CodeCompleteObjCAtDirective(getCurScope());
706 << (int)Actions.getObjCContainerKind();
761 Decl *Property = Actions.ActOnProperty(
780 Actions.CodeCompleteObjCAtDirective(getCurScope());
788 << (int)Actions.getObjCContainerKind();
795 Actions.ActOnAtEnd(getCurScope(), AtEnd, allMethods, allTUVariables);
848 Actions.CodeCompleteObjCPropertyFlags(getCurScope(), DS);
895 Actions.CodeCompleteObjCPropertySetter(getCurScope());
897 Actions.CodeCompleteObjCPropertyGetter(getCurScope());
1145 Actions.CodeCompleteObjCPassingType(getCurScope(), DS,
1274 TypeResult type = Actions.ActOnTypeName(getCurScope(), declarator);
1334 Actions.CodeCompleteObjCMethodDecl(getCurScope(), mType == tok::minus,
1354 Actions.CodeCompleteObjCMethodDecl(getCurScope(), mType == tok::minus,
1381 Decl *Result = Actions.ActOnMethodDeclaration(
1420 Actions.CodeCompleteObjCMethodDeclSelector(getCurScope(),
1444 Actions.CodeCompleteObjCMethodDeclSelector(getCurScope(),
1487 Decl *Param = Actions.ActOnParamDeclarator(getCurScope(), ParmDecl);
1505 Decl *Result = Actions.ActOnMethodDeclaration(
1531 Actions.CodeCompleteObjCProtocolReferences(ProtocolIdents);
1555 Actions.FindProtocolDeclaration(WarnOnDeclarations, ForObjCContainer,
1570 TypeResult result = Actions.actOnObjCProtocolQualifierType(lAngleLoc,
1629 QualType BaseT = Actions.GetTypeFromParser(baseType);
1631 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Type);
1633 Actions.CodeCompleteObjCProtocolReferences(identifierLocPairs);
1652 Actions.actOnObjCTypeArgsOrProtocolQualifiers(getCurScope(),
1682 = Actions.getTypeName(*identifiers[i], identifierLocs[i], getCurScope());
1688 typeArg, Actions.getASTContext().getPrintingPolicy());
1692 TypeResult fullTypeArg = Actions.ActOnTypeName(getCurScope(), D);
1706 if (!Actions.LookupProtocol(identifiers[i], identifierLocs[i])) {
1725 typeArg = Actions.ActOnPackExpansion(typeArg.get(), ellipsisLoc);
1741 Actions.DiagnoseTypeArgsAndProtocols(foundProtocolId, foundProtocolSrcLoc,
1749 Actions.DiagnoseUnknownTypeName(unknownTypeArgs[i], unknownTypeArgsLoc[i],
1849 return Actions.actOnObjCTypeArgsAndProtocolQualifiers(
1869 Actions.ActOnObjCContainerStartDefinition(interfaceDecl);
1870 Actions.ActOnLastBitfield(T.getCloseLocation(), AllIvarDecls);
1871 Actions.ActOnObjCContainerFinishDefinition();
1874 Actions.ActOnFields(getCurScope(), atLoc, interfaceDecl, AllIvarDecls,
1924 Actions.CodeCompleteObjCAtVisibility(getCurScope());
1954 Actions.CodeCompleteOrdinaryName(getCurScope(),
1969 Actions.ActOnObjCContainerStartDefinition(interfaceDecl);
1972 Decl *Field = Actions.ActOnIvar(
1975 Actions.ActOnObjCContainerFinishDefinition();
2021 Actions.CodeCompleteObjCProtocolDecl(getCurScope());
2036 return Actions.ActOnForwardProtocolDeclaration(AtLoc, ProtoInfo, attrs);
2063 return Actions.ActOnForwardProtocolDeclaration(AtLoc, ProtocolRefs, attrs);
2077 Decl *ProtoType = Actions.ActOnStartProtocolInterface(
2082 return Actions.ConvertDeclToDeclGroup(ProtoType);
2105 Actions.CodeCompleteObjCImplementationDecl(getCurScope());
2125 ObjCTypeParamListScope typeParamScope(Actions, getCurScope());
2143 Actions.CodeCompleteObjCImplementationCategory(getCurScope(), nameId, nameLoc);
2173 ObjCImpDecl = Actions.ActOnStartCategoryImplementation(
2187 ObjCImpDecl = Actions.ActOnStartClassImplementation(
2221 return Actions.ActOnFinishObjCImplementation(ObjCImpDecl, DeclsInGroup);
2253 P.Actions.DefaultSynthesizeProperties(P.getCurScope(), Dcl, AtEnd.getBegin());
2258 P.Actions.ActOnAtEnd(P.getCurScope(), AtEnd);
2291 return Actions.ActOnCompatibilityAlias(atLoc, aliasId, aliasLoc,
2313 Actions.CodeCompleteObjCPropertyDefinition(getCurScope());
2331 Actions.CodeCompleteObjCPropertySynthesizeIvar(getCurScope(), propertyId);
2341 Actions.ActOnPropertyImplDecl(
2391 Actions.CodeCompleteObjCPropertyDefinition(getCurScope());
2403 Actions.ActOnPropertyImplDecl(
2432 return Actions.ActOnObjCAtThrowStmt(atLoc, Res.get(), getCurScope());
2469 operand = Actions.ActOnObjCAtSynchronizedOperand(atLoc, operand.get());
2482 body = Actions.ActOnNullStmt(Tok.getLocation());
2484 return Actions.ActOnObjCAtSynchronizedStmt(atLoc, operand.get(), body.get());
2512 TryBody = Actions.ActOnNullStmt(Tok.getLocation());
2540 FirstPart = Actions.ActOnObjCExceptionDecl(getCurScope(), ParmDecl);
2557 CatchBody = Actions.ActOnNullStmt(Tok.getLocation());
2559 StmtResult Catch = Actions.ActOnObjCAtCatchStmt(AtCatchFinallyLoc,
2581 Actions.ActOnCapturedRegionStart(Tok.getLocation(), getCurScope(),
2591 FinallyBody = Actions.ActOnNullStmt(Tok.getLocation());
2593 Actions.ActOnCapturedRegionError();
2595 FinallyBody = Actions.ActOnCapturedRegionEnd(FinallyBody.get());
2598 FinallyStmt = Actions.ActOnObjCAtFinallyStmt(AtCatchFinallyLoc,
2609 return Actions.ActOnObjCAtTryStmt(atLoc, TryBody.get(),
2632 AutoreleasePoolBody = Actions.ActOnNullStmt(Tok.getLocation());
2633 return Actions.ActOnObjCAutoreleasePoolStmt(atLoc,
2640 if (SkipFunctionBodies && (!MDecl || Actions.canSkipFunctionBody(MDecl)) &&
2642 Actions.ActOnSkippedFunctionBody(MDecl);
2686 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, MDecl, Tok.getLocation(),
2717 Actions.AddAnyMethodToGlobalPool(MDecl);
2728 Actions.CodeCompleteObjCAtStatement(getCurScope());
2748 return Actions.ActOnNullStmt(Tok.getLocation());
2769 Actions.CodeCompleteObjCAtExpression(getCurScope());
2790 ExprResult Lit(Actions.ActOnNumericConstant(Tok));
2796 Lit = Actions.ActOnUnaryOp(getCurScope(), OpLoc, Kind, Lit.get());
2801 Actions.BuildObjCNumericLiteral(AtLoc, Lit.get()));
2900 if (!Actions.isSimpleTypeSpecifier(Tok.getKind())) {
2906 ExprResult Receiver = Actions.CorrectDelayedTyposInExpr(ParseExpression());
2952 TypeResult Type = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
2983 Type = Actions.getTypeName(*Tok.getIdentifierInfo(), Tok.getLocation(),
3015 Actions.CodeCompleteObjCMessageReceiver(getCurScope());
3055 switch (Actions.getObjCMessageKind(getCurScope(), Name, NameLoc,
3096 ExprResult Res = Actions.CorrectDelayedTyposInExpr(ParseExpression());
3153 Actions.CodeCompleteObjCSuperMessage(getCurScope(), SuperLoc, None,
3156 Actions.CodeCompleteObjCClassMessage(getCurScope(), ReceiverType, None,
3159 Actions.CodeCompleteObjCInstanceMessage(getCurScope(), ReceiverExpr,
3191 Actions.CodeCompleteObjCSuperMessage(getCurScope(), SuperLoc,
3195 Actions.CodeCompleteObjCClassMessage(getCurScope(), ReceiverType,
3199 Actions.CodeCompleteObjCInstanceMessage(getCurScope(), ReceiverExpr,
3229 Actions.CodeCompleteObjCSuperMessage(getCurScope(), SuperLoc,
3233 Actions.CodeCompleteObjCClassMessage(getCurScope(), ReceiverType,
3237 Actions.CodeCompleteObjCInstanceMessage(getCurScope(), ReceiverExpr,
3256 Res = Actions.CorrectDelayedTyposInExpr(Res);
3302 return Actions.ActOnSuperMessage(getCurScope(), SuperLoc, Sel,
3305 return Actions.ActOnClassMessage(getCurScope(), ReceiverType, Sel,
3307 return Actions.ActOnInstanceMessage(getCurScope(), ReceiverExpr, Sel,
3337 return Actions.ParseObjCStringLiteral(AtLocs.data(), AtStrings);
3348 return Actions.ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue);
3355 ExprResult Lit(Actions.ActOnCharacterConstant(Tok));
3360 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get());
3369 ExprResult Lit(Actions.ActOnNumericConstant(Tok));
3374 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get());
3397 ValueExpr = Actions.ActOnParenExpr(LPLoc, RPLoc, ValueExpr.get());
3398 return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc),
3418 Res = Actions.CorrectDelayedTyposInExpr(Res.get());
3424 Res = Actions.ActOnPackExpansion(Res.get(), ConsumeToken());
3442 return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args);
3479 KeyExpr = Actions.CorrectDelayedTyposInExpr(KeyExpr.get());
3480 ValueExpr = Actions.CorrectDelayedTyposInExpr(ValueExpr.get());
3508 return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc),
3533 return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(),
3557 return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc,
3580 Actions.CodeCompleteObjCSelector(getCurScope(), KeyIdents);
3606 Actions.CodeCompleteObjCSelector(getCurScope(), KeyIdents);
3623 return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc,
3633 ((parseMethod && !Actions.isObjCMethodDecl(MCDecl)) ||
3634 (!parseMethod && Actions.isObjCMethodDecl(MCDecl)));
3668 Actions.ActOnStartOfObjCMethodDef(getCurScope(), MCDecl);
3670 Actions.ActOnStartOfFunctionDef(getCurScope(), MCDecl);
3677 Actions.ActOnDefaultCtorInitializers(MCDecl);
tools/clang/lib/Parse/ParseOpenMP.cpp 275 Actions.ActOnOpenMPDeclareReductionType(Range.getBegin(), TR);
315 DeclGroupPtrTy DRD = Actions.ActOnOpenMPDeclareReductionDirectiveStart(
316 getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, AS);
327 Actions.ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D);
329 Actions.ActOnFinishFullExpr(ParseAssignmentExpression().get(),
331 Actions.ActOnOpenMPDeclareReductionCombinerEnd(D, CombinerResult.get());
364 Actions.ActOnOpenMPDeclareReductionInitializerStart(getCurScope(),
369 if (Actions.getLangOpts().CPlusPlus) {
370 InitializerResult = Actions.ActOnFinishFullExpr(
378 InitializerResult = Actions.ActOnFinishFullExpr(
382 Actions.ActOnOpenMPDeclareReductionInitializerEnd(
403 return Actions.ActOnOpenMPDeclareReductionDirectiveEnd(getCurScope(), DRD,
414 Actions.CodeCompleteInitializer(getCurScope(), OmpPrivParm);
415 Actions.FinalizeDeclaration(OmpPrivParm);
424 Actions.ActOnInitializerError(OmpPrivParm);
426 Actions.AddInitializerToDecl(OmpPrivParm, Init.get(),
439 QualType PreferredType = Actions.ProduceConstructorSignatureHelp(
451 Actions.ActOnInitializerError(OmpPrivParm);
463 Actions.ActOnParenListExpr(T.getOpenLocation(), RLoc, Exprs);
464 Actions.AddInitializerToDecl(OmpPrivParm, Initializer.get(),
474 Actions.ActOnInitializerError(OmpPrivParm);
476 Actions.AddInitializerToDecl(OmpPrivParm, Init.get(),
480 Actions.ActOnUninitializedDecl(OmpPrivParm);
504 auto &DeclNames = Actions.getASTContext().DeclarationNames;
519 DeclNames.getIdentifier(&Actions.getASTContext().Idents.get("default"));
532 Actions.ActOnOpenMPDeclareMapperType(Range.getBegin(), ParsedType);
548 OMPDeclareMapperDecl *DMD = Actions.ActOnOpenMPDeclareMapperDirectiveStart(
549 getCurScope(), Actions.getCurLexicalContext(), MapperId, MapperType,
556 Actions.StartOpenMPDSABlock(OMPD_declare_mapper, DirName, getCurScope(), Loc);
559 Actions.ActOnOpenMPDeclareMapperDirectiveVarDecl(
568 Actions.StartOpenMPClause(CKind);
578 Actions.EndOpenMPClause();
587 Actions.EndOpenMPDSABlock(nullptr);
591 Actions.ActOnOpenMPDeclareMapperDirectiveEnd(DMD, getCurScope(), Clauses);
614 Name = Actions.GetNameForDeclarator(DeclaratorInfo).getName();
616 return Actions.ActOnOpenMPDeclareMapperVarDecl(getCurScope(), DeclaratorInfo);
790 return Actions.ActOnOpenMPDeclareSimdDirective(
1013 Actions.checkOpenMPDeclareVariantFunction(
1047 Actions.ActOnOpenMPDeclareVariantDirective(
1171 NamedDecl *ND = Actions.lookupOpenMPDeclareTargetName(
1192 Actions.ActOnOpenMPDeclareTargetName(
1199 return Actions.BuildDeclaratorGroup(Decls);
1271 return Actions.ActOnOpenMPThreadprivateDirective(Loc,
1290 Actions.StartOpenMPClause(CKind);
1299 Actions.EndOpenMPClause();
1305 Actions.EndOpenMPClause();
1317 return Actions.ActOnOpenMPAllocateDirective(Loc, Helper.getIdentifiers(),
1336 Actions.StartOpenMPClause(CKind);
1345 Actions.EndOpenMPClause();
1351 Actions.EndOpenMPClause();
1361 return Actions.ActOnOpenMPRequiresDirective(StartLoc, Clauses);
1440 if (!Actions.ActOnStartOpenMPDeclareTargetDirective(DTLoc))
1474 Actions.ActOnFinishOpenMPDeclareTargetDirective();
1475 return Actions.BuildDeclaratorGroup(Decls);
1617 DeclGroupPtrTy Res = Actions.ActOnOpenMPThreadprivateDirective(
1619 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation());
1644 Actions.StartOpenMPClause(CKind);
1653 Actions.EndOpenMPClause();
1659 Actions.EndOpenMPClause();
1669 DeclGroupPtrTy Res = Actions.ActOnOpenMPAllocateDirective(
1671 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation());
1689 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation());
1700 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation());
1797 Actions.StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), Loc);
1797 Actions.StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), Loc);
1805 Actions.StartOpenMPClause(CKind);
1818 Actions.EndOpenMPClause();
1841 Actions.ActOnOpenMPRegionStart(DKind, getCurScope());
1845 AssociatedStmt = (Sema::CompoundScopeRAII(Actions), ParseStatement());
1846 AssociatedStmt = Actions.ActOnOpenMPRegionEnd(AssociatedStmt, Clauses);
1849 Actions.ActOnOpenMPRegionStart(DKind, getCurScope());
1850 AssociatedStmt = (Sema::CompoundScopeRAII(Actions),
1851 Actions.ActOnCompoundStmt(Loc, Loc, llvm::None,
1853 AssociatedStmt = Actions.ActOnOpenMPRegionEnd(AssociatedStmt, Clauses);
1855 Directive = Actions.ActOnOpenMPExecutableDirective(
1860 Actions.EndOpenMPDSABlock(Directive.get());
1925 Callback(SS, Actions.GetNameFromUnqualifiedId(Name));
2139 Val = Actions.ActOnFinishFullExpr(Val.get(), ELoc, /*DiscardedValue*/ false);
2196 return Actions.ActOnOpenMPSingleExprClause(Kind, Val.get(), Loc, LLoc, RLoc);
2212 return Actions.ActOnOpenMPSimpleClause(
2249 return Actions.ActOnOpenMPClause(Kind, Loc, Tok.getLocation());
2382 Actions.ActOnFinishFullExpr(Val.get(), ELoc, /*DiscardedValue*/ false);
2395 return Actions.ActOnOpenMPSingleExprWithArgClause(
2477 auto &DeclNames = Actions.getASTContext().DeclarationNames;
2588 Actions.GetNameFromUnqualifiedId(UnqualifiedReductionId);
2693 Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression());
2694 Tail = Actions.ActOnFinishFullExpr(Tail.get(), T.getOpenLocation(),
2727 Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression());
2758 Actions.ActOnFinishFullExpr(Tail.get(), ELoc, /*DiscardedValue*/ false);
2838 return Actions.ActOnOpenMPVarListClause(
tools/clang/lib/Parse/ParsePragma.cpp 304 PCSectionHandler = std::make_unique<PragmaClangSectionHandler>(Actions);
321 MSCommentHandler = std::make_unique<PragmaCommentHandler>(Actions);
327 std::make_unique<PragmaDetectMismatchHandler>(Actions);
355 std::make_unique<PragmaForceCUDAHostDeviceHandler>(Actions);
359 OptimizeHandler = std::make_unique<PragmaOptimizeHandler>(Actions);
500 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc);
509 Actions.ActOnPragmaVisibility(VisType, VisLoc);
527 Alignment = Actions.ActOnNumericConstant(Info->Alignment);
533 Actions.ActOnPragmaPack(PragmaLoc, Info->Action, Info->SlotLabel,
544 Actions.ActOnPragmaMSStruct(Kind);
553 Actions.ActOnPragmaOptionsAlign(Kind, Tok.getLocation());
563 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II);
570 Actions.ActOnPragmaWeakID(Tok.getIdentifierInfo(), PragmaLoc,
584 Actions.ActOnPragmaWeakAlias(WeakName, AliasName, PragmaLoc,
598 Actions.ActOnPragmaRedefineExtname(RedefName, AliasName, RedefLoc,
621 Actions.ActOnPragmaFPContract(FPC);
644 Actions.ActOnPragmaFEnvAccess(FPC);
663 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default,
670 Actions.ActOnCapturedRegionError();
674 return Actions.ActOnCapturedRegionEnd(R.get());
692 auto &Opt = Actions.getOpenCLOptions();
708 Actions.setCurrentOpenCLExtension(Name);
710 if (Name != Actions.getCurrentOpenCLExtension())
712 Actions.setCurrentOpenCLExtension("");
729 Actions.ActOnPragmaMSPointersToMembers(RepresentationMethod, PragmaLoc);
739 Actions.ActOnPragmaMSVtorDisp(Action, PragmaLoc, Mode);
851 Actions.ActOnPragmaMSSection(PragmaLocation, SectionFlags, SegmentName);
933 Actions.ActOnPragmaMSSeg(PragmaLocation, Action, SlotLabel,
969 cast<StringLiteral>(Actions.ActOnStringLiteral(Toks, nullptr).get());
996 Actions.ActOnPragmaMSInitSeg(PragmaLocation, SegmentName);
1025 Actions.Context, Info->PragmaName.getLocation(), PragmaNameInfo);
1033 Actions.Context, Info->Option.getLocation(), OptionInfo);
1113 Hint.StateLoc = IdentifierLoc::create(Actions.Context, StateLoc, StateInfo);
1134 Actions.CheckLoopHintExpr(R.get(), Toks[0].getLocation()))
1406 Actions.ActOnPragmaAttributePop(PragmaLoc, Info->Namespace);
1416 Actions.ActOnPragmaAttributeEmptyPush(PragmaLoc, Info->Namespace);
1569 Actions.ActOnPragmaAttributeEmptyPush(PragmaLoc, Info->Namespace);
1571 Actions.ActOnPragmaAttributeAttribute(Attribute, PragmaLoc,
2769 Actions.ActOnPragmaFPContract(FPC);
tools/clang/lib/Parse/ParseStmt.cpp 115 return Actions.ProcessStmtAttributes(Res.get(), Attrs, Attrs.Range);
173 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement);
225 return Actions.ActOnDeclStmt(Decl, DeclStart, DeclEnd);
251 return Actions.ActOnNullStmt(ConsumeToken(), HasLeadingEmptyMacro);
293 Res = Actions.ActOnFinishFullStmt(Res.get());
441 return Actions.ActOnExprStmtError();
445 Actions.CheckCaseExpression(Expr.get())) {
497 return Actions.ActOnSEHTryBlock(false /* IsCXXTry */,
529 FilterExpr = Actions.CorrectDelayedTyposInExpr(ParseExpression());
552 return Actions.ActOnSEHExceptBlock(ExceptLoc, FilterExpr.get(), Block.get());
569 Actions.ActOnStartSEHFinallyBlock();
573 Actions.ActOnAbortSEHFinallyBlock();
577 return Actions.ActOnFinishSEHFinallyBlock(FinallyLoc, Block.get());
587 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope());
637 SubStmt = Actions.ProcessStmtAttributes(SubStmt.get(), TempAttrs,
650 SubStmt = Actions.ActOnNullStmt(ColonLoc);
652 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(),
654 Actions.ProcessDeclAttributeList(Actions.CurScope, LD, attrs);
654 Actions.ProcessDeclAttributeList(Actions.CurScope, LD, attrs);
657 return Actions.ActOnLabelStmt(IdentTok.getLocation(), LD, ColonLoc,
705 Actions.CodeCompleteCase(getCurScope());
759 Actions.ActOnCaseStmt(CaseLoc, LHS, DotDotDotLoc, RHS, ColonLoc);
774 Actions.ActOnCaseStmtBody(DeepestParsedCaseStmt, Case.get());
802 SubStmt = Actions.ActOnNullStmt(SourceLocation());
803 Actions.ActOnCaseStmtBody(DeepestParsedCaseStmt, SubStmt.get());
854 SubStmt = Actions.ActOnNullStmt(ColonLoc);
856 return Actions.ActOnDefaultStmt(DefaultLoc, ColonLoc,
1004 E = Actions.ActOnStmtExprResult(E);
1005 return Actions.ActOnExprStmt(E, /*DiscardedValue=*/!IsStmtExprResult);
1019 Sema::FPContractStateRAII SaveFPContractState(Actions);
1026 Sema::CompoundScopeRAII CompoundScope(Actions, isStmtExpr);
1047 DeclsInGroup.push_back(Actions.LookupOrCreateLabel(II, IdLoc, LabelLoc));
1055 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
1056 StmtResult R = Actions.ActOnDeclStmt(Res, LabelLoc, Tok.getLocation());
1102 R = Actions.ActOnDeclStmt(Res, DeclStart, DeclEnd);
1117 R = Actions.ProcessStmtAttributes(R.get(), attrs, attrs.Range);
1133 return Actions.ActOnCompoundStmt(T.getOpenLocation(), CloseLoc,
1165 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK);
1275 Actions, Sema::ExpressionEvaluationContext::DiscardedStatement, nullptr,
1309 Actions, Sema::ExpressionEvaluationContext::DiscardedStatement, nullptr,
1317 Actions.CodeCompleteAfterIf(getCurScope());
1338 ThenStmt = Actions.ActOnNullStmt(ThenStmtLoc);
1340 ElseStmt = Actions.ActOnNullStmt(ElseStmtLoc);
1342 return Actions.ActOnIfStmt(IfLoc, IsConstexpr, InitStmt.get(), Cond,
1387 Actions.ActOnStartOfSwitchStmt(SwitchLoc, InitStmt.get(), Cond);
1428 return Actions.ActOnFinishSwitchStmt(SwitchLoc, Switch.get(), Body.get());
1497 return Actions.ActOnWhileStmt(WhileLoc, Cond, Body.get());
1561 Cond = Actions.CorrectDelayedTyposInExpr(Cond);
1568 return Actions.ActOnDoStmt(DoLoc, Body.get(), WhileLoc, T.getOpenLocation(),
1661 FullExprArg ThirdPart(Actions);
1664 Actions.CodeCompleteOrdinaryName(getCurScope(),
1702 ForRangeInfo.LoopVar = Actions.ActOnCXXForRangeIdentifier(
1721 FirstPart = Actions.ActOnDeclStmt(DG, DeclStart, Tok.getLocation());
1730 Actions.ActOnForEachDeclStmt(DG);
1735 Actions.CodeCompleteObjCForCollection(getCurScope(), DG);
1745 Value = Actions.CorrectDelayedTyposInExpr(ParseExpression());
1752 FirstPart = Actions.ActOnForEachLValueExpr(Value.get());
1761 FirstPart = Actions.ActOnExprStmt(Value, !IsRangeBasedFor);
1771 Actions.CodeCompleteObjCForCollection(getCurScope(), nullptr);
1834 Actions.ActOnCondition(getCurScope(), ForLoc, SecondExpr.get(),
1858 ThirdPart = Actions.MakeFullDiscardedValueExpr(Third.get());
1879 Actions.CorrectDelayedTyposInExpr(ForRangeInfo.RangeExpr.get());
1880 ForRangeStmt = Actions.ActOnCXXForRangeStmt(
1888 ForEachStmt = Actions.ActOnObjCForCollectionStmt(ForLoc,
1896 Actions.ActOnOpenMPLoopInitialization(ForLoc, FirstPart.get());
1934 return Actions.FinishObjCForCollectionStmt(ForEachStmt.get(),
1938 return Actions.FinishCXXForRangeStmt(ForRangeStmt.get(), Body.get());
1940 return Actions.ActOnForStmt(ForLoc, T.getOpenLocation(), FirstPart.get(),
1958 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(),
1960 Res = Actions.ActOnGotoStmt(GotoLoc, Tok.getLocation(), LD);
1971 Res = Actions.ActOnIndirectGotoStmt(GotoLoc, StarLoc, R.get());
1988 return Actions.ActOnContinueStmt(ContinueLoc, getCurScope());
1999 return Actions.ActOnBreakStmt(BreakLoc, getCurScope());
2017 PreferredType.enterReturn(Actions, Tok.getLocation());
2020 Actions.CodeCompleteExpression(getCurScope(),
2042 return Actions.ActOnCoreturnStmt(getCurScope(), ReturnLoc, R.get());
2043 return Actions.ActOnReturnStmt(ReturnLoc, R.get(), getCurScope());
2080 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, Decl, LBraceLoc,
2087 PragmaStackSentinel(Actions, "InternalPragmaState", IsCXXMethod);
2096 Sema::CompoundScopeRAII CompoundScope(Actions);
2097 FnBody = Actions.ActOnCompoundStmt(LBraceLoc, LBraceLoc, None, false);
2101 return Actions.ActOnFinishFunctionBody(Decl, FnBody.get());
2113 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, Decl, TryLoc,
2120 Actions.ActOnDefaultCtorInitializers(Decl);
2126 PragmaStackSentinel(Actions, "InternalPragmaState", IsCXXMethod);
2133 Sema::CompoundScopeRAII CompoundScope(Actions);
2134 FnBody = Actions.ActOnCompoundStmt(LBraceLoc, LBraceLoc, None, false);
2138 return Actions.ActOnFinishFunctionBody(Decl, FnBody.get());
2238 return Actions.ActOnSEHTryBlock(true /* IsCXXTry */,
2262 return Actions.ActOnCXXTryBlock(TryLoc, TryBlock.get(), Handlers);
2307 ExceptionDecl = Actions.ActOnExceptionDeclarator(getCurScope(), ExDecl);
2323 return Actions.ActOnCXXCatchBlock(CatchLoc, ExceptionDecl, Block.get());
2345 StmtResult DepResult = Actions.ActOnMSDependentExistsStmt(Result.KeywordLoc,
tools/clang/lib/Parse/ParseStmtAsm.cpp 243 Result = Actions.LookupInlineAsmIdentifier(SS, TemplateKWLoc, Id,
256 Result = Actions.LookupInlineAsmVarDeclField(Result.get(), Id->getName(),
549 const llvm::Triple &TheTriple = Actions.Context.getTargetInfo().getTriple();
569 return Actions.ActOnMSAsmStmt(AsmLoc, LBraceLocs[0], AsmToks, StringRef(),
580 const TargetOptions &TO = Actions.Context.getTargetInfo().getTargetOpts();
658 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get();
665 return Actions.ActOnMSAsmStmt(AsmLoc, LBraceLocs[0], AsmToks, AsmStringIR,
753 return Actions.ActOnGCCAsmStmt(AsmLoc, /*isSimple*/ true, isVolatile,
839 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(),
847 Actions.ActOnAddrLabel(Tok.getLocation(), Tok.getLocation(), LD);
860 return Actions.ActOnGCCAsmStmt(
922 ExprResult Res = Actions.CorrectDelayedTyposInExpr(ParseExpression());
tools/clang/lib/Parse/ParseTemplate.cpp 133 Actions.CorrectDelayedTyposInExpr(ParseConstraintExpression());
145 ParamLists.push_back(Actions.ActOnTemplateParameterList(
220 Decl *Decl = Actions.ParsedFreeStandingDeclSpec(
299 FakedParamLists.push_back(Actions.ActOnTemplateParameterList(
398 Actions.CorrectDelayedTyposInExpr(ParseConstraintExpression());
407 return Actions.ActOnConceptDefinition(getCurScope(),
661 return Actions.ActOnTypeParameter(getCurScope(), TypenameKeyword, EllipsisLoc,
750 Actions.ActOnTemplateParameterList(Depth, SourceLocation(),
770 return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc,
817 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
819 DefaultArg = Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression());
825 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl,
1137 TypeResult Type = Actions.ActOnTemplateIdType(
1217 = Actions.ActOnTemplateIdType(getCurScope(),
1286 Actions.ActOnDependentTemplateName(
1303 TemplateNameKind TNK = Actions.isTemplateName(
1318 Result = Actions.ActOnPackExpansion(Result, EllipsisLoc);
1341 Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated,
1347 return Actions.ActOnTemplateTypeArgument(TypeArg);
1390 Arg = Actions.ActOnPackExpansion(Arg, EllipsisLoc);
1456 Actions, Actions.Context.getTranslationUnitDecl());
1456 Actions, Actions.Context.getTranslationUnitDecl());
1472 DeclContext *NextContaining = Actions.getContainingDC(DD);
1477 NextContaining = Actions.getContainingDC(DD);
1485 unsigned NumParamLists = Actions.ActOnReenterTemplateScope(
1490 Actions.PushDeclContext(Actions.getCurScope(), CDC.getDC());
1490 Actions.PushDeclContext(Actions.getCurScope(), CDC.getDC());
1512 Sema::ContextRAII FunctionSavedContext(Actions,
1513 Actions.getContainingDC(FunD));
1515 Actions.ActOnStartOfFunctionDef(getCurScope(), FunD);
1523 Actions.ActOnDefaultCtorInitializers(LPT.D);
1533 Actions.UnmarkAsLateParsedTemplate(FunD);
1535 Actions.ActOnFinishFunctionBody(LPT.D, nullptr);
1576 Actions.diagnoseExprIntendedAsTemplateName(getCurScope(), LHS,
1591 if (!Actions.mightBeIntendedToBeTemplateName(PotentialTemplateName,
1605 Actions.diagnoseExprIntendedAsTemplateName(
1655 Actions.diagnoseExprIntendedAsTemplateName(
tools/clang/lib/Parse/ParseTentative.cpp 1535 Actions.RestoreNestedNameSpecifierAnnotation(Tok.getAnnotationValue(),
tools/clang/lib/Parse/Parser.cpp 58 Actions.CurScope = nullptr;
206 Actions.getASTContext().getPrintingPolicy())
370 Actions.CurScope = N;
372 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags);
382 Actions.ActOnPopScope(Tok.getLocation(), getCurScope());
385 Actions.CurScope = OldScope->getParent();
419 Actions.CurScope = nullptr;
449 Actions.ActOnTranslationUnitScope(getCurScope());
530 Actions.Initialize();
554 Actions.ActOnStartOfTranslationUnit();
561 if (NoTopLevelDecls && !Actions.getASTContext().getExternalSource() &&
625 Result = Actions.ConvertDeclToDeclGroup(ImportDecl);
630 Actions.ActOnModuleInclude(Tok.getLocation(),
637 Actions.ActOnModuleBegin(Tok.getLocation(), reinterpret_cast<Module *>(
643 Actions.ActOnModuleEnd(Tok.getLocation(), reinterpret_cast<Module *>(
651 Actions.SetLateTemplateParser(LateTemplateParserCallback,
656 Actions.ActOnEndOfTranslationUnit();
780 Actions.ActOnEmptyDeclaration(getCurScope(), attrs, Tok.getLocation());
818 SingleDecl = Actions.ActOnFileScopeAsmDecl(Result.get(), StartLoc, EndLoc);
835 Actions.CodeCompleteObjCMethodDecl(getCurScope(),
839 Actions.CodeCompleteOrdinaryName(
908 return Actions.ConvertDeclToDeclGroup(
936 return Actions.ConvertDeclToDeclGroup(SingleDecl);
1040 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none,
1044 Actions.setCurrentOpenCLExtensionForDecl(TheDecl);
1047 return Actions.BuildDeclaratorGroup(decls);
1049 return Actions.ConvertDeclToDeclGroup(TheDecl);
1072 Actions.getASTContext().getPrintingPolicy()))
1081 return Actions.ConvertDeclToDeclGroup(
1092 return Actions.ConvertDeclToDeclGroup(TheDecl);
1142 const PrintingPolicy &Policy = Actions.getASTContext().getPrintingPolicy();
1184 Actions.canDelayFunctionBody(D)) {
1192 Decl *DP = Actions.HandleDeclarator(ParentScope, D,
1197 if (SkipFunctionBodies && (!DP || Actions.canSkipFunctionBody(DP)) &&
1200 return Actions.ActOnSkippedFunctionBody(DP);
1208 Actions.CheckForFunctionRedefinition(FnD);
1209 Actions.MarkAsLateParsedTemplate(FnD, DP, Toks);
1217 Actions.CurContext->isTranslationUnit()) {
1223 Decl *FuncDecl = Actions.HandleDeclarator(ParentScope, D,
1243 Decl *Res = Actions.ActOnStartOfFunctionDef(getCurScope(), D,
1271 Actions.SetDeclDeleted(Res, KWLoc);
1278 Actions.SetDeclDefaulted(Res, KWLoc);
1293 Actions.ActOnFinishFunctionBody(Res, GeneratedBody, false);
1297 if (SkipFunctionBodies && (!Res || Actions.canSkipFunctionBody(Res)) &&
1300 Actions.ActOnSkippedFunctionBody(Res);
1301 return Actions.ActOnFinishFunctionBody(Res, nullptr, false);
1315 Actions.ActOnFinishFunctionBody(Res, nullptr);
1319 Actions.ActOnDefaultCtorInitializers(Res);
1404 Actions.ActOnParamDeclarator(getCurScope(), ParmDeclarator);
1460 Actions.ActOnFinishKNRParamDeclarations(getCurScope(), D, Tok.getLocation());
1549 Tok.setAnnotationValue(Actions.SaveNestedNameSpecifierAnnotation(SS));
1603 Sema::NameClassification Classification = Actions.ClassifyName(
1616 Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, FakeNext,
1826 Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS,
1842 Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS,
1883 if (ParsedType Ty = Actions.getTypeName(
1939 if (TemplateNameKind TNK = Actions.isTemplateName(
2045 Actions.CodeCompleteOrdinaryName(getCurScope(),
2052 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Class);
2058 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Namespace);
2066 Actions.CodeCompletePreprocessorDirective(InConditional);
2070 Actions.CodeCompleteInPreprocessorConditionalExclusion(getCurScope());
2074 Actions.CodeCompletePreprocessorMacroName(IsDefinition);
2078 Actions.CodeCompletePreprocessorExpression();
2084 Actions.CodeCompletePreprocessorMacroArgument(getCurScope(), Macro, MacroInfo,
2089 Actions.CodeCompleteIncludedFile(Dir, IsAngled);
2093 Actions.CodeCompleteNaturalLanguage();
2134 switch (Actions.CheckMicrosoftIfExistsSymbol(getCurScope(), Result.KeywordLoc,
2187 Actions.getASTConsumer().HandleTopLevelDecl(Result.get());
2234 return Actions.ActOnGlobalModuleFragmentDecl(ModuleLoc);
2248 return Actions.ActOnPrivateModuleFragmentDecl(ModuleLoc, PrivateLoc);
2275 return Actions.ActOnModuleDecl(StartLoc, ModuleLoc, MDK, Path, IsFirstDecl);
2345 Actions.ActOnModuleImport(StartLoc, ExportLoc, ImportLoc, HeaderUnit);
2347 Import = Actions.ActOnModuleImport(StartLoc, ExportLoc, ImportLoc, Path);
2380 Actions.CodeCompleteModuleImport(UseLoc, Path);
2414 Actions.ActOnModuleEnd(Tok.getLocation(),
2426 Actions.ActOnModuleBegin(Tok.getLocation(),
2435 Actions.ActOnModuleInclude(Tok.getLocation(),