/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/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 1457 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1468 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1482 S.PDiag(diag::note_thread_warning_in_fun) in getNotes() 1496 PartialDiagnosticAt Warning(Loc, S.PDiag(DiagID) << Kind << LockName); in warnLockMismatch() 1521 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_cannot_resolve_lock) in handleInvalidLockExp() 1536 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_unlock_kind_mismatch) in handleIncorrectUnlockKind() 1568 PartialDiagnosticAt Warning(LocEndOfScope, S.PDiag(DiagID) << Kind in handleMutexHeldEndOfScope() 1571 PartialDiagnosticAt Note(LocLocked, S.PDiag(diag::note_locked_here) in handleMutexHeldEndOfScope() 1583 S.PDiag(diag::warn_lock_exclusive_and_shared) in handleExclusiveAndShared() 1585 PartialDiagnosticAt Note(Loc2, S.PDiag(diag::note_lock_exclusive_and_shared) in handleExclusiveAndShared() [all …]
|
D | SemaExceptionSpec.cpp | 222 PDiag(DiagID), PDiag(diag::note_previous_declaration), in CheckEquivalentExceptionSpec() 376 bool Result = CheckEquivalentExceptionSpec(PDiag(DiagID), in CheckEquivalentExceptionSpec() 377 PDiag(diag::note_previous_declaration), Old, OldLoc, New, NewLoc); in CheckEquivalentExceptionSpec() 778 *this, PDiag(diag::err_deep_exception_specs_differ) << 0, PDiag(), in CheckParamExceptionSpec() 789 *this, PDiag(diag::err_deep_exception_specs_differ) << 1, PDiag(), in CheckParamExceptionSpec() 821 return CheckExceptionSpecSubset(PDiag(diag::err_incompatible_exception_specs), in CheckExceptionSpecCompatibility() 822 PDiag(), ToFunc, in CheckExceptionSpecCompatibility() 857 return CheckExceptionSpecSubset(PDiag(DiagID), in CheckOverridingFunctionExceptionSpec() 858 PDiag(diag::note_overridden_virtual_function), in CheckOverridingFunctionExceptionSpec()
|
D | SemaChecking.cpp | 1213 S.PDiag(diag::warn_null_arg) << ArgExpr->getSourceRange()); in CheckNonNullArgument() 3358 PartialDiagnostic PDiag, 3386 void EmitFormatDiagnostic(PartialDiagnostic PDiag, SourceLocation StringLoc, 3413 EmitFormatDiagnostic(S.PDiag(diag::warn_printf_incomplete_specifier), in HandleIncompleteSpecifier() 3431 EmitFormatDiagnostic(S.PDiag(DiagID) << LM.toString() << CS.toString(), in HandleInvalidLengthModifier() 3445 EmitFormatDiagnostic(S.PDiag(DiagID) << LM.toString() << CS.toString(), in HandleInvalidLengthModifier() 3464 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardLengthModifier() 3475 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardLengthModifier() 3491 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardConversionSpecifier() 3502 EmitFormatDiagnostic(S.PDiag(diag::warn_format_non_standard) in HandleNonStandardConversionSpecifier() [all …]
|
D | SemaAccess.cpp | 1581 entity.setDiag(PDiag()); in isSpecialMemberAccessibleForDeletion() 1594 const PartialDiagnostic &PDiag, in CheckDestructorAccess() argument 1610 Entity.setDiag(PDiag); // TODO: avoid copy in CheckDestructorAccess() 1624 PartialDiagnostic PD(PDiag()); in CheckConstructorAccess() 1627 PD = PDiag(IsCopyBindingRefToTemp in CheckConstructorAccess() 1634 PD = PDiag(diag::err_access_base_ctor); in CheckConstructorAccess() 1641 PD = PDiag(diag::err_access_field_ctor); in CheckConstructorAccess() 1648 PD = PDiag(diag::err_access_lambda_capture); in CheckConstructorAccess()
|
D | SemaExpr.cpp | 555 S.PDiag(diag::warn_indirection_through_null) in CheckForNullPointerDereference() 558 S.PDiag(diag::note_indirection_through_null)); in CheckForNullPointerDereference() 897 PDiag(diag::warn_cxx98_compat_pass_non_pod_arg_to_vararg) in checkVariadicArgument() 905 PDiag(diag::warn_pass_class_arg_to_vararg) in checkVariadicArgument() 914 PDiag(diag::warn_cannot_pass_non_pod_arg_to_vararg) in checkVariadicArgument() 922 PDiag(diag::err_cannot_pass_objc_interface_to_vararg) in checkVariadicArgument() 1784 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(DiagnosticSuggestID) << Typo, in emitEmptyLookupTypoDiagnostic() 1785 SemaRef.PDiag(NoteID)); in emitEmptyLookupTypoDiagnostic() 1787 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in emitEmptyLookupTypoDiagnostic() 1790 SemaRef.PDiag(NoteID)); in emitEmptyLookupTypoDiagnostic() [all …]
|
D | SemaOverload.cpp | 2543 void Sema::HandleFunctionTypeMismatch(PartialDiagnostic &PDiag, in HandleFunctionTypeMismatch() argument 2547 PDiag << ft_default; in HandleFunctionTypeMismatch() 2556 PDiag << ft_different_class << QualType(ToMember->getClass(), 0) in HandleFunctionTypeMismatch() 2576 PDiag << ft_default; in HandleFunctionTypeMismatch() 2582 PDiag << ft_default; in HandleFunctionTypeMismatch() 2591 PDiag << ft_default; in HandleFunctionTypeMismatch() 2596 PDiag << ft_parameter_arity << ToFunction->getNumParams() in HandleFunctionTypeMismatch() 2604 PDiag << ft_parameter_mismatch << ArgPos + 1 in HandleFunctionTypeMismatch() 2613 PDiag << ft_return_type << ToFunction->getReturnType() in HandleFunctionTypeMismatch() 2621 PDiag << ft_qualifer_mismatch << ToQuals << FromQuals; in HandleFunctionTypeMismatch() [all …]
|
D | SemaStmt.cpp | 316 DiagRuntimeBehavior(Loc, nullptr, PDiag(DiagID) << R1 << R2); in DiagnoseUnusedExprResult() 1432 PartialDiagnostic PDiag = S.PDiag(diag::warn_variables_not_in_loop_body); in CheckForLoopConditionalStatement() local 1458 PDiag << 0; in CheckForLoopConditionalStatement() 1460 PDiag << Decls.size(); in CheckForLoopConditionalStatement() 1464 PDiag << (*I)->getDeclName(); in CheckForLoopConditionalStatement() 1473 PDiag << *I; in CheckForLoopConditionalStatement() 1475 PDiag << Second->getSourceRange(); in CheckForLoopConditionalStatement() 1477 S.Diag(Ranges.begin()->getBegin(), PDiag); in CheckForLoopConditionalStatement()
|
D | SemaTemplateVariadic.cpp | 849 PDiag(diag::err_sizeof_pack_no_pack_name_suggest) << &Name, in ActOnSizeofParameterPackExpr() 850 PDiag(diag::note_parameter_pack_here)); in ActOnSizeofParameterPackExpr()
|
D | SemaCXXScopeSpec.cpp | 603 diagnoseTypo(Corrected, PDiag(diag::err_no_member_suggest) in BuildCXXNestedNameSpecifier() 607 diagnoseTypo(Corrected, PDiag(diag::err_undeclared_var_use_suggest) in BuildCXXNestedNameSpecifier()
|
D | SemaExprMember.cpp | 672 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in LookupMemberExprInRecord() 1334 S.PDiag(diag::err_typecheck_member_reference_ivar_suggest) in LookupMemberExpr() 1621 BaseExpr, S.PDiag(diag::err_member_reference_needs_call), in LookupMemberExpr()
|
D | SemaTemplate.cpp | 340 diagnoseTypo(Corrected, PDiag(diag::err_no_member_template_suggest) in LookupTemplateName() 344 diagnoseTypo(Corrected, PDiag(diag::err_no_template_suggest) << Name); in LookupTemplateName() 6897 PDiag(diag::err_function_template_spec_no_match) << FD->getDeclName(), in CheckFunctionTemplateSpecialization() 6898 PDiag(diag::err_function_template_spec_ambiguous) in CheckFunctionTemplateSpecialization() 6900 PDiag(diag::note_function_template_spec_matched)); in CheckFunctionTemplateSpecialization() 7866 PDiag(diag::err_explicit_instantiation_not_known) << Name, in ActOnExplicitInstantiation() 7867 PDiag(diag::err_explicit_instantiation_ambiguous) << Name, in ActOnExplicitInstantiation() 7868 PDiag(diag::note_explicit_instantiation_candidate)); in ActOnExplicitInstantiation() 7889 PDiag(DiagID) << Specialization->getType(), in ActOnExplicitInstantiation() 7890 PDiag(diag::note_explicit_instantiation_here), in ActOnExplicitInstantiation()
|
D | SemaDeclCXX.cpp | 2953 PDiag(diag::err_mem_init_not_member_or_class_suggest) in BuildMemInitializer() 2966 PDiag(diag::err_mem_init_not_member_or_class_suggest) in BuildMemInitializer() 2968 PDiag() /*Suppress note, we provide our own.*/); in BuildMemInitializer() 4337 PDiag(diag::err_access_dtor_field) in MarkBaseAndMemberDestructorsReferenced() 4368 PDiag(diag::err_access_dtor_base) in MarkBaseAndMemberDestructorsReferenced() 4397 PDiag(diag::err_access_dtor_vbase) in MarkBaseAndMemberDestructorsReferenced() 5416 PDiag(diag::err_incorrect_defaulted_exception_spec) in CheckExplicitlyDefaultedMemberExceptionSpec() 5417 << getSpecialMember(MD), PDiag(), in CheckExplicitlyDefaultedMemberExceptionSpec() 6391 PartialDiagnostic PD = PDiag( in NoteHiddenVirtualMethods() 7524 S.PDiag(diag::err_using_directive_member_suggest) in TryNamespaceTypoCorrection() [all …]
|
D | SemaDeclObjC.cpp | 487 diagnoseTypo(Corrected, PDiag(diag::err_undef_superclass_suggest) in ActOnSuperClassOfClassInterface() 1220 diagnoseTypo(Corrected, PDiag(diag::err_undeclared_protocol_suggest) in FindProtocolDeclaration() 1595 PDiag(diag::err_undeclared_protocol_suggest) in actOnObjCTypeArgsOrProtocolQualifiers() 1606 PDiag(diag::err_unknown_typename_suggest) in actOnObjCTypeArgsOrProtocolQualifiers() 1617 PDiag(diag::err_unknown_type_or_class_name_suggest) in actOnObjCTypeArgsOrProtocolQualifiers() 1885 PDiag(diag::warn_undef_interface_suggest) << ClassName, in ActOnStartClassImplementation()
|
D | SemaExprCXX.cpp | 776 PDiag(diag::err_access_dtor_exception) << Ty); in CheckCXXThrowOperand() 1648 PDiag(diag::err_access_dtor) in BuildCXXNew() 2808 PDiag(diag::err_access_dtor) << PointeeElem); in ActOnCXXDelete() 3045 PDiag(diag::err_typecheck_ambiguous_condition) in PerformImplicitConversion() 5443 PDiag(diag::err_access_dtor_temp) in MaybeBindToTemporary() 5598 PDiag(diag::err_access_dtor_temp) in ActOnDecltypeExpression()
|
D | SemaInit.cpp | 2131 SemaRef.PDiag(diag::err_field_designator_unknown_suggest) in CheckDesignatedInitializer() 5481 PartialDiagnostic Diag = S.PDiag(diag::warn_cxx98_compat_temp_copy) in CheckCXX98CompatAccessibleCopy() 6425 S.PDiag(diag::err_access_dtor_temp) << T); in Perform() 7058 PartialDiagnostic PDiag = S.PDiag(diag::err_init_conversion_failed) in Diagnose() local 7064 S.HandleFunctionTypeMismatch(PDiag, FromType, DestType); in Diagnose() 7065 S.Diag(Kind.getLocation(), PDiag); in Diagnose()
|
D | SemaDecl.cpp | 357 PDiag(diag::err_unknown_type_or_class_name_suggest) in getTypeName() 573 diagnoseTypo(Corrected, PDiag(diag::err_unknown_typename_suggest) << II); in DiagnoseUnknownTypeName() 579 PDiag(diag::err_unknown_typename_suggest) << II); in DiagnoseUnknownTypeName() 585 PDiag(diag::err_unknown_nested_typename_suggest) in DiagnoseUnknownTypeName() 832 diagnoseTypo(Corrected, PDiag(UnqualifiedDiag) << Name); in ClassifyName() 837 diagnoseTypo(Corrected, PDiag(QualifiedDiag) in ClassifyName() 1649 diagnoseTypo(C, PDiag(diag::err_undef_interface_suggest) << Id); in getObjCInterfaceDecl() 6971 SemaRef.PDiag(IsLocalFriend in DiagnoseInvalidRedeclaration() 9056 S.PDiag(diag) in HandleDeclRefExpr() 11351 diagnoseTypo(Corrected, PDiag(diag::note_function_suggestion), in ImplicitlyDefineFunction()
|
D | SemaExprObjC.cpp | 1888 diagnoseTypo(Corrected, PDiag(diag::err_property_not_found_suggest) in HandleExprPropertyRefExpr() 2118 PDiag(diag::err_unknown_receiver_suggest) << Name); in getObjCMessageKind() 2125 PDiag(diag::err_unknown_receiver_suggest) << Name); in getObjCMessageKind()
|
D | SemaLookup.cpp | 4839 diagnoseTypo(Correction, TypoDiag, PDiag(diag::note_previous_decl), in diagnoseTypo()
|
D | SemaOpenMP.cpp | 1001 PDiag(Lookup.empty() in ActOnOpenMPIdExpression()
|
/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
|
D | Overload.h | 543 const PartialDiagnostic &PDiag) const;
|
D | Sema.h | 1127 PartialDiagnostic PDiag(unsigned DiagID = 0); // in SemaInternal.h 2222 void HandleFunctionTypeMismatch(PartialDiagnostic &PDiag, 5457 const PartialDiagnostic &PDiag); 5460 const PartialDiagnostic &PDiag,
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 1693 const PartialDiagnostic &PDiag) { in Create() argument 1706 if (PDiag.hasStorage()) in Create() 1709 DependentDiagnostic *DD = new (C) DependentDiagnostic(PDiag, DiagStorage); in Create()
|