* Utiliser 2 espaces pour chaque niveau d'indentation * exemple de formatage ci dessous // Indentation #define foobar(A)\ {Foo();Bar();} #defineanotherFoo(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(); } int foo() while ( isFoo ) { ... goto error; .... error: ... } } 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 <