mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Check for deprecated implementation unconditionally.
Warning and its note will be ignored in default case. llvm-svn: 125621
This commit is contained in:
@@ -28,12 +28,8 @@ static void DiagnoseObjCImplementedDeprecations(Sema &S,
|
||||
NamedDecl *ND,
|
||||
SourceLocation ImplLoc,
|
||||
int select) {
|
||||
|
||||
unsigned DIAG = diag::warn_deprecated_def;
|
||||
if (S.Diags.getDiagnosticLevel(DIAG, ImplLoc)== Diagnostic::Ignored)
|
||||
return;
|
||||
if (ND && ND->getAttr<DeprecatedAttr>()) {
|
||||
S.Diag(ImplLoc, DIAG) << select;
|
||||
S.Diag(ImplLoc, diag::warn_deprecated_def) << select;
|
||||
if (select == 0)
|
||||
S.Diag(ND->getLocation(), diag::note_method_declared_at);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user