How to make clang-format add space after asterisk when formatting block comments

52 Views Asked by At

We have clang-format set up to break up block comments in C-code when they exceed the maximum line length. For example,

/* This comment is longer than the allowed
 * line length.
 */

becomes

/* This comment is longer than the
 *allowed line length.
 */

How can I make clang-format add a space before "allowed"? There is SpacesInLineCommentPrefix, but that is explicitly only for line comments //, not block comments.

0

There are 0 best solutions below