* Utiliser 2 espaces pour chaque niveau d'indentation * exemple de formatage ci dessous //Tabs & Brackets namespace foo { namespace foospace { int Foo() { if (isBar) { bar(); return 1; } else { return 0; } } } void test() { if (isFoo) { bar(); } else { bar(); } } } // Indentation #define foobar(A)\ {Foo();Bar();} #define anotherFoo(B)\ return Bar() namespace Bar { class Foo { public: Foo(); virtual ~Foo(); }; switch ( foo ) { case 1: a+=1; break; case 2: a += 2; break; } if (isFoo) { bar(); } else { anotherBar(); } while (isFoo) { } } fooArray[] = { red, green, darkblue }; fooFunction (barArg1, barArg2, barArg3); // Formatting void func() { if (isFoo(a, b)) { bar(a, b); } if (isFoo) { a = bar ((b - c) * a, *d--); } if (isFoo(a, b)) { bar (a, b); } if (isFoo) { isFoo = false; cat << isFoo <