r181593 - Updated clang-format help messages for -offset and -length
Alexander Kornienko
alexfh at google.com
Fri May 10 06:18:17 PDT 2013
Author: alexfh
Date: Fri May 10 08:18:17 2013
New Revision: 181593
URL: http://llvm.org/viewvc/llvm-project?rev=181593&view=rev
Log:
Updated clang-format help messages for -offset and -length
Modified:
cfe/trunk/tools/clang-format/ClangFormat.cpp
Modified: cfe/trunk/tools/clang-format/ClangFormat.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/ClangFormat.cpp?rev=181593&r1=181592&r2=181593&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/ClangFormat.cpp (original)
+++ cfe/trunk/tools/clang-format/ClangFormat.cpp Fri May 10 08:18:17 2013
@@ -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(
More information about the cfe-commits
mailing list