mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-11 13:11:47 +00:00
101 lines
1.5 KiB
INI
101 lines
1.5 KiB
INI
|
# C++ Ansi-Stil auch Standard f<>r .NET C#
|
|||
|
--style=ansi
|
|||
|
|
|||
|
# Tabs sollten 4 Leerzeichen gro<72> sein
|
|||
|
--indent=tab=4
|
|||
|
--indent=force-tab=4
|
|||
|
|
|||
|
# case in switches sollte einger<65>ckt sein
|
|||
|
#switch (foo)
|
|||
|
#{
|
|||
|
# case 1:
|
|||
|
# a += 1;
|
|||
|
# break;
|
|||
|
#
|
|||
|
# case 2:
|
|||
|
# {
|
|||
|
# a += 2;
|
|||
|
# break;
|
|||
|
# }
|
|||
|
#}
|
|||
|
--indent-switches
|
|||
|
|
|||
|
# Kommentare sollten nicht mit der ersten Spalte beginnen
|
|||
|
#void Foo()\n"
|
|||
|
#{
|
|||
|
#// comment
|
|||
|
# if (isFoo)
|
|||
|
# bar();
|
|||
|
#}
|
|||
|
|
|||
|
#becomes:
|
|||
|
|
|||
|
#void Foo()\n"
|
|||
|
#{
|
|||
|
# // comment
|
|||
|
# if (isFoo)
|
|||
|
# bar();
|
|||
|
#}
|
|||
|
#--indent-col1-comments
|
|||
|
|
|||
|
|
|||
|
# Mindestabstand zwischen normalen code und Kontrollbl<62>cken
|
|||
|
#--break-blocks
|
|||
|
#--delete-empty-lines
|
|||
|
|
|||
|
# Leere Zeilen sollten gleichen Indent haben wie die voherige
|
|||
|
--fill-empty-lines
|
|||
|
|
|||
|
# genug Leerzeichen zwischen Operatoren
|
|||
|
#if (foo==2)
|
|||
|
# a=bar((b-c)*a,d--);
|
|||
|
|
|||
|
#becomes:
|
|||
|
|
|||
|
#if (foo == 2)
|
|||
|
# a = bar((b - c) * a, d--);
|
|||
|
--pad-oper
|
|||
|
|
|||
|
# Doom 3 verwendet padding innerhalb von Klammern
|
|||
|
#if ( isFoo( a, b ) )
|
|||
|
# bar( a, b );
|
|||
|
--pad-paren-in
|
|||
|
|
|||
|
# Doom 3 padded zwischen Headern (e.g. 'if', 'for', 'while'...)
|
|||
|
#if(isFoo(a, b))
|
|||
|
# bar(a, b);
|
|||
|
|
|||
|
#becomes:
|
|||
|
|
|||
|
#if (isFoo(a, b))
|
|||
|
# bar(a, b);
|
|||
|
#--pad-header
|
|||
|
|
|||
|
|
|||
|
# Test: entfernte alle extra Leerzeichen zwischen den Klammern
|
|||
|
#if ( isFoo( a, b ) )
|
|||
|
# bar ( a, b );
|
|||
|
|
|||
|
#becomes (with no padding option requested):
|
|||
|
|
|||
|
#if(isFoo(a, b))
|
|||
|
# bar(a, b);
|
|||
|
--unpad-paren
|
|||
|
|
|||
|
# binde Zeiger und Referenzen an den Typen und nicht an die Variable
|
|||
|
#char *foo1;
|
|||
|
#char &foo2;
|
|||
|
|
|||
|
#becomes (with align-pointer=type):
|
|||
|
|
|||
|
#char* foo1;
|
|||
|
#char& foo2;
|
|||
|
--align-pointer=type
|
|||
|
--align-reference=type
|
|||
|
|
|||
|
# keine .orig Backups
|
|||
|
--suffix=none
|
|||
|
|
|||
|
|
|||
|
|