Show config file errors in Xcode

This PR makes it easy to detect syntax errors of .clang-format files. Standard error of clang-format is captured and displayed if necessary. In case of formatting many files at once only first error is displayed and further formatting is aborted.