Skip to content
Snippets Groups Projects
Commit dbaa5b04 authored by Alexander Kornienko's avatar Alexander Kornienko
Browse files

Updated clang-format help messages for -offset and -length

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181593 91177308-0d34-0410-b5e6-96231b3b80d8
parent 8061322d
No related branches found
No related tags found
No related merge requests found
......@@ -28,13 +28,19 @@ using namespace llvm;
static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden);
static cl::list<unsigned>
Offsets("offset", cl::desc("Format a range starting at this byte offset. Can "
"only be used with one input file."));
static cl::list<unsigned>
Lengths("length", cl::desc("Format a range of this length (in bytes). "
"When it's not specified, end of file is used. "
"Can only be used with one input file."));
static cl::list<unsigned> Offsets(
"offset",
cl::desc(
"Format a range starting at this byte offset. Multiple ranges can be "
"formatted by specifying several -offset and -length pairs. Can "
"only be used with one input file."));
static cl::list<unsigned> Lengths(
"length",
cl::desc("Format a range of this length (in bytes). Multiple ranges can be "
"formatted by specifying several -offset and -length pairs. When "
"only a single -offset is specified without -length, clang-format "
"will format up to the end of the file. Can only be used with one "
"input file."));
static cl::opt<std::string> Style(
"style",
cl::desc(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment