Add a completely hack-ish tool to sort includes according to the coding
authorChandler Carruth <chandlerc@gmail.com>
Mon, 3 Dec 2012 14:23:44 +0000 (14:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 3 Dec 2012 14:23:44 +0000 (14:23 +0000)
commit0cd94c71db19c0a53d1d97f353116e271884a336
treeded792bbeb4c80858cfaff89471996d688ae861d
parente74a4a791535b9756fa7312e5cd6f746ecc1c989
Add a completely hack-ish tool to sort includes according to the coding
standards.

I am a terrible Python programmer. Patches more the welcome. Please tell
me how this should look if it should look differently. It's just a tiny
little script so it didn't make sense to go through pre-commit review,
especially as someone who actually knows python may want to just rip it
apart and do it The Right Way.

I will be preparing a commit shortly that uses this script to
canonicalize *all* of the #include lines in LLVM. Really, all of them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169125 91177308-0d34-0410-b5e6-96231b3b80d8
utils/sort_includes.py [new file with mode: 0755]