summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-10-02 13:59:03 +0000
committerDaniel Jasper <djasper@google.com>2013-10-02 13:59:03 +0000
commit4a966d3fa21710660cedf20d44d7a8e8809dc56d (patch)
tree4f1043a227b23c07880956439b5d91ae6acc15b5 /lib/Frontend/CompilerInvocation.cpp
parent58a82a3971ec5966191e365d28c7132d3bf03f84 (diff)
downloadclang-4a966d3fa21710660cedf20d44d7a8e8809dc56d.tar.gz
clang-4a966d3fa21710660cedf20d44d7a8e8809dc56d.tar.bz2
clang-4a966d3fa21710660cedf20d44d7a8e8809dc56d.tar.xz
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!) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions