[llvm-dev] [cfe-dev] Official documentation of -x of clang

Anastasia Stulova via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 14 10:00:57 PDT 2021


Indeed, as it is not exposed for the end-users it is not on the UsersManual page.

You can find documentation for it here: https://clang.llvm.org/docs/ClangCommandLineReference.html taken from the help text I think.

But it still doesn't have the list of supported languages, so reading the source code seems the only way.


Anastasia

________________________________
From: cfe-dev <cfe-dev-bounces at lists.llvm.org> on behalf of Andrzej Warzynski via cfe-dev <cfe-dev at lists.llvm.org>
Sent: 14 April 2021 17:37
To: llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>; cfe-dev at lists.llvm.org <cfe-dev at lists.llvm.org>
Subject: Re: [cfe-dev] [llvm-dev] Official documentation of -x of clang

+cfe-dev

I'm not aware of any documentation specifically for `-x`. You could
check the implementation to get an idea:

https://github.com/llvm/llvm-project/blob/main/clang/lib/Frontend/CompilerInvocation.cpp#L2703-L2754

-Andrzej

On 10/04/2021 20:01, Peng Yu via llvm-dev wrote:
> Hi,
>
> https://clang.llvm.org/docs/UsersManual.html
>
> I don't find the official documentation of -x of clang. Where is the
> complete list of languages supported by -x? Thanks.
>
_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210414/0d703715/attachment.html>


More information about the llvm-dev mailing list