mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 09:46:07 +00:00
[clang-format] update --files help description
correlates the option with reponse file concept. Reviewed By: HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D135115
This commit is contained in:
parent
5403c59c60
commit
2c94f75f00
@ -26,7 +26,7 @@ to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.
|
||||
together with <file>s, the files are edited in-place. Otherwise, the
|
||||
result is written to the standard output.
|
||||
|
||||
USAGE: clang-format [options] [<file> ...]
|
||||
USAGE: clang-format [options] [@<file>] [<file> ...]
|
||||
|
||||
OPTIONS:
|
||||
|
||||
@ -69,7 +69,8 @@ to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.
|
||||
--ferror-limit=<uint> - Set the maximum number of clang-format errors to emit
|
||||
before stopping (0 = no limit).
|
||||
Used only with --dry-run or -n
|
||||
--files=<string> - Provide a list of files to run clang-format
|
||||
--files=<filename> - A file containing a list of files to process, one
|
||||
per line.
|
||||
-i - Inplace edit <file>s, if specified.
|
||||
--length=<uint> - Format a range of this length (in bytes).
|
||||
Multiple ranges can be formatted by specifying
|
||||
|
@ -125,9 +125,11 @@ static cl::opt<std::string> QualifierAlignment(
|
||||
"determined by the QualifierAlignment style flag"),
|
||||
cl::init(""), cl::cat(ClangFormatCategory));
|
||||
|
||||
static cl::opt<std::string>
|
||||
Files("files", cl::desc("Provide a list of files to run clang-format"),
|
||||
cl::init(""), cl::cat(ClangFormatCategory));
|
||||
static cl::opt<std::string> Files(
|
||||
"files",
|
||||
cl::desc("A file containing a list of files to process, one per line."),
|
||||
cl::value_desc("filename"),
|
||||
cl::init(""), cl::cat(ClangFormatCategory));
|
||||
|
||||
static cl::opt<bool>
|
||||
Verbose("verbose", cl::desc("If set, shows the list of processed files"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user