summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-04-17 17:51:57 +0000
committerNico Weber <nicolasweber@gmx.de>2014-04-17 17:51:57 +0000
commitb2f2d3e9295711a9bceb8be448584510e87225c7 (patch)
tree4eb74839dc9043be5183e43e152b4c663d70b707 /tools
parentde001b34b094cc6a6b6fa35becd8ef726b6c906c (diff)
downloadclang-b2f2d3e9295711a9bceb8be448584510e87225c7.tar.gz
clang-b2f2d3e9295711a9bceb8be448584510e87225c7.tar.bz2
clang-b2f2d3e9295711a9bceb8be448584510e87225c7.tar.xz
clang-format.py: Don't omit the first two words from error messages.
This reverts r172072. clang-format used to use DiagnosticEngine to output errors: http://llvm.org/viewvc/llvm-project?view=revision&revision=172071. Now it doesn't, so this code is obsolete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/clang-format/clang-format.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/clang-format/clang-format.py b/tools/clang-format/clang-format.py
index 0c0da6e4dc..46af0682aa 100644
--- a/tools/clang-format/clang-format.py
+++ b/tools/clang-format/clang-format.py
@@ -59,12 +59,7 @@ def main():
# If successful, replace buffer contents.
if stderr:
- message = stderr.splitlines()[0]
- parts = message.split(' ', 2)
- if len(parts) > 2:
- message = parts[2]
- print 'Formatting failed: %s (total %d warnings, %d errors)' % (
- message, stderr.count('warning:'), stderr.count('error:'))
+ print stderr
if not stdout:
print ('No output from clang-format (crashed?).\n' +