[Patch] clang-cl: add support for /? and /help

Reid Kleckner rnk at google.com
Tue Jul 23 10:56:58 PDT 2013

I think we want to have a whitelist of "clang options" that are distinct
from gcc options, rather than blacklisting a troublesome few (-MD) as
GCCOptions.  That seemed to be the main conclusion of the discussion on

We obviously don't want to add Flags<[ClangOption]> to every option in
f_Group and f_clang_Group, so there'll have to be some tablegen magic in

Does that seem reasonable?

On Mon, Jul 22, 2013 at 8:38 PM, Hans Wennborg <hans at chromium.org> wrote:

> Hi all,
> The attached patch makes clang-cl handle the /? and /help command-line
> flags.
> These are both just aliases to the regular -help flag, but this puts
> the code in place for accepting (and printing as part of the help
> message) different flags depending on the driver mode.
> Please take a look!
> Thanks,
> Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130723/0e63c2d5/attachment.html>

More information about the cfe-commits mailing list