rendered paste body- 4 space idents
-i4
-nut # no tabs
-lp # align open-paren sections
-ci4 # otherwise, use an extra continuing indent
- brance of new line, 0 aligned
-bl -bli0
-bls # structs the same way.
- no whitespace after function names
-npcs
- no whitespace after parens
-nprs
- whitespace after keywords
-saf -sai -saw
- break before operator
-bbo
- other...
- proc names in column 0
-psl
- don't add too much
-di1
- blank lines after procedure
-bap
- whitespace between operators
- always brace
-i4 -nut -lp -ci4 -bl -bli0 -bls -npcs -nprs -saf -sai -saw -bbo -bap
struct foo
{
int i;
char *s;
};
static void
example(int foo, char *bar,
ExampleType *aligned_here)
{
Foo *bar = { 1, "foo" };
for (int i = 0; i < 10; i++)
{
if (is_is_a_reasonable_value(i)
&& (i < 10 || i < 11))
{
// ...
}
else
{
break;
}
}
}
if (foo &&
some_bar &&
(weird || other) &&
what)
if (foo
&& some_bar
&& (weird || other)
&& what)