indent_braces_no_struct
Whether to disable indenting struct braces if indent_braces=true.
Possible values are true and false, default false.
Works only if indent_braces is true.
Examples
Config:
indent_braces = true
#indent_braces_no_struct = false # this is default
Before:
struct Barrel
{
int width;
int height;
int radius;
};
int boo()
{
Barrel b;
b.width = 15;
std::cout << "Width is " << b.width << '\n';
return 0;
}
code after:
struct Barrel
{
int width;
int height;
int radius;
};
int boo()
{
Barrel b;
b.width = 15;
std::cout << "Width is " << b.width << '\n';
return 0;
}
See also
- nl_if_brace: Add or remove newline between 'if' and '{'.
- indent_braces: Whether braces are indented to the body level.
- indent_braces_no_class: Whether to disable indenting class braces if
indent_braces=true
. - indent_braces_no_func: Whether to disable indenting function braces if
indent_braces=true
.