Home | History | Annotate | Download | only in Sema

Lines Matching refs:getSema

137   Sema &getSema() const { return SemaRef; }
950 return getSema().CheckPackExpansion(Pattern, PatternRange, EllipsisLoc,
1004 return getSema().Context.getSubstTemplateTemplateParmPack(Param, ArgPack);
1015 return getSema().ActOnCompoundStmt(LBraceLoc, RBraceLoc, Statements,
1028 return getSema().ActOnCaseStmt(CaseLoc, LHS, EllipsisLoc, RHS,
1037 getSema().ActOnCaseStmtBody(S, Body);
1048 return getSema().ActOnDefaultStmt(DefaultLoc, ColonLoc, SubStmt,
1078 return getSema().ActOnIfStmt(IfLoc, Cond, CondVar, Then, ElseLoc, Else);
1087 return getSema().ActOnStartOfSwitchStmt(SwitchLoc, Cond,
1097 return getSema().ActOnFinishSwitchStmt(SwitchLoc, Switch, Body);
1106 return getSema
1116 return getSema().ActOnDoStmt(DoLoc, Body, WhileLoc, LParenLoc,
1128 return getSema().ActOnForStmt(ForLoc, LParenLoc, Init, Cond,
1138 return getSema().ActOnGotoStmt(GotoLoc, LabelLoc, Label);
1148 return getSema().ActOnIndirectGotoStmt(GotoLoc, StarLoc, Target);
1156 return getSema().ActOnReturnStmt(ReturnLoc, Result);
1166 Sema::DeclGroupPtrTy DG = getSema().BuildDeclaratorGroup(Decls, NumDecls);
1167 return getSema().ActOnDeclStmt(DG, StartLoc, EndLoc);
1180 return getSema().ActOnGCCAsmStmt(AsmLoc, IsSimple, IsVolatile, NumOutputs,
1191 return getSema().ActOnMSAsmStmt(AsmLoc, LBraceLoc, AsmToks, EndLoc);
1202 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, CatchStmts,
1212 return getSema().BuildObjCExceptionDecl(TInfo, T,
1226 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc,
1236 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body);
1245 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand);
1254 return getSema().ActOnObjCAtSynchronizedOperand(atLoc, object);
1263 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body);
1272 return getSema().ActOnObjCAutoreleasePoolStmt(AtLoc, Body);
1284 StmtResult ForEachStmt = getSema().ActOnObjCForCollectionStmt(ForLoc,
1291 return getSema().FinishObjCForCollectionStmt(ForEachStmt.take(), Body);
1303 VarDecl *Var = getSema().BuildExceptionDeclaration(0, Declarator,
1306 getSema().CurContext->addDecl(Var);
1317 return Owned(new (getSema().Context) CXXCatchStmt(CatchLoc, ExceptionDecl,
1328 return getSema().ActOnCXXTryBlock(TryLoc, TryBlock, Handlers);
1341 return getSema().BuildCXXForRangeStmt(ForLoc, ColonLoc, Range, BeginEnd,
1355 return getSema().BuildMSDependentExistsStmt(KeywordLoc, IsIfExists,
1364 return getSema().FinishCXXForRangeStmt(ForRange, Body);
1371 return getSema().ActOnSEHTryBlock(IsCXXTry,TryLoc,TryBlock,Handler);
1377 return getSema().ActOnSEHExceptBlock(Loc,FilterExpr,Block);
1382 return getSema().ActOnSEHFinallyBlock(Loc,Block);
1392 return getSema().BuildDeclarationNameExpr(SS, R, RequiresADL);
1409 return getSema().BuildDeclarationNameExpr(SS, NameInfo, VD);
1418 return getSema().ActOnParenExpr(LParen, RParen, SubExpr);
1441 return getSema().BuildUnaryOp(/*Scope=*/0, OpLoc, Opc, SubExpr);
1453 return getSema().BuildBuiltinOffsetOf(OperatorLoc, Type, Components,
1466 return getSema().CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, R);
1478 = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, OpLoc, ExprKind);
1493 return getSema().ActOnArraySubscriptExpr(/*Scope=*/0, LHS,
1506 return getSema().ActOnCallExpr(/*Scope=*/0, Callee, LParenLoc,
1523 ExprResult BaseResult = getSema().PerformMemberExprBaseConversion(Base,
1534 getSema().PerformObjectMemberConversion(BaseResult.take(),
1542 new (getSema().Context) MemberExpr(Base, isArrow,
1546 return getSema().Owned(ME);
1557 LookupResult R(getSema(), MemberNameInfo, Sema::LookupMemberName);
1561 return getSema().BuildMemberReferenceExpr(Base, BaseType, OpLoc, isArrow,
1574 return getSema().BuildBinOp(/*Scope=*/0, OpLoc, Opc, LHS, RHS);
1586 return getSema().ActOnConditionalOp(QuestionLoc, ColonLoc, Cond,
1598 return getSema().BuildCStyleCastExpr(LParenLoc, TInfo, RParenLoc,
1610 return getSema().BuildCompoundLiteralExpr(LParenLoc, TInfo, RParenLoc,
1625 return getSema().BuildMemberReferenceExpr(Base, Base->getType(),
1687 return getSema().BuildVAArgExpr(BuiltinLoc,
1699 return getSema().ActOnParenListExpr(LParenLoc, RParenLoc, SubExprs);
1709 return getSema().ActOnAddrLabel(AmpAmpLoc, LabelLoc, Label);
1719 return getSema().ActOnStmtExpr(LParenLoc, SubStmt, RParenLoc);
1745 return getSema().CreateGenericSelectionExpr(KeyLoc, DefaultLoc, RParenLoc,
1816 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_static_cast,
1833 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_dynamic_cast,
1850 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_reinterpret_cast,
1867 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_const_cast,
1881 return getSema().BuildCXXTypeConstructExpr(TInfo, LParenLoc,
1894 return getSema().BuildCXXTypeId(TypeInfoType, TypeidLoc, Operand,
1907 return getSema().BuildCXXTypeId(TypeInfoType, TypeidLoc, Operand,
1919 return getSema().BuildCXXUuidof(TypeInfoType, TypeidLoc, Operand,
1931 return getSema().BuildCXXUuidof(TypeInfoType, TypeidLoc, Operand,
1943 getSema().CheckCXXThisCapture(ThisLoc);
1944 return getSema().Owned(
1945 new (getSema().Context) CXXThisExpr(ThisLoc, ThisType,
1955 return getSema().BuildCXXThrow(ThrowLoc, Sub, IsThrownVariableInScope);
1965 return getSema().Owned(CXXDefaultArgExpr::Create(getSema().Context, Loc,
1976 return getSema().BuildCXXTypeConstructExpr(TSInfo, LParenLoc,
1995 return getSema().BuildCXXNew(StartLoc, UseGlobal,
2015 return getSema().ActOnCXXDelete(StartLoc, IsGlobalDelete, IsArrayForm,
2027 return getSema().BuildUnaryTypeTrait(Trait, StartLoc, T, RParenLoc);
2039 return getSema().BuildBinaryTypeTrait(Trait, StartLoc, LhsT, RhsT, RParenLoc);
2050 return getSema().BuildTypeTrait(Trait, StartLoc, Args, RParenLoc);
2062 return getSema().BuildArrayTypeTrait(Trait, StartLoc, TSInfo, DimExpr, RParenLoc);
2073 return getSema().BuildExpressionTrait(Trait, StartLoc, Queried, RParenLoc);
2091 return getSema().BuildQualifiedTemplateIdExpr(SS, TemplateKWLoc,
2094 return getSema().BuildQualifiedDeclarationNameExpr(SS, NameInfo,
2107 return getSema().BuildTemplateIdExpr(SS, TemplateKWLoc, R, RequiresADL,
2126 if (getSema().CompleteConstructorCall(Constructor, Args, Loc,
2130 return getSema().BuildCXXConstructExpr(Loc, T, Constructor, IsElidable,
2146 return getSema().BuildCXXTypeConstructExpr(TSInfo,
2160 return getSema().BuildCXXTypeConstructExpr(TSInfo,
2240 return getSema().BuildObjCBoxedExpr(SR, ValueExpr);
2249 return getSema().BuildObjCArrayLiteral(Range,
2257 return getSema().BuildObjCSubscriptExpression(RB, Base, Key,
2268 return getSema().BuildObjCDictionaryLiteral(Range, Elements, NumElements);
2321 ExprResult Base = getSema().Owned(BaseArg);
2322 LookupResult R(getSema(), Ivar->getDeclName(), IvarLoc,
2324 ExprResult Result = getSema().LookupMemberExpr(R, Base, IsArrow,
2334 return getSema().BuildMemberReferenceExpr(Base.get(), Base.get()->getType(),
2350 ExprResult Base = getSema().Owned(BaseArg);
2351 LookupResult R(getSema(), Property->getDeclName(), PropertyLoc,
2354 ExprResult Result = getSema().LookupMemberExpr(R, Base, IsArrow,
2363 return getSema().BuildMemberReferenceExpr(Base.get(), Base.get()->getType(),
2382 new (getSema().Context) ObjCPropertyRefExpr(Getter, Setter, T,
2394 ExprResult Base = getSema().Owned(BaseArg);
2395 LookupResult R(getSema(), &getSema().Context.Idents.get("isa"), IsaLoc,
2397 ExprResult Result = getSema().LookupMemberExpr(R, Base, IsArrow,
2406 return getSema().BuildMemberReferenceExpr(Base.get(), Base.get()->getType(),
2459 = getSema().CheckPackExpansion(Pattern.getSourceExpression(),
2485 = getSema().CheckPackExpansion(Pattern.getTypeSourceInfo(),
2503 return getSema().CheckPackExpansion(Pattern, EllipsisLoc, NumExpansions);
2559 return getSema().ActOnExprStmt(E);
2662 getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
2682 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
2706 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
3080 EnterExpressionEvaluationContext Unevaluated(getSema(),
3192 getSema().Context);
3195 getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
3216 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
3232 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
3288 TypeSourceInfo *DI = getSema().Context.getTrivialTypeSourceInfo(T,
4047 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
4090 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
4120 getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
4137 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
4168 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
4178 NewType = getSema().Context.getPackExpansionType(NewType,
4421 E = getSema().ActOnDecltypeExpression(E.take());
4771 = getSema().Context.getDependentTemplateSpecializationType(
5111 Sema::CompoundScopeRAII CompoundScope(getSema());
5258 ExprResult CondE = getSema().ActOnBooleanCondition(0, S->getIfLoc(),
5267 Sema::FullExprArg FullCond(getSema().MakeFullExpr(Cond.take()));
5353 ExprResult CondE = getSema().ActOnBooleanCondition(0, S->getWhileLoc(),
5361 Sema::FullExprArg FullCond(getSema().MakeFullExpr(Cond.take()));
5430 ExprResult CondE = getSema().ActOnBooleanCondition(0, S->getForLoc(),
5439 Sema::FullExprArg FullCond(getSema().MakeFullExpr(Cond.take()));
5448 Sema::FullExprArg FullInc(getSema().MakeFullDiscardedValueExpr(Inc.get()));
5728 return getSema().Owned(S);
5977 switch (getSema().CheckMicrosoftIfExistsSymbol(/*S=*/0, SS, NameInfo)) {
5982 return new (getSema().Context) NullStmt(S->getKeywordLoc());
5988 return new (getSema().Context) NullStmt(S->getKeywordLoc());
6520 Sema::FPContractStateRAII FPContractState(getSema());
6521 getSema().FPFeatures.fp_contract = E->isFPContractable();
6950 Sema::FPContractStateRAII FPContractState(getSema());
6951 getSema().FPFeatures.fp_contract = E->isFPContractable();
7166 DeclContext *DC = getSema().getFunctionLevelDeclContext();
7169 T = MD->getThisType(getSema().Context);
7171 T = getSema().Context.getPointerType(
7172 getSema().Context.getRecordType(Record));
7181 getSema().CheckCXXThisCapture(E->getLocStart());
7642 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
7938 = getSema().createLambdaClosureType(E->getIntroducerRange(),
7954 = getSema().startLambdaDefinition(Class, E->getIntroducerRange(),
7968 Sema::ContextRAII SavedContext(getSema(), CallOperator);
7972 = getSema().enterLambdaScope(CallOperator, E->getIntroducerRange(),
7987 getSema().finishLambdaExplicitCaptures(LSI);
7993 getSema().CheckCXXThisCapture(C->getLocation(), C->isExplicit());
8022 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
8032 getSema().tryCaptureVariable(CapturedVar, C->getLocation(), Kind);
8050 getSema().tryCaptureVariable(CapturedVar, C->getLocation(), Kind);
8053 getSema().finishLambdaExplicitCaptures(LSI);
8058 getSema().PushExpressionEvaluationContext(Sema::PotentiallyEvaluated);
8061 getSema().ActOnLambdaError(E->getLocStart(), /*CurScope=*/0,
8069 getSema().ActOnLambdaError(E->getLocStart(), /*CurScope=*/0,
8074 return getSema().ActOnLambdaExpr(E->getLocStart(), Body.take(),
8216 Base = getSema().PerformMemberExprBaseConversion(Base.take(),
8464 getSema().collectUnexpandedParameterPacks(OrigElement.Key, Unexpanded);
8465 getSema().collectUnexpandedParameterPacks(OrigElement.Value, Unexpanded);
8487 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
8516 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
8831 getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/0);
8841 getSema().Diag(E->getCaretLocation(),
8844 getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/0);
8865 getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/0);
9164 getSema().ActOnDependentTemplateName(/*Scope=*/0,
9184 getSema().ActOnDependentTemplateName(/*Scope=*/0,
9206 return getSema().CreateBuiltinArraySubscriptExpr(First,
9219 return getSema().CreateBuiltinUnaryOp(OpLoc, Opc, First);
9332 return getSema().BuildMemberReferenceExpr(Base, BaseType,