Is there any way to to automatically insert spaces between function definitions. E.g. my initial sources are:
void
func1()
{
// func1 body.
}
void
func2(
As far as I can tell, there's currently no way to force clang-format to insert blank lines between consecutive functions where there currently are none. IMHO this is a huge missing feature.
Your best bet is to set 'MaxEmptyLinesToKeep: 2' inside .clang-format file to let clang-format keep 2 lines intact.