Skip to content

Missing options in clang -help and flang-new -help #57033

Closed
@banach-space

Description

@banach-space

Clang's driver library doesn't print -fsyntax-only or -O{0|1|2|3} options when using the -help option. This can be reproduced with clang as well as flang-new (which is built in terms of clangDriver):

$ clang  -help | grep syntax
  -objcmt-migrate-property-dot-syntax
                          Enable migration of setter/getter messages to property-dot syntax
$

(-fsyntax-only is missing). I suspect that this might affect other options too. Printing happens via OptTable::printHelp, but I don't see any obvious issues with that method.

This isn't that noticeable in Clang as clang -help | wc -l gives me ~1200. But for flang-new this is ~50. Checked with 333f98b.

Thanks,
-Andrzej

Metadata

Metadata

Assignees

Labels

clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'flang:drivergood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions