Tweek r156937 a bit so that the suggestions are correct.

llvm-svn: 156938
This commit is contained in:
Chad Rosier 2012-05-16 19:42:03 +00:00
parent 286852a10c
commit e2d8fbbbf1
2 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,8 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags,
if (Report) {
if (DiagIDs->getDiagnosticsInGroup(Opt, _Diags))
EmitUnknownDiagWarning(Diags, "-W", OrigOpt, isPositive);
EmitUnknownDiagWarning(Diags, isPositive ? "-W" : "-Wno-", Opt,
isPositive);
} else {
Diags.setDiagnosticGroupMapping(Opt, Mapping);
}

View File

@ -7,4 +7,4 @@
// RUN: -Wno-unused-command-line-argument %s 2>&1 | FileCheck %s
// CHECK: unknown warning option '-Wmonkey'
// CHECK: unknown warning option '-Wno-monkey'
// CHECK: unknown warning option '-Wno-unused-command-line-arguments'
// CHECK: unknown warning option '-Wno-unused-command-line-arguments'; did you mean '-Wno-unused-command-line-argument'?