Address review comments from Matt on the sort_includes.py script.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 07:04:58 +0000 (07:04 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 07:04:58 +0000 (07:04 +0000)
commit6cb571968901701212570cbb2ab34cf4af6ba51e
tree178d3b2ef313718bdebe0dc79e44ac66c19af499
parent8a0ff3a2659e64408c76507ff0514748b6744b06
Address review comments from Matt on the sort_includes.py script.

1) Teach it to handle files with #include on the first line -- these do
   actually exist in LLVM.
2) Support llvm-c and clang-c include projects.
3) Nuke some stail imports.
4) Switch to using os.path to split the file extension off.
5) Remove debugging leftovers.
6) Add docstring (a really puny one) for the sort function.

I'm continuing te avoid stripping the whitespace on the RHS to preserve
whatever newline characters happen to be in the original file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169222 91177308-0d34-0410-b5e6-96231b3b80d8
utils/sort_includes.py