Hi, I am writing a tool to fix common style issues.
This is first part which deals with leading and trailing whitespaces. I can follow this up with other refactorings, for example rewriting K&R definitions. I wrote a simple programs that fixes them. Then it suffices for me or any volunteer to run them each month or so and they will be gone for good. These patches touch only gcc directory, If you want I could include others but it is not clear for me what can I touch. I split formatter to four simpler parts, Even with this restriction these patches are big: 3487388 Jun 12 21:06 0001-Formatted-by-trailing_space.patch 152911 Jun 12 21:06 0002-Formatted-by-form_feed.patch 255018 Jun 12 21:06 0003-Formatted-by-space_before_tab.patch 6817050 Jun 12 21:06 0004-Formatted-by-leading_space.patch You can verify that there are no bugs in my program and that git diff -w is empty. A generator is at: http://kam.mff.cuni.cz/~ondra/stylepp.tar.bz2 these patches were generated by sequence: cd gcc PATH_TO_STYLEPP/run_space Thanks for considering. Ondra