[PATCH] D12362: [clang-format] Add support of consecutive declarations alignment

Beren Minor via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 07:45:55 PDT 2015

berenm created this revision.
berenm added a reviewer: djasper.
berenm added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

This allows clang-format to align identifiers in consecutive declarations.

This is, arguably, a feature useful for increasing the readability of the code,
in the same way the alignment of assignations is. It is also present in other
tools such as uncrustify for example.

The code is a slightly modified version of the consecutive assignment
alignment code. Currently only the identifiers are aligned, and there is no
support of alignment of the pointer star or reference symbol.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12362.33197.patch
Type: text/x-patch
Size: 17092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150826/027e13c7/attachment-0001.bin>

More information about the cfe-commits mailing list