eat_blanks_after_open_brace
Whether to remove blank lines after {
.
Possible values are true and false, default false.
Conflicts with nl_ds_struct_enum_close_brace (and has higher priority).
Used to define behavior of nl_inside_namespace option.
Examples
true
Before:
typedef struct {
int hour;
int min;
int sec;
} counter_t;
struct v {
union {
int zoo;
float mee;
};
int m;
} v1;
int main()
{
counter_t cntr1 = {.hour = 101, .min = 3, .sec = 47};
counter_t cntrTwo = {.hour = 10, .min = 30, .sec = 47};
std::cout << "Counter: " << cntr1.hour << '\n';
return 0;
}
After
typedef struct {
int hour;
int min;
int sec;
} counter_t;
struct v {
union {
int zoo;
float mee;
};
int m;
} v1;
int main()
{
counter_t cntr1 = {.hour = 101, .min = 3, .sec = 47};
counter_t cntrTwo = {.hour = 10, .min = 30, .sec = 47};
std::cout << "Counter: " << cntr1.hour << '\n';
return 0;
}
false
Example remains unchanged.
See also
- nl_ds_struct_enum_close_brace: Whether to force a newline before '}' of a 'struct'/'union'/'enum'.
- nl_inside_namespace: The number of newlines after
{
of a namespace. - eat_blanks_before_close_brace: Whether to remove blank lines before '}'.
- nl_squeeze_ifdef: Whether to remove blanks after
#ifxx
and#elxx
, or before#elxx
and#endif
.