From: Jeff King Date: Fri, 11 Aug 2017 21:18:45 GMT Subject: Re: [RFC] clang-format: outline the git project's coding style Message-ID: <20170811211845.tpgmafenhahus77o@sigill.intra.peff.net> In-Reply-To: <20170811175237.GC59325@google.com> On Fri, Aug 11, 2017 at 10:52:37AM -0700, Brandon Williams wrote: > On 08/09, Stefan Beller wrote: > > On Wed, Aug 9, 2017 at 3:53 PM, Stefan Beller wrote: > > > > > I would think based on these options, a pre commit hook can be > > > written that formats precisely the touched lines of code of each file. > > > > I did not search enough, "clang-tidy-diff.py --fix" should be all that is needed > > I believe clang-tidy is different from clang-format am I mistaken? Yeah, I just dug in the archive. The script I ran way back when was actually clang-format-diff. -Peff