Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-16 Thread Johannes Schindelin
Hi Peff, On Mon, 14 Aug 2017, Jeff King wrote: > On Mon, Aug 14, 2017 at 03:54:30PM -0700, Brandon Williams wrote: > > > > And removing that gives me a clean output. I have no idea why my clang > > > doesn't like these (but presumably yours does). It's clang-format-5.0 in > > > Debian unstable (

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-15 Thread Stefan Beller
On Tue, Aug 15, 2017 at 10:34 AM, Brandon Williams wrote: > On 08/15, Ben Peart wrote: >> >> >> On 8/14/2017 5:30 PM, Brandon Williams wrote: >> >Add a '.clang-format' file which outlines the git project's coding >> >style. This can be used with clang-format to auto-format .c and .h >> >files to

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-15 Thread Brandon Williams
On 08/15, Ben Peart wrote: > > > On 8/14/2017 6:02 PM, Stefan Beller wrote: > >On Mon, Aug 14, 2017 at 2:30 PM, Brandon Williams wrote: > >>Add a '.clang-format' file which outlines the git project's coding > >>style. This can be used with clang-format to auto-format .c and .h > >>files to conf

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-15 Thread Brandon Williams
On 08/15, Ben Peart wrote: > > > On 8/14/2017 5:30 PM, Brandon Williams wrote: > >Add a '.clang-format' file which outlines the git project's coding > >style. This can be used with clang-format to auto-format .c and .h > >files to conform with git's style. > > > >Signed-off-by: Brandon Williams

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-15 Thread Ben Peart
On 8/14/2017 5:30 PM, Brandon Williams wrote: Add a '.clang-format' file which outlines the git project's coding style. This can be used with clang-format to auto-format .c and .h files to conform with git's style. Signed-off-by: Brandon Williams --- .clang-format | 165 +++

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-15 Thread Ben Peart
On 8/14/2017 6:02 PM, Stefan Beller wrote: On Mon, Aug 14, 2017 at 2:30 PM, Brandon Williams wrote: Add a '.clang-format' file which outlines the git project's coding style. This can be used with clang-format to auto-format .c and .h files to conform with git's style. Signed-off-by: Brandon

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-14 Thread Jeff King
On Mon, Aug 14, 2017 at 03:54:30PM -0700, Brandon Williams wrote: > > And removing that gives me a clean output. I have no idea why my clang > > doesn't like these (but presumably yours does). It's clang-format-5.0 in > > Debian unstable (and clang-format-3.8, etc). > > Those must be features in

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-14 Thread Brandon Williams
On 08/14, Jeff King wrote: > On Mon, Aug 14, 2017 at 06:48:31PM -0400, Jeff King wrote: > > > On Mon, Aug 14, 2017 at 02:30:45PM -0700, Brandon Williams wrote: > > > > > +# Align escaped newlines as far left as possible > > > +# #define A \ > > > +# int ; \ > > > +# int b;\ > > > +#

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-14 Thread Jeff King
On Mon, Aug 14, 2017 at 06:48:31PM -0400, Jeff King wrote: > On Mon, Aug 14, 2017 at 02:30:45PM -0700, Brandon Williams wrote: > > > +# Align escaped newlines as far left as possible > > +# #define A \ > > +# int ; \ > > +# int b;\ > > +# int ; > > +AlignEscapedNewlines: L

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-14 Thread Jeff King
On Mon, Aug 14, 2017 at 02:30:45PM -0700, Brandon Williams wrote: > +# Align escaped newlines as far left as possible > +# #define A \ > +# int ; \ > +# int b;\ > +# int ; > +AlignEscapedNewlines: Left I get: $ git clang-format-5.0 --style file -p --extensions c,h YAM

Re: [PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-14 Thread Stefan Beller
On Mon, Aug 14, 2017 at 2:30 PM, Brandon Williams wrote: > Add a '.clang-format' file which outlines the git project's coding > style. This can be used with clang-format to auto-format .c and .h > files to conform with git's style. > > Signed-off-by: Brandon Williams Applying this patch and run

[PATCH v2 1/2] clang-format: outline the git project's coding style

2017-08-14 Thread Brandon Williams
Add a '.clang-format' file which outlines the git project's coding style. This can be used with clang-format to auto-format .c and .h files to conform with git's style. Signed-off-by: Brandon Williams --- .clang-format | 165 ++ 1 file cha