forked from OSchip/llvm-project
Tweek r156937 a bit so that the suggestions are correct.
llvm-svn: 156938
This commit is contained in:
parent
286852a10c
commit
e2d8fbbbf1
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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'?
|
||||
|
|
Loading…
Reference in New Issue