Skip to content

clang-format

Brandon Williams git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 25 repliesIn review
  2. v1 RFC1 patch 35 repliesSuperseded

Changes in v2 from the cover letter

* Changed a couple rules to be more inline with our coding style.
* Added a Makefile build rule to run git-clang-format on the diff of the working tree to suggest style changes.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2clang-format: outline the git project's coding style.clang-format+165 -011 replies
2/2Makefile: add style build ruleMakefile+4 -08 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] clang-format

Changes in v2:
* Changed a couple rules to be more inline with our coding style.
* Added a Makefile build rule to run git-clang-format on the diff of the working tree to suggest style changes.

I found that the llvm project also has the git-clang-format tool which will allow for doing formating changes based on diffs so that the parts of the code you didn't touch won't be formated. It also has a nice '-p' option to only apply hunks of suggested changes. I also saw what Ramsay did and attempted to add a Makefile rule to run clang-format. This bit may need more tweaking to get it right.

Brandon Williams (2):
clang-format: outline the git project's coding style
Makefile: add style build rule

 .clang-format | 165 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Makefile      |   4 ++
 2 files changed, 169 insertions(+)
 create mode 100644 .clang-format
Signature · 1 line
2.14.1.480.gb18f417b89-goog