Patch for clang-format to allow references and pointers to bind differently
Daniel Jasper
djasper at google.com
Thu Dec 5 02:10:21 PST 2013
As I have mentioned before, I don't think this is a useful feature (let
alone being a very intrusive change on the current codebase). Whenever we
have done anything into this direction, we have been getting the feedback
that it is not helpful. People want automatically enforceable styles and
the consistency it brings them. Bailing out of doing specific changes is
not the solution.
On Thu, Dec 5, 2013 at 10:39 AM, Alp Toker <alp at nuanti.com> wrote:
>
> On 04/12/2013 22:45, Daniel Jasper wrote:
>
>> --detect-style will be nice, but it is going to be significantly more
>> effort than you might think.
>>
>
> Returning to my idea to "leave X formatting untouched", I imagine this
> might give Ben a chance to get usage out of the tool while also becoming a
> first step towards --detect-style.
>
> The algorithm would be roughly:
>
> for each formatting criterion X, apply X alone to the in-memory buffer and
> count deltas. Report ambiguity if Xn == 0, otherwise select X with lowest
> number of deltas as the detected style variable.
>
> I'm sure there are other ways to do it, so just throwing about the idea if
> only to avoid the perennial debate on what constitutes acceptable
> corner-case styles :-)
>
> Alp.
>
>
> --
> http://www.nuanti.com
> the browser experts
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131205/4ad024b3/attachment.html>
More information about the cfe-commits
mailing list