[PATCH] D116527: [clang-format] Fix indentation for array variables with alignment of consecutive assignments and declarations.

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 3 12:53:59 PST 2022


curdeius added a comment.

In D116527#3217211 <https://reviews.llvm.org/D116527#3217211>, @MyDeveloperDay wrote:

> The fix looks ok, butr I don't understand the cause of the side effect? is it explicitly aligning to the v of `auto v`?

It's adding two spaces inside the `auto  v  = ...`, because of aligned declaration (identifier `v`, additional 1 space) and aligned assignment operator (`=`, 1 more space).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116527



More information about the cfe-commits mailing list