Clang-format - always break after colon

Денис Сенькин via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 15 11:26:33 PST 2018


Hi all,

Recently we have started using clang-format in our project. However, the it
clang-format does not support breaking after colon in constructor init
list, which we find very useful.
When we always break after colon, it is pretty clear - you always know the
arguments are placed below the constructor and you have not to look at the
previous line.

Also I have attached patch.

Regards,
Denys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181215/a87b4e80/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-AlwaysAfterColon-to-clang-format.patch
Type: application/octet-stream
Size: 8063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181215/a87b4e80/attachment.obj>


More information about the cfe-commits mailing list