[PATCH] D116229: [clang-format] Add option to align pointers in C style casts differently

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 24 12:02:14 PST 2021


owenpan added a comment.

In D116229#3208507 <https://reviews.llvm.org/D116229#3208507>, @curdeius wrote:

> Why this option is useful? Why would someone want to have a different alignment in casts than in other places?
> As such I'm opposed to introducing one more option. Is there any well established code style that has something like this?

Yes, we should adhere to the policy <https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options> when adding new options.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116229



More information about the cfe-commits mailing list