]> granicus.if.org Git - clang/commit
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)
commitf7d9e63858138134953e713f948b20a8b8c9a872
tree4fb940d37c35390fbb2f9ba0ca145271f7852557
parentd69f37b5822420e3c3a1b2e875b122aca8248533
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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192184 91177308-0d34-0410-b5e6-96231b3b80d8
tools/clang-format/ClangFormat.cpp
tools/clang-format/clang-format-diff.py