Clang formatting rule to add an empty line before the closing brace of a struct or class?

Viewed 20

I am unable to find a documented way to add an empty line to the end of a class or struct declaration. Is there a way for clang-format to convert this:

struct foo {
  int bar = 0;
};

To this

struct foo {
  int bar = 0;

};

And optionally having the ability to add a line to the beginning would be nice as well:

struct foo {

  int bar = 0;

};
0 Answers
Related