You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moving code around (not just whitespace) is a pretty invasive change. I think that code authors often express intent or grouping by their code ordering, e.g. have a public method and then all its helpers, then have another public method and its helpers, and so on.
I remember tools like Eclipse used to support moving methods around in Java code, but I think that feature never got popular or commonly used, for exactly these reasons.
So I don't think moving around code like that is a good idea. On top of that, the current infrastructure/approach taken in clang-format would make this very hard to do.
IMO having public API before private methods in class is nice.
Could this be automatically changed by clang-format ?
(an other question is do we really want to do this, open for debate).
The text was updated successfully, but these errors were encountered: