/external/clang/include/clang/AST/ |
D | DependentDiagnostic.h | 47 const PartialDiagnostic &PDiag) { in Create() argument 48 DependentDiagnostic *DD = Create(Context, Parent, PDiag); in Create() 97 DependentDiagnostic(const PartialDiagnostic &PDiag, in DependentDiagnostic() argument 99 : Diag(PDiag, Storage) {} in DependentDiagnostic() 103 const PartialDiagnostic &PDiag);
|
/external/llvm-project/clang/include/clang/AST/ |
D | DependentDiagnostic.h | 49 const PartialDiagnostic &PDiag) { in Create() argument 50 DependentDiagnostic *DD = Create(Context, Parent, PDiag); in Create() 102 DependentDiagnostic(const PartialDiagnostic &PDiag, in DependentDiagnostic() argument 104 : Diag(PDiag, Storage) {} in DependentDiagnostic() 108 const PartialDiagnostic &PDiag);
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 1483 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1494 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1508 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1522 PartialDiagnosticAt Warning(Loc, S.PDiag(DiagID) << Kind << LockName); in warnLockMismatch() 1547 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_cannot_resolve_lock) in handleInvalidLockExp() 1562 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_unlock_kind_mismatch) in handleIncorrectUnlockKind() 1594 PartialDiagnosticAt Warning(LocEndOfScope, S.PDiag(DiagID) << Kind in handleMutexHeldEndOfScope() 1597 PartialDiagnosticAt Note(LocLocked, S.PDiag(diag::note_locked_here) in handleMutexHeldEndOfScope() 1609 S.PDiag(diag::warn_lock_exclusive_and_shared) in handleExclusiveAndShared() 1611 PartialDiagnosticAt Note(Loc2, S.PDiag(diag::note_lock_exclusive_and_shared) in handleExclusiveAndShared() [all …]
|
D | SemaExceptionSpec.cpp | 228 PDiag(DiagID), PDiag(diag::note_previous_declaration), in CheckEquivalentExceptionSpec() 382 bool Result = CheckEquivalentExceptionSpec(PDiag(DiagID), in CheckEquivalentExceptionSpec() 383 PDiag(diag::note_previous_declaration), Old, OldLoc, New, NewLoc); in CheckEquivalentExceptionSpec() 784 *this, PDiag(diag::err_deep_exception_specs_differ) << 0, PDiag(), in CheckParamExceptionSpec() 795 *this, PDiag(diag::err_deep_exception_specs_differ) << 1, PDiag(), in CheckParamExceptionSpec() 827 return CheckExceptionSpecSubset(PDiag(diag::err_incompatible_exception_specs), in CheckExceptionSpecCompatibility() 828 PDiag(), ToFunc, in CheckExceptionSpecCompatibility() 863 return CheckExceptionSpecSubset(PDiag(DiagID), in CheckOverridingFunctionExceptionSpec() 864 PDiag(diag::note_overridden_virtual_function), in CheckOverridingFunctionExceptionSpec()
|
D | SemaChecking.cpp | 1927 S.PDiag(diag::warn_null_arg) << ArgExpr->getSourceRange()); in CheckNonNullArgument() 4196 const PartialDiagnostic &PDiag, SourceLocation StringLoc, 4223 void EmitFormatDiagnostic(PartialDiagnostic PDiag, SourceLocation StringLoc, 4250 EmitFormatDiagnostic(S.PDiag(diag::warn_printf_incomplete_specifier), in HandleIncompleteSpecifier() 4268 EmitFormatDiagnostic(S.PDiag(DiagID) << LM.toString() << CS.toString(), in HandleInvalidLengthModifier() 4282 EmitFormatDiagnostic(S.PDiag(DiagID) << LM.toString() << CS.toString(), in HandleInvalidLengthModifier() 4301 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardLengthModifier() 4312 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardLengthModifier() 4328 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardConversionSpecifier() 4339 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardConversionSpecifier() [all …]
|
D | SemaAccess.cpp | 1576 entity.setDiag(PDiag()); in isSpecialMemberAccessibleForDeletion() 1589 const PartialDiagnostic &PDiag, in CheckDestructorAccess() argument 1605 Entity.setDiag(PDiag); // TODO: avoid copy in CheckDestructorAccess() 1619 PartialDiagnostic PD(PDiag()); in CheckConstructorAccess() 1622 PD = PDiag(IsCopyBindingRefToTemp in CheckConstructorAccess() 1629 PD = PDiag(diag::err_access_base_ctor); in CheckConstructorAccess() 1636 PD = PDiag(diag::err_access_field_ctor); in CheckConstructorAccess() 1643 PD = PDiag(diag::err_access_lambda_capture); in CheckConstructorAccess()
|
D | SemaExpr.cpp | 567 S.PDiag(diag::warn_indirection_through_null) in CheckForNullPointerDereference() 570 S.PDiag(diag::note_indirection_through_null)); in CheckForNullPointerDereference() 909 PDiag(diag::warn_cxx98_compat_pass_non_pod_arg_to_vararg) in checkVariadicArgument() 917 PDiag(diag::warn_pass_class_arg_to_vararg) in checkVariadicArgument() 926 PDiag(diag::warn_cannot_pass_non_pod_arg_to_vararg) in checkVariadicArgument() 934 PDiag(diag::err_cannot_pass_objc_interface_to_vararg) in checkVariadicArgument() 1847 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(DiagnosticSuggestID) << Typo, in emitEmptyLookupTypoDiagnostic() 1848 SemaRef.PDiag(NoteID)); in emitEmptyLookupTypoDiagnostic() 1850 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in emitEmptyLookupTypoDiagnostic() 1853 SemaRef.PDiag(NoteID)); in emitEmptyLookupTypoDiagnostic() [all …]
|
D | SemaStmt.cpp | 317 DiagRuntimeBehavior(Loc, nullptr, PDiag(DiagID) << R1 << R2); in DiagnoseUnusedExprResult() 1449 PartialDiagnostic PDiag = S.PDiag(diag::warn_variables_not_in_loop_body); in CheckForLoopConditionalStatement() local 1475 PDiag << 0; in CheckForLoopConditionalStatement() 1477 PDiag << Decls.size(); in CheckForLoopConditionalStatement() 1481 PDiag << (*I)->getDeclName(); in CheckForLoopConditionalStatement() 1490 PDiag << *I; in CheckForLoopConditionalStatement() 1492 PDiag << Second->getSourceRange(); in CheckForLoopConditionalStatement() 1494 S.Diag(Ranges.begin()->getBegin(), PDiag); in CheckForLoopConditionalStatement()
|
D | SemaCXXScopeSpec.cpp | 627 diagnoseTypo(Corrected, PDiag(diag::err_no_member_suggest) in BuildCXXNestedNameSpecifier() 631 diagnoseTypo(Corrected, PDiag(diag::err_undeclared_var_use_suggest) in BuildCXXNestedNameSpecifier()
|
D | SemaTemplateVariadic.cpp | 853 PDiag(diag::err_sizeof_pack_no_pack_name_suggest) << &Name, in ActOnSizeofParameterPackExpr() 854 PDiag(diag::note_parameter_pack_here)); in ActOnSizeofParameterPackExpr()
|
/external/llvm-project/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 1664 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1675 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1689 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1699 LocLocked, S.PDiag(diag::note_locked_here) << Kind)) in makeLockedHereNote() 1707 LocUnlocked, S.PDiag(diag::note_unlocked_here) << Kind)) in makeUnlockedHereNote() 1732 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_cannot_resolve_lock) in handleInvalidLockExp() 1741 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_unlock_but_no_lock) in handleUnmatchedUnlock() 1754 LocUnlock, S.PDiag(diag::warn_unlock_kind_mismatch) in handleIncorrectUnlockKind() 1764 PartialDiagnosticAt Warning(LocDoubleLock, S.PDiag(diag::warn_double_lock) in handleDoubleLock() 1792 PartialDiagnosticAt Warning(LocEndOfScope, S.PDiag(DiagID) << Kind in handleMutexHeldEndOfScope() [all …]
|
D | SemaExceptionSpec.cpp | 315 *this, PDiag(DiagID), PDiag(diag::note_previous_declaration), in CheckEquivalentExceptionSpec() 493 *this, PDiag(DiagID), PDiag(diag::note_previous_declaration), in CheckEquivalentExceptionSpec() 892 *this, RetDiag, PDiag(), in CheckParamExceptionSpec() 905 *this, ParamDiag, PDiag(), in CheckParamExceptionSpec() 948 PDiag(DiagID), PDiag(NestedDiagID), PDiag(), PDiag(), ToFunc, in CheckExceptionSpecCompatibility() 978 return CheckExceptionSpecSubset(PDiag(DiagID), in CheckOverridingFunctionExceptionSpec() 979 PDiag(diag::err_deep_exception_specs_differ), in CheckOverridingFunctionExceptionSpec() 980 PDiag(diag::note_overridden_virtual_function), in CheckOverridingFunctionExceptionSpec() 981 PDiag(diag::ext_override_exception_spec), in CheckOverridingFunctionExceptionSpec()
|
D | SemaChecking.cpp | 772 PDiag(DiagID) in checkFortifiedBuiltinMemoryFunction() 1821 for (const PartialDiagnosticAt &PDiag : Notes) in CheckBuiltinFunctionCall() local 1822 Diag(PDiag.first, PDiag.second); in CheckBuiltinFunctionCall() 4287 S.PDiag(diag::warn_null_arg) in CheckNonNullArgument() 6421 PDiag(diag::warn_argument_invalid_range) in SemaBuiltinConstantArgRange() 7559 const PartialDiagnostic &PDiag, SourceLocation StringLoc, 7586 void EmitFormatDiagnostic(PartialDiagnostic PDiag, SourceLocation StringLoc, 7615 EmitFormatDiagnostic(S.PDiag(diag::warn_printf_incomplete_specifier), in HandleIncompleteSpecifier() 7633 EmitFormatDiagnostic(S.PDiag(DiagID) << LM.toString() << CS.toString(), in HandleInvalidLengthModifier() 7647 EmitFormatDiagnostic(S.PDiag(DiagID) << LM.toString() << CS.toString(), in HandleInvalidLengthModifier() [all …]
|
D | SemaOverload.cpp | 2860 void Sema::HandleFunctionTypeMismatch(PartialDiagnostic &PDiag, in HandleFunctionTypeMismatch() argument 2864 PDiag << ft_default; in HandleFunctionTypeMismatch() 2873 PDiag << ft_different_class << QualType(ToMember->getClass(), 0) in HandleFunctionTypeMismatch() 2893 PDiag << ft_default; in HandleFunctionTypeMismatch() 2899 PDiag << ft_default; in HandleFunctionTypeMismatch() 2908 PDiag << ft_default; in HandleFunctionTypeMismatch() 2913 PDiag << ft_parameter_arity << ToFunction->getNumParams() in HandleFunctionTypeMismatch() 2921 PDiag << ft_parameter_mismatch << ArgPos + 1 in HandleFunctionTypeMismatch() 2930 PDiag << ft_return_type << ToFunction->getReturnType() in HandleFunctionTypeMismatch() 2936 PDiag << ft_qualifer_mismatch << ToFunction->getMethodQuals() in HandleFunctionTypeMismatch() [all …]
|
D | SemaAccess.cpp | 1592 const PartialDiagnostic &PDiag, in CheckDestructorAccess() argument 1608 Entity.setDiag(PDiag); // TODO: avoid copy in CheckDestructorAccess() 1622 PartialDiagnostic PD(PDiag()); in CheckConstructorAccess() 1625 PD = PDiag(IsCopyBindingRefToTemp in CheckConstructorAccess() 1632 PD = PDiag(diag::err_access_base_ctor); in CheckConstructorAccess() 1639 PD = PDiag(diag::err_access_field_ctor); in CheckConstructorAccess() 1646 PD = PDiag(diag::err_access_lambda_capture); in CheckConstructorAccess()
|
D | SemaConcept.cpp | 181 for (const PartialDiagnosticAt &PDiag : EvaluationDiags) in calculateConstraintSatisfaction() local 182 S.Diag(PDiag.first, PDiag.second); in calculateConstraintSatisfaction()
|
D | SemaExpr.cpp | 558 S.PDiag(diag::warn_indirection_through_null) in CheckForNullPointerDereference() 561 S.PDiag(diag::note_indirection_through_null)); in CheckForNullPointerDereference() 927 PDiag(diag::warn_cxx98_compat_pass_non_pod_arg_to_vararg) << Ty << CT); in checkVariadicArgument() 934 PDiag(diag::warn_pass_class_arg_to_vararg) in checkVariadicArgument() 942 PDiag(diag::warn_cannot_pass_non_pod_arg_to_vararg) in checkVariadicArgument() 953 PDiag(diag::err_cannot_pass_objc_interface_to_vararg) in checkVariadicArgument() 1833 auto RemovalDiag = PDiag(diag::note_cxx20_compat_utf8_string_remove_u8); in ActOnStringLiteral() 2128 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(DiagnosticSuggestID) << Typo, in emitEmptyLookupTypoDiagnostic() 2129 SemaRef.PDiag(NoteID)); in emitEmptyLookupTypoDiagnostic() 2131 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in emitEmptyLookupTypoDiagnostic() [all …]
|
D | SemaStmt.cpp | 381 DiagRuntimeBehavior(Loc, nullptr, PDiag(DiagID) << R1 << R2); in DiagnoseUnusedExprResult() 1589 PartialDiagnostic PDiag = S.PDiag(diag::warn_variables_not_in_loop_body); in CheckForLoopConditionalStatement() local 1613 PDiag << 0; in CheckForLoopConditionalStatement() 1615 PDiag << (unsigned)Decls.size(); in CheckForLoopConditionalStatement() 1617 PDiag << VD->getDeclName(); in CheckForLoopConditionalStatement() 1621 PDiag << Range; in CheckForLoopConditionalStatement() 1623 S.Diag(Ranges.begin()->getBegin(), PDiag); in CheckForLoopConditionalStatement() 2329 SemaRef.PDiag(diag::err_for_range_invalid) in BuildNonArrayForRange() 2609 PDiag(diag::err_for_range_invalid) in BuildCXXForRangeStmt()
|
D | SemaCXXScopeSpec.cpp | 632 diagnoseTypo(Corrected, PDiag(diag::err_no_member_suggest) in BuildCXXNestedNameSpecifier() 636 diagnoseTypo(Corrected, PDiag(diag::err_undeclared_var_use_suggest) in BuildCXXNestedNameSpecifier()
|
/external/rust/crates/proc-macro-error/src/imp/ |
D | delegate.rs | 5 use proc_macro::{Diagnostic as PDiag, Level as PLevel}; 44 let mut res = PDiag::spanned(span, level, msg); in emit_diagnostic()
|
/external/clang/include/clang/Sema/ |
D | DelayedDiagnostic.h | 89 void setDiag(const PartialDiagnostic &PDiag) { in setDiag() argument 91 Diag = PDiag; in setDiag()
|
D | SemaInternal.h | 25 inline PartialDiagnostic Sema::PDiag(unsigned DiagID) { in PDiag() function
|
/external/llvm-project/clang/include/clang/Sema/ |
D | DelayedDiagnostic.h | 99 void setDiag(const PartialDiagnostic &PDiag) { in setDiag() argument 101 Diag = PDiag; in setDiag()
|
D | SemaInternal.h | 24 inline PartialDiagnostic Sema::PDiag(unsigned DiagID) { in PDiag() function
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 1740 const PartialDiagnostic &PDiag) { in Create() argument 1753 if (PDiag.hasStorage()) in Create() 1756 DependentDiagnostic *DD = new (C) DependentDiagnostic(PDiag, DiagStorage); in Create()
|