llvm-project/clang/tools/clang-format
Daniel Jasper 164c8e1810 clang-format: Fix clang-format-diff.py according to diff specification.
Patch by Alp Toker. Many thanks!

Original descriptions:
clang-format-diff incorrectly modifies unchanged lines due to an error
in diff parsing.

The unified diff format has a default line change count of 1, and 0 may
be specified to indicate that no lines have been added. This patch
updates the parser to accurately reflect the diff specification.

This also has the benefit of stabilising the operation so it will
produce the same output when run multiple times on the same changeset,
which was previously not the case.

No tests added because this script is not currently tested (though we
should look into that!)

llvm-svn: 191820
2013-10-02 13:59:03 +00:00
..
CMakeLists.txt Install git-clang-format along with clang-format by default. 2013-07-22 12:51:47 +00:00
ClangFormat.cpp Remove unused variable introduced in 191666 2013-09-30 17:30:41 +00:00
Makefile [Driver] Refactor clang driver to use LLVM's Option library 2013-06-14 17:17:23 +00:00
clang-format-bbedit.applescript Basic clang-format integration for BBEdit. 2013-05-02 17:37:36 +00:00
clang-format-diff.py clang-format: Fix clang-format-diff.py according to diff specification. 2013-10-02 13:59:03 +00:00
clang-format-sublime.py clang-format: Add -assume-filename option for editor integrations. 2013-09-13 13:40:24 +00:00
clang-format.el clang-format: Add -assume-filename option for editor integrations. 2013-09-13 13:40:24 +00:00
clang-format.py clang-format: Add -assume-filename option for editor integrations. 2013-09-13 13:40:24 +00:00
git-clang-format Simplify git-clang-format by using new -lines option. 2013-08-01 18:17:13 +00:00