Re: [PATCH v4 1/2] clang-format: re-adjust line break penalties
- From
Justin Tobler <jltobler@gmail.com>
- Date
- Oct 25, 2024, 02:37 UTC
- Message-ID
- <xefdxe2vctdtmfm3vfanstfz5q2bgcklj7ymio5bdutioyaxmo@ujixbc5jua6m>
- In-Reply-To
- <a8c8df5d95b0defec672ee139acd366219ea3302.1729241030.git.karthik.188@gmail.com>
On 24/10/18 10:46AM, Karthik Nayak wrote:
> In 42efde4c29 (clang-format: adjust line break penalties, 2017-09-29) we > adjusted the line break penalties to really fine tune what we care about > while doing line breaks. Modify some of those to be more inline with > what we care about in the Git project now.
From my understanding, the original motivation for these changes was to cut down on the noise from the clang-format CI job. These changes seem reasonable for that purpose, but affect the also formatter in general.
Out of curiousity, would it be possible to just configured clang-format for the CI job to behave in this manner? Ultimately, I'm not sure that would be good idea though because having a diverged set of rules may just cause more noise.
-Justin