Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2016 17:24:43 +0100
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        freebsd-hackers@freebsd.org, owner-freebsd-hackers@freebsd.org
Subject:   Re: Code Formatter for STYLE(9)?
Message-ID:  <1fc0f5efcc94822f7f5ca9bbcb850faf@gahr.ch>
In-Reply-To: <56F3FFB3.6070801@FreeBSD.org>
References:  <56F3EBB1.1060603@embedded-brains.de> <56F3FFB3.6070801@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-03-24 15:54, Matthew Seaman wrote:
> On 2016/03/24 13:29, Sebastian Huber wrote:
>> Hello,
>> 
>> is there a ready to use C code formatter available that honours
>> STYLE(9)? I tried clang-format, but it knows only LLVM, Google,
>> Chromium, Mozilla by default. The GNU indent --original seems to 
>> produce
>> nothing usable. Same problem with astyle --style=bsd.
>> 
> 
> pkg uses uncrustify with this config file:
> 
> https://github.com/freebsd/pkg/blob/master/freebsd.cfg
> 
> It's approximately what style(9) describes but doesn't cover things 
> like
> sorting include files and I don't think it was updated in response to
> the recent change allowing { brackets } around certain single-line
> statements.

It looks like it does: https://github.com/freebsd/pkg/commit/1bc61a4

-- 
Pietro Cerutti
gahr@FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1fc0f5efcc94822f7f5ca9bbcb850faf>