[PATCH] D95168: [clang-format] Add InsertBraces option

Stephen Kelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 30 12:21:15 PST 2021


steveire added a comment.

In D95168#2532258 <https://reviews.llvm.org/D95168#2532258>, @MyDeveloperDay wrote:

> I wonder if we should consider suggesting a different type of tool for clang
>
> `clang-reformat`
>
> A place where changes such as this and east/west fixer could be actively encouraged.

I don't think this should be done. These kinds of things should be in `clang-format`. One of the advantages of this and east/west const being in clang-format is that editors, CI systems and other tools have clang-format support. They would be unlikely to get support for a new tool. There are plenty of clang tools which exist but which don't get enough attention to get support in editors CI tools etc.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95168/new/

https://reviews.llvm.org/D95168



More information about the cfe-commits mailing list