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)
commitcba0f3dd7cbd5290c04cb82dae8764559611672c
tree67a50edee558737f688e9a6d6101f1d79ff97a09
parentaea92e530df12c6766fff852ca5a9381f5cdcef5
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.

llvm-svn: 169125
llvm/utils/sort_includes.py [new file with mode: 0755]