While using GCC I usually use man gcc
to find help / reference information (descriptions of command-line options, etc.). Most of the time the output of man gcc
does contain help / reference information, which is present on https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/.
While using Clang I usually use man clang
for the same purpose. However, usually the output of man clang
doesn't contain the help / reference information, which is present on https://clang.llvm.org/docs/ClangCommandLineReference.html.
Here is a comparison of the length of the output of man gcc
vs. man clang
:
$ man gcc | wc -l
18504
$ man clang | wc -l
436
Here we see that the output of man gcc
is much bigger than the output of man clang
.
Is it possible to obtain a comprehensive help / reference information about Clang using command line?
Extra:
info clang
. However, it produces the same output than man clang
.lynx https://clang.llvm.org/docs/ClangCommandLineReference.html
(then press /
for search) can be the solution.Here is a solution that works for me:
$ alias "man_clang"="lynx https://clang.llvm.org/docs/ClangCommandLineReference.html"
$ man_clang
<press '/' for search>