summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format
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
commitffaf29a07b0722e436fc37e1659504f03a34413c (patch)
tree1b59d65c06369ea3d663a3839d0770f8c8cf9f6a /clang/tools/clang-format
parent10e3ef8d2df8e578d620518ee36febe5c236523a (diff)
downloadbcm5719-llvm-ffaf29a07b0722e436fc37e1659504f03a34413c.tar.gz
bcm5719-llvm-ffaf29a07b0722e436fc37e1659504f03a34413c.zip
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. llvm-svn: 206479
Diffstat (limited to 'clang/tools/clang-format')
-rw-r--r--clang/tools/clang-format/clang-format.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py
index 0c0da6e4dcf..46af0682aa7 100644
--- a/clang/tools/clang-format/clang-format.py
+++ b/clang/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' +
OpenPOWER on IntegriCloud