Re: [PATCH v2 1/2] clang-format: outline the git project's coding style
- From
Jeff King <peff@peff.net>
- Date
- Aug 14, 2017, 22:51 UTC
- Message-ID
- <20170814225108.qoq6noojqznp4be6@sigill.intra.peff.net>
- In-Reply-To
- <20170814224831.qhs7b44bg7v7tryx@sigill.intra.peff.net>
On Mon, Aug 14, 2017 at 06:48:31PM -0400, Jeff King wrote:
Show 18 quoted lines
> On Mon, Aug 14, 2017 at 02:30:45PM -0700, Brandon Williams wrote: > > > +# Align escaped newlines as far left as possible > > +# #define A \ > > +# int aaaa; \ > > +# int b; \ > > +# int cccccccc; > > +AlignEscapedNewlines: Left > > I 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