[PATCH] Clang-format support for removing space before assignment operators

Aaron Wishnick aaron.s.wishnick at gmail.com
Thu Sep 12 15:14:46 PDT 2013

My organization's coding standards include not putting a space before
assignment operators, e.g. "int a= 42;". In order for us to be able to use
clang-format, we need support for this.

I've attached a patch that adds a new format style option,
"SpaceBeforeAssignmentOperators." All the existing hard-coded styles now
default to having it set to true. I've also included a test.

Please let me know if this looks good, or if there's anything else I can do.

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130912/45eb8104/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: space_before_assignment_operators.patch
Type: application/octet-stream
Size: 4526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130912/45eb8104/attachment.obj>

More information about the cfe-commits mailing list