Lines Matching full:loc
122 SourceLocation Loc;
129 Loc = Op->getOperatorLoc();
137 Loc = Op->getOperatorLoc();
147 if (S.SourceMgr.isMacroBodyExpansion(Loc))
150 S.Diag(Loc, diag::warn_unused_comparison)
157 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign)
158 << FixItHint::CreateReplacement(Loc, "|=");
160 S.Diag(Loc, diag::note_equality_comparison_to_assign)
161 << FixItHint::CreateReplacement(Loc, "=");
185 SourceLocation Loc;
187 if (!E->isUnusedResultAWarning(WarnExpr, Loc, R1, R2, Context))
194 if (isa<StmtExpr>(E) && Loc.isMacroID())
220 Diag(Loc, diag::warn_unused_result) << R1 << R2;
226 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "pure";
230 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "const";
239 Diag(Loc, diag::err_arc_unused_init_message) << R1;
244 Diag(Loc, diag::warn_unused_result) << R1 << R2;
268 Diag(Loc, diag::warn_unused_voidptr)
275 Diag(Loc, diag::warn_unused_volatile) << R1 << R2;
279 DiagRuntimeBehavior(Loc, 0, PDiag(DiagID) << R1 << R2);
473 SourceLocation Loc,
493 Diag(Loc, DiagID) << Val.toString(10) << ConvVal.toString(10);
595 virtual SemaDiagnosticBuilder diagnoseNotInt(Sema &S, SourceLocation Loc,
597 return S.Diag(Loc, diag::err_typecheck_statement_requires_integer) << T;
601 Sema &S, SourceLocation Loc, QualType T) {
602 return S.Diag(Loc, diag::err_switch_incomplete_class_type)
607 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) {
608 return S.Diag(Loc, diag::err_switch_explicit_conversion) << T << ConvTy;
617 virtual SemaDiagnosticBuilder diagnoseAmbiguous(Sema &S, SourceLocation Loc,
619 return S.Diag(Loc, diag::err_switch_multiple_conversions) << T;
629 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) {
1702 SourceLocation Loc =
1704 Diag(Loc, diag::warn_auto_var_is_id)
1740 SourceLocation Loc, int DiagID) {
1747 SemaRef.Diag(Loc, DiagID) << Init->getType();
1782 SourceLocation Loc = D->getLocation();
1792 SemaRef.Diag(Loc, diag::note_for_range_begin_end)
1797 VarDecl *BuildForRangeVarDecl(Sema &SemaRef, SourceLocation Loc,
1801 TypeSourceInfo *TInfo = SemaRef.Context.getTrivialTypeSourceInfo(Type, Loc);
1802 VarDecl *Decl = VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type,
3080 Sema::ActOnSEHExceptBlock(SourceLocation Loc,
3091 return Owned(SEHExceptStmt::Create(Context,Loc,FilterExpr,Block));
3095 Sema::ActOnSEHFinallyBlock(SourceLocation Loc,
3098 return Owned(SEHFinallyStmt::Create(Context,Loc,Block));
3125 Sema::CreateCapturedStmtRecordDecl(CapturedDecl *&CD, SourceLocation Loc,
3133 RD = CXXRecordDecl::Create(Context, TTK_Struct, DC, Loc, Loc, /*Id=*/0);
3135 RD = RecordDecl::Create(Context, TTK_Struct, DC, Loc, Loc, /*Id=*/0);
3150 = ImplicitParamDecl::Create(Context, DC, Loc, VarName, ParamType);
3183 void Sema::ActOnCapturedRegionStart(SourceLocation Loc, Scope *CurScope,
3187 RecordDecl *RD = CreateCapturedStmtRecordDecl(CD, Loc, NumParams);