From owner-freebsd-hackers@freebsd.org Thu Mar 24 20:22:19 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31599ADC0EA for ; Thu, 24 Mar 2016 20:22:19 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EE32A1FED for ; Thu, 24 Mar 2016 20:22:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id A40FF1FE023; Thu, 24 Mar 2016 21:22:09 +0100 (CET) Subject: Re: Code Formatter for STYLE(9)? To: Sebastian Huber , freebsd-hackers@freebsd.org References: <56F3EBB1.1060603@embedded-brains.de> From: Hans Petter Selasky Message-ID: <56F44D23.6090405@selasky.org> Date: Thu, 24 Mar 2016 21:25:07 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56F3EBB1.1060603@embedded-brains.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2016 20:22:19 -0000 On 03/24/16 14: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. > Hi, Maybe you want to contribute to: https://svnweb.freebsd.org/base/head/tools/tools/indent_wrapper It also supports diffs. --HPS