llvm-project/clang/tools
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
..
arcmt-test Remove dead include. 2013-06-26 12:49:58 +00:00
c-arcmt-test {c-index-test|c-arcmt-test}/Makefile: Update USEDLIBS along corresponding to clangIndex. 2013-08-18 03:48:57 +00:00
c-index-test {c-index-test|c-arcmt-test}/Makefile: Update USEDLIBS along corresponding to clangIndex. 2013-08-18 03:48:57 +00:00
clang-check [Driver] Refactor clang driver to use LLVM's Option library 2013-06-14 17:17:23 +00:00
clang-format clang-format: Fix clang-format-diff.py according to diff specification. 2013-10-02 13:59:03 +00:00
clang-format-vs Allow _clang-format as alternative to .clang-format config filename 2013-09-10 15:41:12 +00:00
diag-build Add new tool 'diag-build' for showing enabled warnings in a project. 2012-06-18 21:31:37 +00:00
diagtool Move individual group name strings from the OptionTable into one big char array. Then only store offsets into it in the OptionTable. Saves about 4K from the clang binary and removes 400 relocation entries from DiagnosticIDs.o. 2013-08-29 05:18:04 +00:00
driver Fix up fallout from r187156. 2013-09-26 21:00:51 +00:00
libclang [OpenMP] Added parsing and semantic analysis for firstprivate clause 2013-10-01 05:32:34 +00:00
scan-build [analyzer] scan-build: add missing semicolon 2013-09-16 16:17:18 +00:00
scan-view [analyzer] scan-view: don't ever serve absolute paths. 2013-04-29 17:23:06 +00:00
CMakeLists.txt Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00
Makefile Re-add clang-check to the Makefile build. 2013-08-22 16:12:04 +00:00