[cfe-dev] clang-format: setting to control spaces in C arrays?

Daniel Jasper djasper at google.com
Tue Jul 22 12:25:43 PDT 2014


The setting is Cpp11BracedListStyle.

Not the best or most discoverable name, but that is for historic reasons.

Cheers,
Daniel


On Tue, Jul 22, 2014 at 9:16 PM, James Dennett <james.dennett at gmail.com>
wrote:

> On Tue, Jul 22, 2014 at 11:55 AM, Sean McBride <sean at rogue-research.com>
> wrote:
> > Hi all,
> >
> > Try as I may, I can't find if there is a setting to _stop_ clang-format
> from changing this:
> >
> >         float pattern[] = {7.0f, 1.0f};
> >
> > into this:
> >
> >         float pattern[] = { 7.0f, 1.0f };
> >
> > Is there one?
>
> Yes... but I don't know which specific setting it is.  (In Google
> style, clang-format will rewrite the latter to the former.)
>
> -- James
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140722/363b4ac7/attachment.html>


More information about the cfe-dev mailing list