Re: [PATCH v2 1/2] clang-format: outline the git project's coding style
flat view
From: Brandon Williams <hidden>
Date: 2017-08-14 22:54:42
On 08/14, Jeff King wrote:
On Mon, Aug 14, 2017 at 06:48:31PM -0400, Jeff King wrote:quoted
On Mon, Aug 14, 2017 at 02:30:45PM -0700, Brandon Williams wrote:quoted
+# Align escaped newlines as far left as possible +# #define A \ +# int aaaa; \ +# int b; \ +# int cccccccc; +AlignEscapedNewlines: LeftI get: $ git clang-format-5.0 --style file -p --extensions c,h YAML:34:23: error: unknown key 'AlignEscapedNewlines' AlignEscapedNewlines: Left ^~~~ Error reading /home/peff/compile/git/.clang-format: Invalid argument Same with clang-format-3.8.And if I remove that line, I get: YAML:155:25: error: unknown key 'PenaltyBreakAssignment' PenaltyBreakAssignment: 100 Removing that gives: YAML:86:22: error: unknown key 'BreakStringLiterals' BreakStringLiterals: false 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). -Peff
Those must be features in version 6 (which is what I seem to have installed on my machine). -- Brandon Williams