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