<div dir="ltr"><div dir="ltr">On Tue, Aug 10, 2021 at 12:34 PM Aaron Ballman via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">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">I think the idea of a separate tool that's built on top of<br>
clang-format (consuming clang-format as a library with additional<br>
formatting features) has the most appeal to me.</blockquote><div><br></div><div>Right.  Another reason that this may be a good idea is the name "clang-format".  The word "format" appeals to the term "code formatting", which is generally accepted to cover only whitespace-related issues (indentation, line width, spacing, vertical alignment, etc).  Issues that involve rearranging tokens and syntax, with no semantic impact, are considered to be, by definition, beyond the scope of "code formatting" and more issues of "code style" or "coding style".</div><div><br></div><div>If you don't like clang-reshape for the new program name, here is a quick brainstorm of some alternatives:</div><div><br></div><div>    clang-style</div><div>    clang-styler</div><div>    clang-syntactor</div><div>    clang-syntaxer</div><div>    clang-restyle</div><div><br></div></div></div>