[cfe-dev] clang-format: ShortFunctionsOnASingleLine
Florian Lindner via cfe-dev
cfe-dev at lists.llvm.org
Thu Oct 15 07:18:57 PDT 2015
Am Donnerstag, 15. Oktober 2015, 06:30:21 schrieb Daniel Jasper:
> Seems like that option doesn't properly work together with the brace style
> you have selected. Feel free to file a bug.
Done: https://llvm.org/bugs/show_bug.cgi?id=25192
>
> On Thu, Oct 15, 2015 at 6:14 AM, Florian Lindner via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
> > Hello,
> >
> > I have this piece of code:
> >
> > class C
> > {
> > C() {}
> > };
> >
> > void f() {}
> >
> > AllowShortFunctionsOnASingleLine is set to empty, so I expect these
> > function to be left as is.
> >
> > florian at asaru ~/scratch (git)-[master] % clang-format -style=file
> > -dump-config | grep ShortFunction
> > AllowShortFunctionsOnASingleLine: Empty
> >
> > However:
> >
> > florian at asaru ~/scratch (git)-[master] % clang-format -style=file
> > clangformat.cpp
> > class C
> > {
> > C()
> > {
> > }
> > };
> >
> > void f()
> > {
> > }
> >
> >
> > Is there something I misunderstand about this option?
> >
> > Thanks,
> > Florian
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> >
More information about the cfe-dev
mailing list