[PATCH] [clang-extra-tools] [clang-format]

Curdeius Curdeius curdeius at gmail.com
Fri Aug 2 10:59:15 PDT 2013


Hi,

I've added two options to clang-format:
* BreakClassInheritanceListsBeforeColon
and
* BreakClassInheritanceListsBeforeComma.

They allow us to break on class inheritance lists similarly to constructor
initializer lists.

I've corrected as well the TokenAnnotator, which mistakenly annotated
colons from switch statements ("case:") and from access modifiers
("public:") as TT_InheritanceColon.

The patch in the attachment.

Cheers,
Marek Kurdej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130802/457d7c9e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-format-break-class-inheritance-lists-before-comma-colon.patch
Type: application/octet-stream
Size: 13029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130802/457d7c9e/attachment.obj>


More information about the cfe-commits mailing list