diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-05-10 13:18:17 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-05-10 13:18:17 +0000 |
commit | dbaa5b04834f74e68e746ac2e4abbcd20623f90d (patch) | |
tree | 024aec27e94b2b23a729bef71c61ddf1d2b549ff /tools/clang-format/ClangFormat.cpp | |
parent | 8061322dabc3adc58ad20832170942eb72f009e6 (diff) |
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
Diffstat (limited to 'tools/clang-format/ClangFormat.cpp')
-rw-r--r-- | tools/clang-format/ClangFormat.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/clang-format/ClangFormat.cpp b/tools/clang-format/ClangFormat.cpp index ea9482ea12..ea70dafe03 100644 --- a/tools/clang-format/ClangFormat.cpp +++ b/tools/clang-format/ClangFormat.cpp @@ -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( |