<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    The "did you mean" for warnings first removes the '-Wno-', if
    present, and then only matches against positive options. This leads
    to some annoying problems, like:<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    $ clang++ -Wnoarc<br>
    clang: warning: unknown warning option '-Wnoarc'; did you mean
    '-Warc'?<br>
    <br>
    When what I really want is a suggestion to use '-Wno-arc'<br>
    <br>
    Attached is a patch that takes a stab at dealing with this. It does
    in principle make the existing code slower, my turning a bunch of
    StringRefs into std::strings, but I don't imagine spell-checking
    warning options is on the critical path!<br>
    <br>
    I tried adding a test, which is purposefully broken (note the '
    PURPOSEFUL BREAK ' comment in it), but which doesn't seem to be
    getting run (and failing). I looked around and could not figure out
    why it is not getting invoked, any comments welcome.<br>
    <br>
    Chris<br>
  </body>
</html>