[PATCH] D131808: [clang,flang] Add missing options fsyntax-only in help
Andrzej Warzynski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 13 01:33:47 PDT 2022
awarzynski added a comment.
Thanks, mostly makes sense! https://github.com/llvm/llvm-project/issues/57033 mentions `-O{n}` as well :) Could you fix that too? More comments inline.
CI is still failing :( Are you able to re-produce that? (I'm traveling atm, so can't check).
================
Comment at: clang/include/clang/Driver/Options.td:2798-2799
def fsyntax_only : Flag<["-"], "fsyntax-only">,
- Flags<[NoXarchOption,CoreOption,CC1Option,FC1Option]>, Group<Action_Group>;
+ Flags<[NoXarchOption,CoreOption,CC1Option,FC1Option,FlangOption]>, Group<Action_Group>,
+ HelpText<"Syntax-check only">;
def ftabstop_EQ : Joined<["-"], "ftabstop=">, Group<f_Group>;
----------------
Note that:
```
$ gcc --help=common | grep syntax
-fsyntax-only Check for syntax errors, then stop.
```
and (from Clang [[ https://github.com/llvm/llvm-project/blob/main/clang/docs/CommandGuide/clang.rst | docs ]]
> Run the preprocessor, parser and type checking stages.
For consistency sake, I would replace "Syntax-check only"" with "Run the preprocessor, parser and type checking stages.". Technically, there's no separate preprocessor in Flang, but that's IMO tangential to this.
================
Comment at: clang/include/clang/Driver/Options.td:3213-3214
def headerpad__max__install__names : Joined<["-"], "headerpad_max_install_names">;
-def help : Flag<["-", "--"], "help">, Flags<[CC1Option,CC1AsOption, FC1Option,
- FlangOption]>, HelpText<"Display available options">,
+def help : Flag<["-", "--"], "help">, Flags<[CC1Option,CC1AsOption,FC1Option,FlangOption]>,
+ HelpText<"Display available options">,
MarshallingInfoFlag<FrontendOpts<"ShowHelp">>;
----------------
Unrelated change?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131808/new/
https://reviews.llvm.org/D131808
More information about the cfe-commits
mailing list