--break-blocks inserts newlines after closing curly braces unconditionally
The sample below is formatted using Artistic Style Version 3.1:
#ifdef __cplusplus
extern "C"
{
#endif
/**
* example
*/
#ifdef __cplusplus
}
#endif
The diff below shows how Artistic Style Version 3.6.7 formats it:
@@ -6,6 +6,7 @@ extern "C"
* example
*/
#ifdef __cplusplus
}
+
#endif
Another sample formatted using Artistic Style Version 3.1:
/**
* example
*/
struct example {
union {
int a;
} b;
struct {
int c;
int d;
} e;
int f;
};
The diff below shows how Artistic Style Version 3.6.7 formats it:
@@ -3,11 +3,13 @@
*/
struct example {
union {
int a;
} b;
+
struct {
int c;
int d;
} e;
+
int f;
};
Another sample formatted using Artistic Style Version 3.1:
/**
* example
*/
struct example {
int f;
};
union {
int a;
} b;
struct {
int c;
int d;
} e;
int f;
int g;
The diff below shows how Artistic Style Version 3.6.7 formats it:
@@ -2,14 +2,17 @@
* example
*/
struct example {
int f;
};
+
union {
int a;
} b;
+
struct {
int c;
int d;
} e;
+
int f;
int g;
Edited by Lars Möllendorf