Hi all,
the attached (auto-generated, but tested) patch sorts all include
directives alphabetically for all .cc files in the source-tree.
The attached file generated the patch with the shell command:
for file in $(find . -name \*.cc); do sort-includes.pl $file
>$file.moved; mv $file.moved $file; done
The specification for the sorting is:
sort any block of consecutive (no white lines or other directives)
#include "" directives alphabetrically, case-insensitively, leaving
squid.h as the first one.
The resulting tree passes the test-suite on my Kubuntu Precise.
If it's OK, I'll merge the patch and add the sort-includes.pl tool in scripts/
-- /kinkie
This archive was generated by hypermail 2.2.0 : Thu Aug 16 2012 - 12:00:06 MDT