[cfe-dev] Clang Docs

Nico Weber thakis at chromium.org
Sat Feb 22 17:30:11 PST 2014


Hi Tim,

I don't know if there's any documentation for -x.

The list of recognized names is here:
https://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Types.def?view=markup&pathrev=185562It's
a bit long to just include all of that in `clang --help`. (The way I
discovered this was by looking for the "-x" text in
include/clang/Driver/Options.td , then looking for OPT_x in lib/Driver ,
which showed me that Driver.cpp calls types::lookupTypeForTypeSpecifier to
do the string->type transition, and from there I could click me through
clang's oxygen to the Types.td file. clang users shouldn't have to do this
of course, but maybe you're thinking about contributing, then this might be
useful for you.)

clang's user manual is at http://clang.llvm.org/docs/UsersManual.html –
maybe you want to try and contribute documentation for -x? UsersManual.html
is generated from docs/UsersManual.rst in the clang repo.

Nico


On Sat, Feb 22, 2014 at 5:10 PM, Tim Hill <drtimhill at gmail.com> wrote:

> Apologies for the “noob” question, I’m still getting up to speed on clang…
>
> Where is the best source of docs on clang, specifically options. I’m
> trying to use the “-x” option (select source language) and the online help
> and man page just says “-x language” without listing the acceptable values
> for “language”.
>
> Thanks!
> —Tim
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140222/cf9d7013/attachment.html>


More information about the cfe-dev mailing list