Thread (34 messages) 34 messages, 6 authors, 2017-09-28

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

flat view

From: Stefan Beller <hidden>
Date: 2017-08-14 22:02:16

On Mon, Aug 14, 2017 at 2:30 PM, Brandon Williams [off-list ref] 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 <redacted>
Applying this patch and running
    clang-format -i -style file *.c *.h builtin/*.c
produces a diff, that I'd mostly agree with.
This style guide is close to our current style.

As noted in patch 2/2 we'd now need an easy way to
expose this for use in various situations, such as
* contributor wanting to format their patch
* reformatting code for readability

Thanks,
Stefan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help