Warning and its note will be ignored in default case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125621
91177308-0d34-0410-b5e6-
96231b3b80d8
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