parent
7484e4e337
commit
0c87d36d9d
|
@ -1969,7 +1969,7 @@ def warn_deprecated_message : Warning<"%0 is deprecated: %1">,
|
||||||
def warn_deprecated_fwdclass_message : Warning<
|
def warn_deprecated_fwdclass_message : Warning<
|
||||||
"%0 maybe deprecated because receiver type is unknown">,
|
"%0 maybe deprecated because receiver type is unknown">,
|
||||||
InGroup<DeprecatedDeclarations>;
|
InGroup<DeprecatedDeclarations>;
|
||||||
def warn_depercated_def : Warning<
|
def warn_deprecated_def : Warning<
|
||||||
"Implementing deprecated %select{method|class|category}0">,
|
"Implementing deprecated %select{method|class|category}0">,
|
||||||
InGroup<DeprecatedImplementations>, DefaultIgnore;
|
InGroup<DeprecatedImplementations>, DefaultIgnore;
|
||||||
def err_unavailable : Error<"%0 is unavailable">;
|
def err_unavailable : Error<"%0 is unavailable">;
|
||||||
|
|
|
@ -29,7 +29,7 @@ static void DiagnoseObjCImplementedDeprecations(Sema &S,
|
||||||
SourceLocation ImplLoc,
|
SourceLocation ImplLoc,
|
||||||
int select) {
|
int select) {
|
||||||
|
|
||||||
unsigned DIAG = diag::warn_depercated_def;
|
unsigned DIAG = diag::warn_deprecated_def;
|
||||||
if (S.Diags.getDiagnosticLevel(DIAG, ImplLoc)== Diagnostic::Ignored)
|
if (S.Diags.getDiagnosticLevel(DIAG, ImplLoc)== Diagnostic::Ignored)
|
||||||
return;
|
return;
|
||||||
if (ND && ND->getAttr<DeprecatedAttr>()) {
|
if (ND && ND->getAttr<DeprecatedAttr>()) {
|
||||||
|
|
Loading…
Reference in New Issue