diff options
Diffstat (limited to 'docs/ClangFormat.rst')
| -rw-r--r-- | docs/ClangFormat.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/ClangFormat.rst b/docs/ClangFormat.rst index f53c02ae90d7..f2228c57505b 100644 --- a/docs/ClangFormat.rst +++ b/docs/ClangFormat.rst @@ -169,7 +169,7 @@ Visual Studio Integration ========================= Download the latest Visual Studio extension from the `alpha build site -<http://llvm.org/builds/>`_. The default key-binding is Ctrl-R,Ctrl-F. +<https://llvm.org/builds/>`_. The default key-binding is Ctrl-R,Ctrl-F. Script for patch reformatting @@ -200,6 +200,12 @@ So to reformat all the lines in the latest :program:`git` commit, just do: git diff -U0 --no-color HEAD^ | clang-format-diff.py -i -p1 +With Mercurial/:program:`hg`: + +.. code-block:: console + + hg diff -U0 --color=never | clang-format-diff.py -i -p1 + In an SVN client, you can do: .. code-block:: console |
