Lines Matching refs:diag

95     Diag(decl->getLocation(), diag::err_non_variable_decl_in_for);  in ActOnForEachDeclStmt()
167 S.Diag(Loc, diag::warn_unused_comparison) in DiagnoseUnusedComparison()
174 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign) in DiagnoseUnusedComparison()
177 S.Diag(Loc, diag::note_equality_comparison_to_assign) in DiagnoseUnusedComparison()
223 unsigned DiagID = diag::warn_unused_expr; in DiagnoseUnusedExprResult()
245 Diag(Loc, diag::warn_unused_result) << R1 << R2; in DiagnoseUnusedExprResult()
251 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "pure"; in DiagnoseUnusedExprResult()
255 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "const"; in DiagnoseUnusedExprResult()
264 Diag(Loc, diag::err_arc_unused_init_message) << R1; in DiagnoseUnusedExprResult()
270 Diag(Loc, diag::warn_unused_result) << R1 << R2; in DiagnoseUnusedExprResult()
277 DiagID = diag::warn_unused_container_subscript_expr; in DiagnoseUnusedExprResult()
279 DiagID = diag::warn_unused_property_expr; in DiagnoseUnusedExprResult()
295 Diag(Loc, diag::warn_unused_voidptr) in DiagnoseUnusedExprResult()
302 Diag(Loc, diag::warn_unused_volatile) << R1 << R2; in DiagnoseUnusedExprResult()
340 Diag(D->getLocation(), diag::ext_mixed_decls_code); in ActOnCompoundStmt()
371 Diag(CaseLoc, diag::err_case_not_in_switch); in ActOnCaseStmt()
440 Diag(DefaultLoc, diag::err_default_not_in_switch); in ActOnDefaultStmt()
454 Diag(IdentLoc, diag::err_redefinition_of_label) << TheDecl->getDeclName(); in ActOnLabelStmt()
455 Diag(TheDecl->getLocation(), diag::note_previous_definition); in ActOnLabelStmt()
509 diag::warn_empty_if_body); in ActOnIfStmt()
605 return S.Diag(Loc, diag::err_typecheck_statement_requires_integer) << T; in ActOnStartOfSwitchStmt()
610 return S.Diag(Loc, diag::err_switch_incomplete_class_type) in ActOnStartOfSwitchStmt()
616 return S.Diag(Loc, diag::err_switch_explicit_conversion) << T << ConvTy; in ActOnStartOfSwitchStmt()
621 return S.Diag(Conv->getLocation(), diag::note_switch_conversion) in ActOnStartOfSwitchStmt()
627 return S.Diag(Loc, diag::err_switch_multiple_conversions) << T; in ActOnStartOfSwitchStmt()
632 return S.Diag(Conv->getLocation(), diag::note_switch_conversion) in ActOnStartOfSwitchStmt()
686 S.Diag(Loc, diag::warn_case_value_overflow) << Val.toString(10) in checkCaseValue()
766 Diag(SwitchLoc, diag::warn_bool_switch_condition) in ActOnFinishSwitchStmt()
806 Diag(DS->getDefaultLoc(), diag::err_multiple_default_labels_defined); in ActOnFinishSwitchStmt()
807 Diag(TheDefaultStmt->getDefaultLoc(), diag::note_duplicate_case_prev); in ActOnFinishSwitchStmt()
913 diag::err_duplicate_case) << in ActOnFinishSwitchStmt()
917 diag::err_duplicate_case_differing_expr) << in ActOnFinishSwitchStmt()
923 diag::note_duplicate_case_prev); in ActOnFinishSwitchStmt()
978 Diag(CR->getLHS()->getLocStart(), diag::warn_case_empty_range) in ActOnFinishSwitchStmt()
1033 Diag(CR->getLHS()->getLocStart(), diag::err_duplicate_case) in ActOnFinishSwitchStmt()
1036 diag::note_duplicate_case_prev); in ActOnFinishSwitchStmt()
1048 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1082 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1093 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1103 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1138 Diag(TheDefaultStmt->getDefaultLoc(), diag::warn_unreachable_default); in ActOnFinishSwitchStmt()
1143 TheDefaultStmt ? diag::warn_def_missing_case in ActOnFinishSwitchStmt()
1144 : diag::warn_missing_case) in ActOnFinishSwitchStmt()
1159 diag::warn_empty_switch_body); in ActOnFinishSwitchStmt()
1172 if (Diags.isIgnored(diag::warn_not_in_enum_assignment, SrcExpr->getExprLoc())) in DiagnoseAssignmentEnum()
1190 Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment) in DiagnoseAssignmentEnum()
1215 Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment) in DiagnoseAssignmentEnum()
1426 if (S.Diags.isIgnored(diag::warn_variables_not_in_loop_body, in CheckForLoopConditionalStatement()
1430 PartialDiagnostic PDiag = S.PDiag(diag::warn_variables_not_in_loop_body); in CheckForLoopConditionalStatement()
1554 if (S.Diags.isIgnored(diag::warn_redundant_loop_iteration, in CheckForRedundantIteration()
1577 S.Diag(LastDRE->getLocation(), diag::warn_redundant_loop_iteration) in CheckForRedundantIteration()
1579 S.Diag(LoopDRE->getLocation(), diag::note_loop_iteration_here) in CheckForRedundantIteration()
1593 Diag(BCFinder.GetBreakLoc(), diag::warn_break_binds_to_switch); in CheckBreakContinueBinding()
1595 Diag(BCFinder.GetBreakLoc(), diag::warn_loop_ctrl_binds_to_inner) in CheckBreakContinueBinding()
1599 Diag(BCFinder.GetContinueLoc(), diag::warn_loop_ctrl_binds_to_inner) in CheckBreakContinueBinding()
1619 Diag(DI->getLocation(), diag::err_non_local_variable_decl_in_for); in ActOnForStmt()
1695 return Diag(forLoc, diag::err_collection_expr_type) in CheckObjCForCollectionOperand()
1708 ? diag::err_arc_collection_forward in CheckObjCForCollectionOperand()
1736 Diag(forLoc, diag::warn_collection_expr_type) in CheckObjCForCollectionOperand()
1760 diag::err_toomany_element_decls)); in ActOnObjCForCollectionStmt()
1772 diag::err_non_local_variable_decl_in_for)); in ActOnObjCForCollectionStmt()
1792 Diag(Loc, diag::warn_auto_var_is_id) in ActOnObjCForCollectionStmt()
1801 diag::err_selector_element_not_lvalue) in ActOnObjCForCollectionStmt()
1806 Diag(ForLoc, diag::err_selector_element_const_type) in ActOnObjCForCollectionStmt()
1812 return StmtError(Diag(ForLoc, diag::err_selector_element_type) in ActOnObjCForCollectionStmt()
1882 SemaRef.Diag(Loc, diag::note_for_range_begin_end) in NoteForRangeBeginEndFunction()
1937 Diag(DS->getStartLoc(), diag::err_type_defined_in_for_range); in ActOnCXXForRangeStmt()
1954 diag::err_for_range_deduction_failure)) { in ActOnCXXForRangeStmt()
2015 SemaRef.Diag(RangeLoc, diag::err_for_range_member_begin_end_mismatch) in BuildNonArrayForRange()
2037 diag::err_for_range_iter_deduction_failure)) { in BuildNonArrayForRange()
2051 diag::err_for_range_iter_deduction_failure)) { in BuildNonArrayForRange()
2089 SemaRef.Diag(RangeLoc, diag::err_for_range_dereference) in RebuildForRangeWithDereference()
2165 diag::err_for_range_incomplete_type)) in BuildCXXForRangeStmt()
2185 diag::err_for_range_iter_deduction_failure)) { in BuildCXXForRangeStmt()
2210 diag::err_for_range_iter_deduction_failure)) { in BuildCXXForRangeStmt()
2233 Diag(Range->getLocStart(), diag::err_range_on_array_parameter) in BuildCXXForRangeStmt()
2235 Diag(PVD->getLocation(), diag::note_declared_at); in BuildCXXForRangeStmt()
2254 Diag(Range->getLocStart(), diag::err_for_range_invalid) in BuildCXXForRangeStmt()
2269 Diag(RangeLoc, diag::err_for_range_begin_end_types_differ) in BuildCXXForRangeStmt()
2299 Diag(RangeLoc, diag::note_for_range_invalid_iterator) in BuildCXXForRangeStmt()
2316 Diag(RangeLoc, diag::note_for_range_invalid_iterator) in BuildCXXForRangeStmt()
2330 Diag(RangeLoc, diag::note_for_range_invalid_iterator) in BuildCXXForRangeStmt()
2421 SemaRef.Diag(VD->getLocation(), diag::warn_for_range_const_reference_copy) in DiagnoseForRangeReferenceVariableCopies()
2427 SemaRef.Diag(VD->getLocStart(), diag::note_use_type_or_non_reference) in DiagnoseForRangeReferenceVariableCopies()
2432 SemaRef.Diag(VD->getLocation(), diag::warn_for_range_variable_always_copy) in DiagnoseForRangeReferenceVariableCopies()
2436 SemaRef.Diag(VD->getLocStart(), diag::note_use_non_reference_type) in DiagnoseForRangeReferenceVariableCopies()
2470 SemaRef.Diag(VD->getLocation(), diag::warn_for_range_copy) in DiagnoseForRangeConstVariableCopies()
2472 SemaRef.Diag(VD->getLocStart(), diag::note_use_reference_type) in DiagnoseForRangeConstVariableCopies()
2487 if (SemaRef.Diags.isIgnored(diag::warn_for_range_const_reference_copy, in DiagnoseForRangeVariableCopies()
2489 SemaRef.Diags.isIgnored(diag::warn_for_range_variable_always_copy, in DiagnoseForRangeVariableCopies()
2491 SemaRef.Diags.isIgnored(diag::warn_for_range_copy, in DiagnoseForRangeVariableCopies()
2532 diag::warn_empty_range_based_for_body); in FinishCXXForRangeStmt()
2578 S.Diag(Loc, diag::warn_jump_out_of_seh_finally); in CheckJumpOutOfSEHFinally()
2587 return StmtError(Diag(ContinueLoc, diag::err_continue_not_in_loop)); in ActOnContinueStmt()
2599 return StmtError(Diag(BreakLoc, diag::err_break_not_in_loop_or_switch)); in ActOnBreakStmt()
2602 return StmtError(Diag(BreakLoc, diag::err_omp_loop_cannot_use_stmt) in ActOnBreakStmt()
2817 Diag(ReturnLoc, diag::err_lambda_return_init_list) in ActOnCapScopeReturnStmt()
2833 Diag(ReturnLoc, diag::err_noreturn_block_has_return_expr); in ActOnCapScopeReturnStmt()
2838 Diag(ReturnLoc, diag::err_return_in_captured_stmt) << CurRegion->getRegionName(); in ActOnCapScopeReturnStmt()
2844 Diag(ReturnLoc, diag::err_noreturn_lambda_has_return_expr); in ActOnCapScopeReturnStmt()
2863 Diag(ReturnLoc, diag::ext_return_has_void_expr) << "literal" << 2; in ActOnCapScopeReturnStmt()
2865 Diag(ReturnLoc, diag::err_return_block_has_expr); in ActOnCapScopeReturnStmt()
2870 return StmtError(Diag(ReturnLoc, diag::err_block_return_missing_expr)); in ActOnCapScopeReturnStmt()
2968 getCurLambda() ? diag::err_lambda_return_init_list in DeduceFunctionTypeFromReturnExpr()
2969 : diag::err_auto_fn_return_init_list) in DeduceFunctionTypeFromReturnExpr()
2985 Diag(RetExpr->getExprLoc(), diag::err_auto_fn_return_init_list); in DeduceFunctionTypeFromReturnExpr()
2994 Diag(RetExpr->getExprLoc(), diag::err_auto_fn_deduction_failure) in DeduceFunctionTypeFromReturnExpr()
3011 Diag(ReturnLoc, diag::err_auto_fn_return_void_but_not_auto) in DeduceFunctionTypeFromReturnExpr()
3031 Diag(ReturnLoc, diag::err_typecheck_missing_return_type_incompatible) in DeduceFunctionTypeFromReturnExpr()
3035 Diag(ReturnLoc, diag::err_auto_fn_different_deductions) in DeduceFunctionTypeFromReturnExpr()
3087 Diag(ReturnLoc, diag::warn_noreturn_function_has_return_expr) in BuildReturnStmt()
3136 Diag(ReturnLoc, diag::err_return_init_list) in BuildReturnStmt()
3144 unsigned D = diag::ext_return_has_expr; in BuildReturnStmt()
3149 D = diag::err_ctor_dtor_returns_void; in BuildReturnStmt()
3151 D = diag::ext_return_has_void_expr; in BuildReturnStmt()
3163 if (D == diag::err_ctor_dtor_returns_void) { in BuildReturnStmt()
3170 else if (D != diag::ext_return_has_void_expr || in BuildReturnStmt()
3203 DiagID = diag::err_constexpr_return_missing_expr; in BuildReturnStmt()
3207 DiagID = diag::ext_return_missing_expr; in BuildReturnStmt()
3210 DiagID = diag::warn_return_missing_expr; in BuildReturnStmt()
3302 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
3327 return StmtError(Diag(AtLoc, diag::error_objc_throw_expects_object) in BuildObjCAtThrowStmt()
3339 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@throw"; in ActOnObjCAtThrowStmt()
3348 return StmtError(Diag(AtLoc, diag::error_rethrow_used_outside_catch)); in ActOnObjCAtThrowStmt()
3368 diag::err_incomplete_receiver_type)) in ActOnObjCAtSynchronizedOperand()
3369 return Diag(atLoc, diag::error_objc_synchronized_expects_object) in ActOnObjCAtSynchronizedOperand()
3374 return Diag(atLoc, diag::error_objc_synchronized_expects_object) in ActOnObjCAtSynchronizedOperand()
3379 return Diag(atLoc, diag::error_objc_synchronized_expects_object) in ActOnObjCAtSynchronizedOperand()
3527 Diag(TryLoc, diag::err_exceptions_disabled) << "try"; in ActOnCXXTryBlock()
3530 Diag(TryLoc, diag::err_omp_simd_region_cannot_use_stmt) << "try"; in ActOnCXXTryBlock()
3536 Diag(TryLoc, diag::err_mixing_cxx_try_seh_try); in ActOnCXXTryBlock()
3537 Diag(FSI->FirstSEHTryLoc, diag::note_conflicting_try_here) << "'__try'"; in ActOnCXXTryBlock()
3553 return StmtError(Diag(H->getLocStart(), diag::err_early_catch_all)); in ActOnCXXTryBlock()
3584 diag::warn_exception_caught_by_earlier_handler) in ActOnCXXTryBlock()
3587 diag::note_previous_exception_handler) in ActOnCXXTryBlock()
3599 diag::warn_exception_caught_by_earlier_handler) in ActOnCXXTryBlock()
3602 diag::note_previous_exception_handler) in ActOnCXXTryBlock()
3622 Diag(TryLoc, diag::err_mixing_cxx_try_seh_try); in ActOnSEHTryBlock()
3623 Diag(FSI->FirstCXXTryLoc, diag::note_conflicting_try_here) << "'try'"; in ActOnSEHTryBlock()
3638 Diag(TryLoc, diag::err_seh_try_outside_functions); in ActOnSEHTryBlock()
3651 diag::err_filter_expression_integral) in ActOnSEHExceptBlock()
3678 return StmtError(Diag(Loc, diag::err_ms___leave_not_in___try)); in ActOnSEHLeaveStmt()