Can I tell clang-format to not add space around arithmetic operators

Viewed 277

clang-format seems to always add spaces around operators. For example, the following:

a = b+c

becomes:

a = b + c

Is there a way to tell it not to add spaces around +, -, *, /?

I already know about SpaceBeforeAssignmentOperators (as shown here), I am looking for something similar for operators.

Similar concerns (but with a different direction) in How to add capabilities to clang-format?.

0 Answers
Related