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

34 views
Skip to first unread message

Peng Yu via llvm-dev

unread,
Apr 10, 2021, 3:01:23 PM4/10/21
to llvm-dev
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.

--
Regards,
Peng
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Andrzej Warzynski via llvm-dev

unread,
Apr 14, 2021, 12:38:40 PM4/14/21
to llvm...@lists.llvm.org, cfe...@lists.llvm.org
+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.
>

Anastasia Stulova via llvm-dev

unread,
Apr 14, 2021, 1:01:44 PM4/14/21
to llvm...@lists.llvm.org, cfe...@lists.llvm.org
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...@lists.llvm.org> on behalf of Andrzej Warzynski via cfe-dev <cfe...@lists.llvm.org>
Sent: 14 April 2021 17:37
To: llvm...@lists.llvm.org <llvm...@lists.llvm.org>; cfe...@lists.llvm.org <cfe...@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.
>
_______________________________________________
Reply all
Reply to author
Forward
0 new messages