[PATCH] D93459: Fix -Wno-error= parsing in clang-format.
Joachim Meyer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 17 07:10:51 PST 2020
fodinabor added a comment.
Quoting my questions from the other review, as it should be more appropriate to discuss this here:
The formatting of the `--help` page is still slightly off (I guess `cl::values` descriptions are supposed to be single line), so I guess I have to investigate my formatting options here or move the more extensive description somewhere else...
Clang-format options:
--Werror - If set, changes formatting warnings to errors
--Wno-error=<value> - If set don't error out on the specified warning type.
=unknown - If set, unknown format options are only warned about.
This can be used to enable formatting, even if the
configuration contains unknown (newer) options.
Use with caution, as this might lead to dramatically
differing format depending on an option being
supported or not.
--assume-filename=<string> - Override filename used to determine the language.
When reading from stdin, clang-format assumes this
filename to determine the language.
--cursor=<uint> - The position of the cursor when invoking
...
Btw. is there a way to add tests for command-line options, so this won't happen unnoticed again?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93459/new/
https://reviews.llvm.org/D93459
More information about the cfe-commits
mailing list