Multiline formatting is done for longish declarations. The comment character % has to be quoted as an operator. The active character ~ gets a new catcode within class blocks.
Matching const ... & pairs are eliminated from parameters. A leading classname is eliminated from a parameter.