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.
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
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
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