[cfe-dev] Clang-Format - AlwaysBreakBeforeElse

Daniel Jasper via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 17 21:46:19 PDT 2015


On Mon, Aug 17, 2015 at 11:45 PM, Paul Hoad via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

>
> Apologies for the "newbie question", I would like to know if I were to
> proceed with looking at implementing a "AlwaysBreakBeforeElse"
> configuration option to Clang-Format would I be working against the general
> direction of Clang Format?
>

Not against the direction of clang-format, but against the direction of
Linux/Kernel style:
https://www.kernel.org/doc/Documentation/CodingStyle

I would like to format
>
> if (x){
> }
> else {
> }
>
> in combination with BreakBeforeBraces "Linux" style (for classes,
> namespaces and functions)
>
> I found a previous submission that performed something l like what I
> needed but I couldn't see this submission in the "trunk"
>

r214857


>
>
> http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140505/105216.html
>
> I wondered if this had not been submitted, rejected and/or if there was a
> reason why?
>
> Many thanks in advance
>

Do this help?
Cheers,
Daniel


>
> MyDeveloperDay
> https://mydeveloperday.wordpress.com/
> @mydeveloperday
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150818/c207a513/attachment.html>


More information about the cfe-dev mailing list