summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-09-02 15:30:26 +0000
committerAlexander Kornienko <alexfh@google.com>2013-09-02 15:30:26 +0000
commitd83adf30c6f30013203fd471566dbf279834b8d4 (patch)
treeca418c19744a0bae9ca08d9d902c5fcb670bce7b /clang/docs
parent22479f7d9999bed7d589b319a2d24d511ededc80 (diff)
downloadbcm5719-llvm-d83adf30c6f30013203fd471566dbf279834b8d4.tar.gz
bcm5719-llvm-d83adf30c6f30013203fd471566dbf279834b8d4.zip
Whitespace changes in help messages + updated help output in .rst file.
llvm-svn: 189762
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/ClangFormat.rst14
1 files changed, 11 insertions, 3 deletions
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst
index fcbd1658657..489b9b71b1c 100644
--- a/clang/docs/ClangFormat.rst
+++ b/clang/docs/ClangFormat.rst
@@ -15,13 +15,13 @@ to format C/C++/Obj-C code.
.. code-block:: console
- $ clang-format --help
+ $ clang-format -help
OVERVIEW: A tool to format C/C++/Obj-C code.
If no arguments are specified, it formats the code from standard input
and writes the result to the standard output.
- If <file>s are given, it reformats the files. If -i is specified
- together with <file>s, the files are edited in-place. Otherwise, the
+ If <file>s are given, it reformats the files. If -i is specified
+ together with <file>s, the files are edited in-place. Otherwise, the
result is written to the standard output.
USAGE: clang-format [options] [<file> ...]
@@ -30,6 +30,8 @@ to format C/C++/Obj-C code.
Clang-format options:
+ -cursor=<uint> - The position of the cursor when invoking
+ clang-format from an editor integration
-dump-config - Dump configuration options to stdout and exit.
Can be used with -style option.
-i - Inplace edit <file>s, if specified.
@@ -40,6 +42,12 @@ to format C/C++/Obj-C code.
-length, clang-format will format up to the end
of the file.
Can only be used with one input file.
+ -lines=<string> - <start line>:<end line> - format a range of
+ lines (both 1-based).
+ Multiple ranges can be formatted by specifying
+ several -lines arguments.
+ Can't be used with -offset and -length.
+ Can only be used with one input file.
-offset=<uint> - Format a range starting at this byte offset.
Multiple ranges can be formatted by specifying
several -offset and -length pairs.
OpenPOWER on IntegriCloud