Lines Matching refs:Diag

91     Diag(decl->getLocation(), diag::err_non_variable_decl_in_for);
150 S.Diag(Loc, diag::warn_unused_comparison)
157 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign)
160 S.Diag(Loc, diag::note_equality_comparison_to_assign)
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;
313 Diag(D->getLocation(), diag::ext_mixed_decls_code);
344 Diag(CaseLoc, diag::err_case_not_in_switch);
391 Diag(DefaultLoc, diag::err_default_not_in_switch);
405 Diag(IdentLoc, diag::err_redefinition_of_label) << TheDecl->getDeclName();
406 Diag(TheDecl->getLocation(), diag::note_previous_definition);
490 Diag(Loc, DiagID) << Val.toString(10) << ConvVal.toString(10);
594 return S.Diag(Loc, diag::err_typecheck_statement_requires_integer) << T;
599 return S.Diag(Loc, diag::err_switch_incomplete_class_type)
605 return S.Diag(Loc, diag::err_switch_explicit_conversion) << T << ConvTy;
610 return S.Diag(Conv->getLocation(), diag::note_switch_conversion)
616 return S.Diag(Loc, diag::err_switch_multiple_conversions) << T;
621 return S.Diag(Conv->getLocation(), diag::note_switch_conversion)
700 Diag(SwitchLoc, diag::warn_bool_switch_condition)
733 Diag(DS->getDefaultLoc(), diag::err_multiple_default_labels_defined);
734 Diag(TheDefaultStmt->getDefaultLoc(), diag::note_duplicate_case_prev);
842 Diag(CaseVals[i].second->getLHS()->getLocStart(),
846 Diag(CaseVals[i].second->getLHS()->getLocStart(),
852 Diag(CaseVals[i-1].second->getLHS()->getLocStart(),
905 Diag(CR->getLHS()->getLocStart(), diag::warn_case_empty_range)
960 Diag(CR->getLHS()->getLocStart(), diag::err_duplicate_case)
962 Diag(OverlapStmt->getLHS()->getLocStart(),
975 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition)
1013 Diag(CI->second->getLHS()->getExprLoc(), diag::warn_not_in_enum)
1024 Diag(RI->second->getLHS()->getExprLoc(), diag::warn_not_in_enum)
1034 Diag(RI->second->getRHS()->getExprLoc(), diag::warn_not_in_enum)
1070 Diag(TheDefaultStmt->getDefaultLoc(), diag::warn_unreachable_default);
1076 Diag(CondExpr->getExprLoc(), TheDefaultStmt
1081 Diag(CondExpr->getExprLoc(), TheDefaultStmt
1086 Diag(CondExpr->getExprLoc(), TheDefaultStmt
1091 Diag(CondExpr->getExprLoc(), TheDefaultStmt
1157 Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment)
1415 S.Diag(Ranges.begin()->getBegin(), PDiag);
1510 S.Diag(LastDRE->getLocation(), diag::warn_redundant_loop_iteration)
1512 S.Diag(LoopDRE->getLocation(), diag::note_loop_iteration_here)
1534 Diag((*DI)->getLocation(), diag::err_non_local_variable_decl_in_for);
1604 return Diag(forLoc, diag::err_collection_expr_type)
1645 Diag(forLoc, diag::warn_collection_expr_type)
1668 return StmtError(Diag((*DS->decl_begin())->getLocation(),
1680 return StmtError(Diag(D->getLocation(),
1701 Diag(Loc, diag::warn_auto_var_is_id)
1709 return StmtError(Diag(First->getLocStart(),
1715 Diag(ForLoc, diag::err_selector_element_const_type)
1721 return StmtError(Diag(ForLoc, diag::err_selector_element_type)
1747 SemaRef.Diag(Loc, DiagID) << Init->getType();
1792 SemaRef.Diag(Loc, diag::note_for_range_begin_end)
1847 Diag(DS->getStartLoc(), diag::err_type_defined_in_for_range);
1925 SemaRef.Diag(RangeLoc, diag::err_for_range_member_begin_end_mismatch)
1999 SemaRef.Diag(RangeLoc, diag::err_for_range_dereference)
2143 Diag(Range->getLocStart(), diag::err_range_on_array_parameter)
2145 Diag(PVD->getLocation(), diag::note_declared_at);
2164 Diag(Range->getLocStart(), diag::err_for_range_invalid)
2179 Diag(RangeLoc, diag::err_for_range_begin_end_types_differ)
2209 Diag(RangeLoc, diag::note_for_range_invalid_iterator)
2226 Diag(RangeLoc, diag::note_for_range_invalid_iterator)
2240 Diag(RangeLoc, diag::note_for_range_invalid_iterator)
2339 return StmtError(Diag(ContinueLoc, diag::err_continue_not_in_loop));
2350 return StmtError(Diag(BreakLoc, diag::err_break_not_in_loop_or_switch));
2550 Diag(ReturnLoc, diag::err_lambda_return_init_list)
2566 Diag(ReturnLoc, diag::err_noreturn_block_has_return_expr);
2571 Diag(ReturnLoc, diag::err_return_in_captured_stmt) << CurRegion->getRegionName();
2577 Diag(ReturnLoc, diag::err_noreturn_lambda_has_return_expr);
2596 Diag(ReturnLoc, diag::ext_return_has_void_expr) << "literal" << 2;
2598 Diag(ReturnLoc, diag::err_return_block_has_expr);
2603 return StmtError(Diag(ReturnLoc, diag::err_block_return_missing_expr));
2660 Diag(RetExpr->getExprLoc(),
2678 Diag(RetExpr->getExprLoc(), diag::err_auto_fn_return_init_list);
2687 Diag(RetExpr->getExprLoc(), diag::err_auto_fn_deduction_failure)
2699 Diag(ReturnLoc, diag::err_auto_fn_return_void_but_not_auto)
2719 Diag(ReturnLoc, diag::err_typecheck_missing_return_type_incompatible)
2723 Diag(ReturnLoc, diag::err_auto_fn_different_deductions)
2751 Diag(ReturnLoc, diag::warn_noreturn_function_has_return_expr)
2797 Diag(ReturnLoc, diag::err_return_init_list)
2831 Diag(ReturnLoc, D)
2852 Diag(ReturnLoc, DiagID) << FD->getIdentifier() << 0/*fn*/;
2854 Diag(ReturnLoc, DiagID) << getCurMethodDecl()->getDeclName() << 1/*meth*/;
2938 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try";
2965 return StmtError(Diag(AtLoc, diag::error_objc_throw_expects_object)
2977 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@throw";
2986 return StmtError(Diag(AtLoc, diag::error_rethrow_used_outside_catch));
3004 return Diag(atLoc, diag::error_objc_synchronized_expects_object)
3076 Diag(TryLoc, diag::err_exceptions_disabled) << "try";
3088 return StmtError(Diag(Handler->getLocStart(),
3108 Diag(curr.getTypeSpecStartLoc(),
3111 Diag(prev.getTypeSpecStartLoc(),
3150 return StmtError(Diag(FilterExpr->getExprLoc(),