Re: [PATCH v2] clang-format: add configuration file

2018-03-18 Thread Miguel Ojeda
On Sun, Mar 18, 2018 at 7:26 PM, Joe Perches wrote: > On Sun, 2018-03-18 at 18:16 +0100, Miguel Ojeda wrote: >> * Uses clang's tooling support behind the scenes to parse and rewrite >> the code. It is not based on ad-hoc regexps. > > Did you look at the results of a typical and generally > s

Re: [PATCH v2] clang-format: add configuration file

2018-03-18 Thread Joe Perches
On Sun, 2018-03-18 at 18:16 +0100, Miguel Ojeda wrote: > * Uses clang's tooling support behind the scenes to parse and rewrite > the code. It is not based on ad-hoc regexps. Did you look at the results of a typical and generally style conforming subsystem when reformatted with the new rules

[PATCH v2] clang-format: add configuration file

2018-03-18 Thread Miguel Ojeda
clang-format is a tool to format C/C++/... code according to a set of rules and heuristics. Like most tools, it is not perfect nor covers every single case, but it is good enough to be helpful. In particular, it is useful for quickly re-formatting blocks of code automatically, for reviewing full f