BBR 1 Ebene

Committer:
borlanic
Date:
Mon May 14 11:29:06 2018 +0000
Revision:
0:fbdae7e6d805
BBR

Who changed what in which revision?

UserRevisionLine numberNew contents of line
borlanic 0:fbdae7e6d805 1 # Mbed OS code style definition file for astyle
borlanic 0:fbdae7e6d805 2
borlanic 0:fbdae7e6d805 3 # Don't create backup files, let git handle it
borlanic 0:fbdae7e6d805 4 suffix=none
borlanic 0:fbdae7e6d805 5
borlanic 0:fbdae7e6d805 6 # K&R style
borlanic 0:fbdae7e6d805 7 style=kr
borlanic 0:fbdae7e6d805 8
borlanic 0:fbdae7e6d805 9 # 1 TBS addition to k&r, add braces to one liners
borlanic 0:fbdae7e6d805 10 # Use -j as it was changed in astyle from brackets to braces, this way it is compatible with older astyle versions
borlanic 0:fbdae7e6d805 11 -j
borlanic 0:fbdae7e6d805 12
borlanic 0:fbdae7e6d805 13 # 4 spaces, convert tabs to spaces
borlanic 0:fbdae7e6d805 14 indent=spaces=4
borlanic 0:fbdae7e6d805 15 convert-tabs
borlanic 0:fbdae7e6d805 16
borlanic 0:fbdae7e6d805 17 # Indent switches and cases
borlanic 0:fbdae7e6d805 18 indent-switches
borlanic 0:fbdae7e6d805 19 indent-cases
borlanic 0:fbdae7e6d805 20
borlanic 0:fbdae7e6d805 21 # Remove spaces in and around parentheses
borlanic 0:fbdae7e6d805 22 unpad-paren
borlanic 0:fbdae7e6d805 23
borlanic 0:fbdae7e6d805 24 # Insert a space after if, while, for, and around operators
borlanic 0:fbdae7e6d805 25 pad-header
borlanic 0:fbdae7e6d805 26 pad-oper
borlanic 0:fbdae7e6d805 27
borlanic 0:fbdae7e6d805 28 # Pointer/reference operators go next to the name (on the right)
borlanic 0:fbdae7e6d805 29 align-pointer=name
borlanic 0:fbdae7e6d805 30 align-reference=name
borlanic 0:fbdae7e6d805 31
borlanic 0:fbdae7e6d805 32 # Attach { for classes and namespaces
borlanic 0:fbdae7e6d805 33 attach-namespaces
borlanic 0:fbdae7e6d805 34 attach-classes