<div dir="ltr">+1 to what Manuel's said here.<br><br>One slight change I'd suggest is changing the term "breaking changes" to "non-whitespace changes", perhaps? (they aren't necessarily breaking anything) At least I assume that's the intent, but I might be wrong in which case I'd love to better understand what's being proposed.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 27, 2021 at 7:03 AM Manuel Klimek via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Fri, Aug 27, 2021 at 1:43 PM Aaron Ballman via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks to everyone who participated in the discussion, and especially<br>
to MyDeveloperDay for getting this started. Now that discussion on<br>
this RFC seems to have died down, I think it's worth circling back to<br>
see if we have consensus to move forward. From reading the threads, I<br>
think Renato summarized the consensus position nicely:<br></blockquote><div><br></div><div>I agree with the following items:</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 * Breaking changes off by default, override behaviour with configuration files<br>
 * All behaviour must be controlled by a configuration flag with<br>
options explicit on doc/config<br>
 * Make explicit some options are breaking (comment/naming)<br></blockquote><div><br></div><div>I disagree with this one:</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 * Backwards compatibility is pursued, but can be broken in case of clear bugs<br></blockquote><div><br></div><div>Which I think is also tangential to the current RFC, and IMO should be treated in a separate discussion if necessary (this is a fundamental problem with how clang-format is designed).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Unless there is strong opposition to this, then I'd say MyDeveloperDay<br>
has an answer to their RFC. Any disagreement?<br>
<br>
~Aaron<br>
<br>
On Wed, Aug 11, 2021 at 4:37 AM Mehdi AMINI via cfe-dev<br>
<<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br>
><br>
><br>
><br>
> On Tue, Aug 10, 2021 at 5:24 PM Renato Golin via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br>
>><br>
>> On Tue, 10 Aug 2021 at 15:55, Manuel Klimek via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
>>><br>
>>> I agree that that was probably not obvious or stated very clearly anywhere - clang-format for years was basically developed by a small team without much interest in input by the rest of the world, for a very specific use case.<br>
>>> At the time we did not do a great job at spreading our thoughts with the world, as a lot of discussions were in person.<br>
>><br>
>><br>
>> I think there's more to that than what was created by the people who created it.<br>
>><br>
>> After being used extensively by people around the world, clang-format has perhaps grown to something that the original team did not envision.<br>
>><br>
>> However, as a public clang tool, and as part of the LLVM "family", it's no longer "a tool used by the team that created it", and not even "a tool used by LLVM developers". It is truly a public tool maintained by the LLVM community.<br>
>><br>
>> As such, I think we shouldn't restrict the design goals to the original design, or to what a small sub-group uses it for. Clang-format is an official tool like other visible stuff and should have the same community oversight as everything else.<br>
>><br>
>> There is a high demand for a formatting tool that can do so much more than the original design and people have been using it, albeit precariously, for that purpose already.<br>
>><br>
>> So I believe the original policy that "breaking changes are a benefit" can still be valid in a number of places, but it does not (and should not) need to be the only valid case. Definitely not the default, either.<br>
>><br>
>> I think we need to take a step back and ask users what they expect, rather than push forward a policy that people never really wanted but coped with it anyway because there's nothing better.<br>
>><br>
>> FWIW, borrowing suggestions from others in this thread, I propose we change the policy to:<br>
>>  * Breaking changes off by default, override behaviour with configuration files<br>
>>  * All behaviour must be controlled by a configuration flag with options explicit on doc/config<br>
>>  * Make explicit some options are breaking (comment/naming)<br>
>>  * Backwards compatibility is pursued, but can be broken in case of clear bugs<br>
><br>
><br>
> FWIW, this seems very reasonable to me.<br>
> (and it is also what I understood MyDeveloperDay's original proposal to be).<br>
><br>
> Cheers,<br>
><br>
> --<br>
> Mehdi<br>
><br>
><br>
>><br>
>><br>
>> An easy way to manage the configuration in this case is to have a dump function (`clang-format --dump --config foo.cfg`) that reads a config file and dumps all missing parameters and their current values.<br>
>><br>
>> Inline comments would be nice but make configuration management hard, so there could be a webpage that describes all options and the URL is dumped on the config file.<br>
>><br>
>> cheers,<br>
>> --renato<br>
>> _______________________________________________<br>
>> cfe-dev mailing list<br>
>> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
>> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>