forked from OSchip/llvm-project
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
This commit is contained in:
parent
10e3ef8d2d
commit
ffaf29a07b
|
@ -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' +
|
||||
|
|
Loading…
Reference in New Issue