On 18/11/15 17:05, Jeff Law wrote:
As we've been continuously converting our source base to C++, the
clang-format should
provide better results than a collection of regular expressions
(check_GNU_style.sh).
As a reference file I attach gcc/tree-ssa-uninit.c file.
Feel free to comment the suggested configuration file.
This is fine. Given that gnu-indent seems to muck up C++ badly in my
experience, clang-format may be a better long term solution. I'd really like
to get to a point one day where formatting is a commit hook so that things are
always kept properly formatted.
Which is a sad demonstration of how the refusal of GCC's FEs being re-used for
other purposes by GNU tools (and others) was and is a mistake, and it is
leading to GNU tools being replaced by LLVM-based ones (ultimately affecting
GCC and GDB themselves).
Cheers,
Manuel.