Home | History | Annotate | Download | only in Sema

Lines Matching refs:getSema

137   Sema &getSema() const { return SemaRef; }
941 return getSema().CheckPackExpansion(Pattern, PatternRange, EllipsisLoc,
995 return getSema().Context.getSubstTemplateTemplateParmPack(Param, ArgPack);
1006 return getSema().ActOnCompoundStmt(LBraceLoc, RBraceLoc, Statements,
1019 return getSema().ActOnCaseStmt(CaseLoc, LHS, EllipsisLoc, RHS,
1028 getSema().ActOnCaseStmtBody(S, Body);
1039 return getSema().ActOnDefaultStmt(DefaultLoc, ColonLoc, SubStmt,
1068 return getSema().ActOnIfStmt(IfLoc, Cond, CondVar, Then, ElseLoc, Else);
1077 return getSema().ActOnStartOfSwitchStmt(SwitchLoc, Cond,
1087 return getSema().ActOnFinishSwitchStmt(SwitchLoc, Switch, Body);
1096 return getSema().ActOnWhileStmt(WhileLoc, Cond, CondVar, Body);
1106 return getSema().ActOnDoStmt(DoLoc, Body, WhileLoc, LParenLoc,
1118 return getSema().ActOnForStmt(ForLoc, LParenLoc, Init, Cond,
1128 return getSema().ActOnGotoStmt(GotoLoc, LabelLoc, Label);
1138 return getSema().ActOnIndirectGotoStmt(GotoLoc, StarLoc, Target);
1146 return getSema().ActOnReturnStmt(ReturnLoc, Result);
1156 Sema::DeclGroupPtrTy DG = getSema().BuildDeclaratorGroup(Decls, NumDecls);
1157 return getSema().ActOnDeclStmt(DG, StartLoc, EndLoc);
1176 return getSema().ActOnAsmStmt(AsmLoc, IsSimple, IsVolatile, NumOutputs,
1190 return getSema().ActOnObjCAtTryStmt(AtLoc, TryBody, move(CatchStmts),
1200 return getSema().BuildObjCExceptionDecl(TInfo, T,
1214 return getSema().ActOnObjCAtCatchStmt(AtLoc, RParenLoc,
1224 return getSema().ActOnObjCAtFinallyStmt(AtLoc, Body);
1233 return getSema().BuildObjCAtThrowStmt(AtLoc, Operand);
1242 return getSema().ActOnObjCAtSynchronizedOperand(atLoc, object);
1251 return getSema().ActOnObjCAtSynchronizedStmt(AtLoc, Object, Body);
1260 return getSema().ActOnObjCAutoreleasePoolStmt(AtLoc, Body);
1270 return getSema().ActOnObjCForCollectionOperand(forLoc, collection);
1283 return getSema().ActOnObjCForCollectionStmt(ForLoc, LParenLoc,
1299 VarDecl *Var = getSema().BuildExceptionDeclaration(0, Declarator,
1302 getSema().CurContext->addDecl(Var);
1313 return Owned(new (getSema().Context) CXXCatchStmt(CatchLoc, ExceptionDecl,
1324 return getSema().ActOnCXXTryBlock(TryLoc, TryBlock, move(Handlers));
1337 return getSema().BuildCXXForRangeStmt(ForLoc, ColonLoc, Range, BeginEnd,
1350 return getSema().BuildMSDependentExistsStmt(KeywordLoc, IsIfExists,
1359 return getSema().FinishCXXForRangeStmt(ForRange, Body);
1366 return getSema().ActOnSEHTryBlock(IsCXXTry,TryLoc,TryBlock,Handler);
1372 return getSema().ActOnSEHExceptBlock(Loc,FilterExpr,Block);
1377 return getSema().ActOnSEHFinallyBlock(Loc,Block);
1387 return getSema().BuildDeclarationNameExpr(SS, R, RequiresADL);
1404 return getSema().BuildDeclarationNameExpr(SS, NameInfo, VD);
1413 return getSema().ActOnParenExpr(LParen, RParen, SubExpr);
1436 return getSema().BuildUnaryOp(/*Scope=*/0, OpLoc, Opc, SubExpr);
1448 return getSema().BuildBuiltinOffsetOf(OperatorLoc, Type, Components,
1461 return getSema().CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, R);
1473 = getSema().CreateUnaryExprOrTypeTraitExpr(SubExpr, OpLoc, ExprKind);
1488 return getSema().ActOnArraySubscriptExpr(/*Scope=*/0, LHS,
1501 return getSema().ActOnCallExpr(/*Scope=*/0, Callee, LParenLoc,
1518 ExprResult BaseResult = getSema().PerformMemberExprBaseConversion(Base,
1529 getSema().PerformObjectMemberConversion(BaseResult.take(),
1537 new (getSema().Context) MemberExpr(Base, isArrow,
1541 return getSema().Owned(ME);
1552 LookupResult R(getSema(), MemberNameInfo, Sema::LookupMemberName);
1556 return getSema().BuildMemberReferenceExpr(Base, BaseType, OpLoc, isArrow,
1569 return getSema().BuildBinOp(/*Scope=*/0, OpLoc, Opc, LHS, RHS);
1581 return getSema().ActOnConditionalOp(QuestionLoc, ColonLoc, Cond,
1593 return getSema().BuildCStyleCastExpr(LParenLoc, TInfo, RParenLoc,
1605 return getSema().BuildCompoundLiteralExpr(LParenLoc, TInfo, RParenLoc,
1620 return getSema().BuildMemberReferenceExpr(Base, Base->getType(),
1683 return getSema().BuildVAArgExpr(BuiltinLoc,
1695 return getSema().ActOnParenListExpr(LParenLoc, RParenLoc, move(SubExprs));
1705 return getSema().ActOnAddrLabel(AmpAmpLoc, LabelLoc, Label);
1715 return getSema().ActOnStmtExpr(LParenLoc, SubStmt, RParenLoc);
1741 return getSema().CreateGenericSelectionExpr(KeyLoc, DefaultLoc, RParenLoc,
1812 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_static_cast,
1829 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_dynamic_cast,
1846 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_reinterpret_cast,
1863 return getSema().BuildCXXNamedCast(OpLoc, tok::kw_const_cast,
1877 return getSema().BuildCXXTypeConstructExpr(TInfo, LParenLoc,
1890 return getSema().BuildCXXTypeId(TypeInfoType, TypeidLoc, Operand,
1903 return getSema().BuildCXXTypeId(TypeInfoType, TypeidLoc, Operand,
1915 return getSema().BuildCXXUuidof(TypeInfoType, TypeidLoc, Operand,
1927 return getSema().BuildCXXUuidof(TypeInfoType, TypeidLoc, Operand,
1939 getSema().CheckCXXThisCapture(ThisLoc);
1940 return getSema().Owned(
1941 new (getSema().Context) CXXThisExpr(ThisLoc, ThisType,
1951 return getSema().BuildCXXThrow(ThrowLoc, Sub, IsThrownVariableInScope);
1961 return getSema().Owned(CXXDefaultArgExpr::Create(getSema().Context, Loc,
1972 return getSema().BuildCXXTypeConstructExpr(TSInfo, LParenLoc,
1973 MultiExprArg(getSema(), 0, 0),
1992 return getSema().BuildCXXNew(StartLoc, UseGlobal,
2012 return getSema().ActOnCXXDelete(StartLoc, IsGlobalDelete, IsArrayForm,
2024 return getSema().BuildUnaryTypeTrait(Trait, StartLoc, T, RParenLoc);
2036 return getSema().BuildBinaryTypeTrait(Trait, StartLoc, LhsT, RhsT, RParenLoc);
2047 return getSema().BuildTypeTrait(Trait, StartLoc, Args, RParenLoc);
2059 return getSema().BuildArrayTypeTrait(Trait, StartLoc, TSInfo, DimExpr, RParenLoc);
2070 return getSema().BuildExpressionTrait(Trait, StartLoc, Queried, RParenLoc);
2087 return getSema().BuildQualifiedTemplateIdExpr(SS, TemplateKWLoc,
2090 return getSema().BuildQualifiedDeclarationNameExpr(SS, NameInfo);
2102 return getSema().BuildTemplateIdExpr(SS, TemplateKWLoc, R, RequiresADL,
2120 if (getSema().CompleteConstructorCall(Constructor, move(Args), Loc,
2124 return getSema().BuildCXXConstructExpr(Loc, T, Constructor, IsElidable,
2139 return getSema().BuildCXXTypeConstructExpr(TSInfo,
2153 return getSema().BuildCXXTypeConstructExpr(TSInfo,
2233 return getSema().BuildObjCBoxedExpr(SR, ValueExpr);
2242 return getSema().BuildObjCArrayLiteral(Range,
2250 return getSema().BuildObjCSubscriptExpression(RB, Base, Key,
2261 return getSema().BuildObjCDictionaryLiteral(Range, Elements, NumElements);
2314 ExprResult Base = getSema().Owned(BaseArg);
2315 LookupResult R(getSema(), Ivar->getDeclName(), IvarLoc,
2317 ExprResult Result = getSema().LookupMemberExpr(R, Base, IsArrow,
2327 return getSema().BuildMemberReferenceExpr(Base.get(), Base.get()->getType(),
2343 ExprResult Base = getSema().Owned(BaseArg);
2344 LookupResult R(getSema(), Property->getDeclName(), PropertyLoc,
2347 ExprResult Result = getSema().LookupMemberExpr(R, Base, IsArrow,
2356 return getSema().BuildMemberReferenceExpr(Base.get(), Base.get()->getType(),
2375 new (getSema().Context) ObjCPropertyRefExpr(Getter, Setter, T,
2387 ExprResult Base = getSema().Owned(BaseArg);
2388 LookupResult R(getSema(), &getSema().Context.Idents.get("isa"), IsaLoc,
2390 ExprResult Result = getSema().LookupMemberExpr(R, Base, IsArrow,
2399 return getSema().BuildMemberReferenceExpr(Base.get(), Base.get()->getType(),
2456 = getSema().CheckPackExpansion(Pattern.getSourceExpression(),
2481 = getSema().CheckPackExpansion(Pattern.getTypeSourceInfo(),
2499 return getSema().CheckPackExpansion(Pattern, EllipsisLoc, NumExpansions);
2558 return getSema().ActOnExprStmt(getSema().MakeFullExpr(E.take()));
2602 getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
2623 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
2647 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
3001 EnterExpressionEvaluationContext Unevaluated(getSema(),
3038 EnterExpressionEvaluationContext Unevaluated(getSema(),
3071 = new (getSema().Context) TemplateArgument[TransformedArgs.size()];
3179 getSema().Context);
3182 getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
3203 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
3219 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
3275 TypeSourceInfo *DI = getSema().Context.getTrivialTypeSourceInfo(T,
4025 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
4068 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
4100 getSema().collectUnexpandedParameterPacks(Pattern, Unexpanded);
4117 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
4148 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
4158 NewType = getSema().Context.getPackExpansionType(NewType,
4404 E = getSema().ActOnDecltypeExpression(E.take());
4756 = getSema().Context.getDependentTemplateSpecializationType(
5096 Sema::CompoundScopeRAII CompoundScope(getSema());
5100 ASTOwningVector<Stmt*> Statements(getSema());
5243 ExprResult CondE = getSema().ActOnBooleanCondition(0, S->getIfLoc(),
5252 Sema::FullExprArg FullCond(getSema().MakeFullExpr(Cond.take()));
5338 ExprResult CondE = getSema().ActOnBooleanCondition(0, S->getWhileLoc(),
5346 Sema::FullExprArg FullCond(getSema().MakeFullExpr(Cond.take()));
5415 ExprResult CondE = getSema().ActOnBooleanCondition(0, S->getForLoc(),
5424 Sema::FullExprArg FullCond(getSema().MakeFullExpr(Cond.take()));
5433 Sema::FullExprArg FullInc(getSema().MakeFullExpr(Inc.get()));
5536 ASTOwningVector<Expr*> Constraints(getSema());
5537 ASTOwningVector<Expr*> Exprs(getSema());
5541 ASTOwningVector<Expr*> Clobbers(getSema());
5712 return getSema().Owned(S);
5966 switch (getSema().CheckMicrosoftIfExistsSymbol(/*S=*/0, SS, NameInfo)) {
5971 return new (getSema().Context) NullStmt(S->getKeywordLoc());
5977 return new (getSema().Context) NullStmt(S->getKeywordLoc());
7138 DeclContext *DC = getSema().getFunctionLevelDeclContext();
7141 T = MD->getThisType(getSema().Context);
7143 T = getSema().Context.getPointerType(
7144 getSema().Context.getRecordType(cast<CXXRecordDecl>(DC)));
7148 getSema().CheckCXXThisCapture(E->getLocStart());
7606 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
7880 = getSema().createLambdaClosureType(E->getIntroducerRange(),
7907 = getSema().startLambdaDefinition(Class, E->getIntroducerRange(),
7918 Sema::ContextRAII SavedContext(getSema(), CallOperator);
7922 = getSema().enterLambdaScope(CallOperator, E->getIntroducerRange(),
7936 getSema().finishLambdaExplicitCaptures(LSI);
7942 getSema().CheckCXXThisCapture(C->getLocation(), C->isExplicit());
7971 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
7981 getSema().tryCaptureVariable(CapturedVar, C->getLocation(), Kind);
7999 getSema().tryCaptureVariable(CapturedVar, C->getLocation(), Kind);
8002 getSema().finishLambdaExplicitCaptures(LSI);
8007 getSema().PushExpressionEvaluationContext(Sema::PotentiallyEvaluated);
8010 getSema().ActOnLambdaError(E->getLocStart(), /*CurScope=*/0,
8018 getSema().ActOnLambdaError(E->getLocStart(), /*CurScope=*/0,
8023 return getSema().ActOnLambdaExpr(E->getLocStart(), Body.take(),
8165 Base = getSema().PerformMemberExprBaseConversion(Base.take(),
8406 getSema().collectUnexpandedParameterPacks(OrigElement.Key, Unexpanded);
8407 getSema().collectUnexpandedParameterPacks(OrigElement.Value, Unexpanded);
8429 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
8458 Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), I);
8773 getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/0);
8783 getSema().Diag(E->getCaretLocation(),
8786 getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/0);
8811 getSema().ActOnBlockError(E->getCaretLocation(), /*Scope=*/0);
9115 getSema().ActOnDependentTemplateName(/*Scope=*/0,
9135 getSema().ActOnDependentTemplateName(/*Scope=*/0,
9157 return getSema().CreateBuiltinArraySubscriptExpr(First,
9170 return getSema().CreateBuiltinUnaryOp(OpLoc, Opc, First);
9274 return getSema().BuildMemberReferenceExpr(Base, BaseType,