clang-format: Don't exit with failure on empty files.
authorDaniel Jasper <djasper@google.com>
Tue, 8 Oct 2013 15:54:36 +0000 (15:54 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 8 Oct 2013 15:54:36 +0000 (15:54 +0000)
commite8845ad4c5f8ae7b7775743d82f35cfd4c71e419
treec7084e2baed679a8eced2c46e19d9f5c2bffda72
parent7f1146c4945a3bad3dafebd39cb62b97d6fbdd53
clang-format: Don't exit with failure on empty files.

Also let clang-format-diff.py detect errors based on clang-format's
return code. Otherwise messages like "Can't find usable .clang-format,
falling back to LLVM style" can make it fail, which might be undesired.

Patch by Alp Toker. Thank you!

llvm-svn: 192184
clang/tools/clang-format/ClangFormat.cpp
clang/tools/clang-format/clang-format-diff.py