| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Copy and paste error in r190935..
llvm-svn: 191137
|
|
|
|
|
|
| |
clang-format's -lines parameter makes this significantly easier.
llvm-svn: 190935
|
|
|
|
|
|
| |
messages.
llvm-svn: 189765
|
|
|
|
|
|
|
| |
This way, it has the same default as 'patch' and also the example in the
code makes more sense as it is explicitly setting -p 1.
llvm-svn: 182923
|
|
|
|
|
|
| |
scripts.
llvm-svn: 179676
|
|
|
|
| |
llvm-svn: 179377
|
|
|
|
|
|
|
|
| |
This adds an emacs editor integration (thanks to Ami Fischman). Also
pulls out the style into a variable for the vi integration and just
uses clang-formats defaults style in clang-format-diff.py.
llvm-svn: 179098
|
|
llvm-svn: 177506
|