Skip to content
Snippets Groups Projects
Commit bd531f6d authored by Andrea Valassi's avatar Andrea Valassi
Browse files

New cleanup using a version of coolCppClean that includes uncrustify.

This version of uncrustify is tuned to result in no large change
(eg no splitting of lines and realignments of if/else and for blocks),
but it already results in a few useful improvements, such as
- Remove spaces: 'void  f()' becomes 'void f()'
- Remove spaces: 'f();  // comment' becomes 'f(); // comment'
- Remove spaces: 'typedef a  b;' becomes 'typedef a b;'
- Remove spaces: 'static A  a;' becomes 'static A a;'
- Add spaces: 'class A: B' becomes 'class A : B'
- Add spaces: 'default: ...' becomes 'default : ...'
- Add spaces: 'if ( ... ){' becomes 'if ( ... ) {'
- Add spaces: 'catch( ... ){' becomes 'catch( ... ) {'
- Add spaces: '{/* noop */ }' becomes '{ /* noop */ }'
- Align all trailing comments to the code rather than to each other
- Force exactly one newline at the end of the file
- Force exactly one whitespace before trailing continuation characters "\"
I tuned the configuration file a few times until I tested that the process
converges to a stable results (a second run does not change the code!).


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@16479 4525493e-7705-40b1-a816-d608a930855b
parent ea5b0370
No related branches found
No related tags found
No related merge requests found
Showing
with 98 additions and 114 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment