[PATCH] D156436: [llvm/OptTable] Print options without documentation
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 30 20:08:19 PDT 2023
MaskRay added a comment.
I agree that displaying all options will be useful. And with `OptInFC1FFlag`, displaying just the negative option in `--help` will be nice.
lichray has a point that (a) this allows determining whether an option is accepted by a specific version of Clang and (b) without a string like "(Undocumented)", an option without a message can be confused with a preceding option.
================
Comment at: flang/test/Driver/driver-help.f90:17
! HELP-NEXT:OPTIONS:
-! HELP-NEXT: -### Print (but do not run) the commands to run for this compilation
-! HELP-NEXT: -cpp Enable predefined and command line preprocessor macros
----------------
See https://llvm.org/docs/CommandGuide/FileCheck.html#cmdoption-filecheck-strict-whitespace , you can remove space updates from this patch.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156436/new/
https://reviews.llvm.org/D156436
More information about the llvm-commits
mailing list