summaryrefslogtreecommitdiffstats
path: root/chrome/browser/child_process_launcher.cc
diff options
context:
space:
mode:
authordilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 14:21:07 +0000
committerdilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 14:21:07 +0000
commit440e4928ac89d844f79bb4377ced0a2d964c5d0a (patch)
treee28c53dd191ea1e45c22ce7d34aba0a17e8af549 /chrome/browser/child_process_launcher.cc
parent5832419f9625a1e286b5c796f1217fa4c3247087 (diff)
downloadchromium_src-440e4928ac89d844f79bb4377ced0a2d964c5d0a.zip
chromium_src-440e4928ac89d844f79bb4377ced0a2d964c5d0a.tar.gz
chromium_src-440e4928ac89d844f79bb4377ced0a2d964c5d0a.tar.bz2
Google codestyle prescribes sorting #include filenames within a section.
Do it fast with following shell script: export LC_ALL=C find chrome/browser/chromeos/ -name '*.h' -o -name '*.cc' \ | xargs grep -C1 '^#include' \ | awk -F: '$2 !~ "include" { prev=""; next } ($2 <= prev) { print $1 } { prev=$2 }' \ | uniq \ | xargs -n1 sh -c 'cat "$1" \ | awk "{ tag=((/^#include/) \"_\" (/</) \"_\" (/third.party/)); print tag \"\t\" \$0 }" \ | awk -vi=0 -F\\t "{ if (!/^1_0_/ || \$1 != prev) { ++i } } { printf \"%09d\t%s\n\",i,\$0; prev=\$1 }" \ | sort \ | sed "s/^[0-9]*\t[0-9]_[0-9]_[0-9]\t//" > "$1".fixed; mv -f "$1".fixed "$1"' xxx BUG=None TEST=Manual Review URL: http://codereview.chromium.org/3402010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/child_process_launcher.cc')
0 files changed, 0 insertions, 0 deletions