]> WPIA git - cassiopeia.git/commit
upd: improve format script
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Tue, 28 Feb 2017 13:13:09 +0000 (14:13 +0100)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Tue, 11 Apr 2017 19:13:16 +0000 (21:13 +0200)
commit27762923761fa360343dc87784eb9748de1fcac5
tree640a261f01ab690365b99957c59d1259900e73ec
parent3fd3c6168c5a3dcae2bd4a1dab3f9a56dfcce807
upd: improve format script

- exec astyle to shave off a fork()
- Align pointers to names. In

      int* a, b;

  only a is a pointer, b isn’t. The alignment to names,

      int *a, b;

  makes this clearer.
- Don’t create backup files – everything’s under version control.
- Don’t format the libraries, there’s no point in that.
- Spell out the recursive option (long form), for readability and
  consistency with the other options (which we also spell out).

Change-Id: Id87beb4351e8b63ae4c492b44f57d38561c2fc85
scripts/format.sh