Lines Matching refs:Loc

103   SourceLocation Loc;
110 Loc = Op->getOperatorLoc();
118 Loc = Op->getOperatorLoc();
128 if (Loc.isMacroID())
131 S.Diag(Loc, diag::warn_unused_comparison)
138 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign)
139 << FixItHint::CreateReplacement(Loc, "|=");
141 S.Diag(Loc, diag::note_equality_comparison_to_assign)
142 << FixItHint::CreateReplacement(Loc, "=");
157 SourceLocation Loc;
160 !E->isUnusedResultAWarning(WarnExpr, Loc, R1, R2, Context))
167 if (isa<StmtExpr>(E) && Loc.isMacroID())
191 Diag(Loc, diag::warn_unused_result) << R1 << R2;
195 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "pure";
199 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "const";
205 Diag(Loc, diag::err_arc_unused_init_message) << R1;
210 Diag(Loc, diag::warn_unused_result) << R1 << R2;
234 Diag(Loc, diag::warn_unused_voidptr)
241 Diag(Loc, diag::warn_unused_volatile) << R1 << R2;
245 DiagRuntimeBehavior(Loc, 0, PDiag(DiagID) << R1 << R2);
422 SourceLocation Loc,
442 Diag(Loc, DiagID) << Val.toString(10) << ConvVal.toString(10);
543 virtual DiagnosticBuilder diagnoseNotInt(Sema &S, SourceLocation Loc,
545 return S.Diag(Loc, diag::err_typecheck_statement_requires_integer) << T;
548 virtual DiagnosticBuilder diagnoseIncomplete(Sema &S, SourceLocation Loc,
550 return S.Diag(Loc, diag::err_switch_incomplete_class_type)
554 virtual DiagnosticBuilder diagnoseExplicitConv(Sema &S, SourceLocation Loc,
557 return S.Diag(Loc, diag::err_switch_explicit_conversion) << T << ConvTy;
566 virtual DiagnosticBuilder diagnoseAmbiguous(Sema &S, SourceLocation Loc,
568 return S.Diag(Loc, diag::err_switch_multiple_conversions) << T;
577 virtual DiagnosticBuilder diagnoseConversion(Sema &S, SourceLocation Loc,
1562 SourceLocation Loc, int diag) {
1569 SemaRef.Diag(Loc, diag) << Init->getType();
1605 SourceLocation Loc = D->getLocation();
1615 SemaRef.Diag(Loc, diag::note_for_range_begin_end)
1620 VarDecl *BuildForRangeVarDecl(Sema &SemaRef, SourceLocation Loc,
1624 TypeSourceInfo *TInfo = SemaRef.Context.getTrivialTypeSourceInfo(Type, Loc);
1625 VarDecl *Decl = VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type,
2755 Sema::ActOnSEHExceptBlock(SourceLocation Loc,
2766 return Owned(SEHExceptStmt::Create(Context,Loc,FilterExpr,Block));
2770 Sema::ActOnSEHFinallyBlock(SourceLocation Loc,
2773 return Owned(SEHFinallyStmt::Create(Context,Loc,Block));