<div dir="ltr"><div class="gmail_default" style>Thank you!<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 9, 2013 at 11:18 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: gribozavr<br>
Date: Wed Jan  9 16:18:55 2013<br>
New Revision: 172007<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=172007&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=172007&view=rev</a><br>
Log:<br>
ClangFormat.rst: improve formatting<br>
<br>
Modified:<br>
    cfe/trunk/docs/ClangFormat.rst<br>
<br>
Modified: cfe/trunk/docs/ClangFormat.rst<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangFormat.rst?rev=172007&r1=172006&r2=172007&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangFormat.rst?rev=172007&r1=172006&r2=172007&view=diff</a><br>

==============================================================================<br>
--- cfe/trunk/docs/ClangFormat.rst (original)<br>
+++ cfe/trunk/docs/ClangFormat.rst Wed Jan  9 16:18:55 2013<br>
@@ -10,7 +10,7 @@<br>
 Standalone Tool<br>
 ===============<br>
<br>
-`clang-format` is part of the `clang/tools/extra` (see<br>
+:program:`clang-format` is part of the `clang/tools/extra` (see<br>
 :doc:`ClangTools <ClangTools>`) repository and can be used to format<br>
 C/C++/Obj-C code.<br>
<br>
@@ -42,10 +42,10 @@<br>
 Vim Integration<br>
 ===============<br>
<br>
-There is an integration for `vim` which lets you run the `clang-format`<br>
-standalone tool on your current buffer, optionally selecting regions to<br>
-reformat. The integration has to form of a `python`-file which can be found<br>
-under `clang/tools/extra/clang-format/clang-format.py`.<br>
+There is an integration for :program:`vim` which lets you run the<br>
+:program:`clang-format` standalone tool on your current buffer, optionally<br>
+selecting regions to reformat. The integration has to form of a `python`-file<br>
+which can be found under `clang/tools/extra/clang-format/clang-format.py`.<br>
<br>
 This can be integrated by mapping the following to your `.vimrc`:<br>
<br>
@@ -54,9 +54,9 @@<br>
   map <C-I> :pyf <path-to-this-file>/clang-format.py<CR><br>
   imap <C-I> <ESC>:pyf <path-to-this-file>/clang-format.py<CR>i<br>
<br>
-The first line enables `clang-format` for NORMAL and VISUAL mode, the second<br>
-line adds support for INSER` mode. Change "C-I" to another binding if you<br>
-need clang-format on a different key (C-I stands for Ctrl+i).<br>
+The first line enables :program:`clang-format` for NORMAL and VISUAL mode, the<br>
+second line adds support for INSERT mode. Change "C-I" to another binding if<br>
+you need :program:`clang-format` on a different key (C-I stands for Ctrl+i).<br>
<br>
 With this integration you can press the bound key and clang-format will<br>
 format the current line in NORMAL and INSERT mode or the selected region in<br>
@@ -71,7 +71,7 @@<br>
 =============================<br>
<br>
 The python script `clang/tools/extra/clang-format-diff.py` parses the output of<br>
-a unified diff and reformats all contained lines with `clang-format`.<br>
+a unified diff and reformats all contained lines with :program:`clang-format`.<br>
<br>
 .. code-block:: console<br>
<br>
@@ -84,11 +84,11 @@<br>
     -p P          strip the smallest prefix containing P slashes<br>
     -style STYLE  formatting style to apply (LLVM, Google)<br>
<br>
-So to reformat all the lines in the latest `git` commit, just do:<br>
+So to reformat all the lines in the latest :program:`git` commit, just do:<br>
<br>
 .. code-block:: console<br>
<br>
   git diff -U0 HEAD^ | clang-format-diff.py<br>
-<br>
-The `-U0` will create a diff without context lines (the script would format<br>
+<br>
+The :option:`-U0` will create a diff without context lines (the script would format<br>
 those as well).<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>