It was already the case for CLI help, also support it for rst output. As a side
effect remove redundant (and sometime inconsistent!) value help from HelpText in
clang/Driver/Options.td.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for the additional docs!
clang/docs/ClangCommandLineReference.rst | ||
---|---|---|
2616 ↗ | (On Diff #417864) | From looking at Options.td, it seems there are more visibility values we support as synonyms: https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Driver/Options.td#L472 Should we list those and document their nature? |
Btw, you're changing a generated .rst file. You need to fix up the documentation in Options.td which is used to generate this .rst file. I don't know that you'll be able to change the option values the way you have, though; at least, not without adding some logic to the tabelgen code.
thanks for the guidance. I'll check if I can update tablegen to generate possible options then :-)
clang-tblgen --gen-opt-docs -I ../llvm/include -I include/clang/Driver include/clang/Driver/ClangOptionDocs.td
For -gsplit-dwarf, the message has lost information (the choices split/single are not listed). I have found similar patterns for other options.
.. option:: -gsplit-dwarf=<arg> .. program:: clang -Set DWARF fission mode to either 'split' or 'single' +Set DWARF fission mode .. option:: -gstrict-dwarf, -gno-strict-dwarf