nl_before_block_comment

The minimum number of newlines before a multi-line comment. Doesn't apply if after a brace open or another multi-line comment.

Values is integer value. Default is 0 as "no new newlines added".

Note:

Examples

If config is nl_before_block_comment = 2 only one empty line will be added:

#include <iostream>
/* Some comment
 * (this is multiline comment)
 */

int main()
{
    int x = 10;
    int y = 20;
    /* Another variables
     * (this is multiline comment)
     */
    int a = 20;
    int b = 10;
    int c = b;

transformed to

#include <iostream>

/* Some comment
 * (this is multiline comment)
 */

int main()
{
    int x = 10;
    int y = 20;

    /* Another variables
     * (this is multiline comment)
     */
    int a = 20;
    int b = 10;
    int c = b;

See also