summaryrefslogtreecommitdiffstats
path: root/tools/sort-headers.py
Commit message (Collapse)AuthorAgeFilesLines
* sort-headers.py: Do a case-insensitive sort instead.tfarina@chromium.org2012-05-291-0/+1
| | | | | | | | | | | | | | Otherwise the diff reports things like this: -#include <uxtheme.h> #include <Vssym32.h> +#include <uxtheme.h> TEST=run ./tools/sort-headers.py, it should not report the above case. R=thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/10446061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139294 0039d316-1c4b-4281-b951-d872f2087c98
* Make ./tools/sort-headers.py order C++ system headers before C system headers.asvitkine@chromium.org2012-01-051-2/+9
| | | | | | | | | BUG=none TEST=manual Review URL: http://codereview.chromium.org/9109013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116513 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/tools/maruel@chromium.org2011-11-291-3/+4
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=timurrrr@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8678023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a tool that lets you run a command for each modified file on your git ↵joi@chromium.org2011-11-011-24/+37
| | | | | | | | | | | | | branch or in your workspace. Also, add a flag to sort-headers.py to make it more useful when used in conjunction with that tool, that suppresses the y/N prompt after each diff (as vetting a bulk change may be easier once it's in your working directory, using your favorite diff tool). Refactor the script slightly while I'm in there. BUG=none TEST=none Review URL: http://codereview.chromium.org/8390055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108097 0039d316-1c4b-4281-b951-d872f2087c98
* Teach sort-headers.py about unknwn.hthakis@chromium.org2011-05-201-4/+9
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7047026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86035 0039d316-1c4b-4281-b951-d872f2087c98
* Add a license header to sort-headers.py to make presubmit happy.thakis@chromium.org2011-05-191-0/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7048011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85959 0039d316-1c4b-4281-b951-d872f2087c98
* Teach sort-headers.py about windows.h.thakis@chromium.org2011-05-191-1/+6
| | | | | | | | | | | See http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/a3480ba1e7b8b9c0# BUG=none TEST=Run sort-headers.py on a file that includes <windows.h>, e.g. base/file_util_unittest.cc. That line should stay at the top of its block. Review URL: http://codereview.chromium.org/7050020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85957 0039d316-1c4b-4281-b951-d872f2087c98
* Check in a quick tool for sorting the #includes in a file.evan@chromium.org2010-08-261-0/+94
This is especially useful when you do a mass-rename of a header and now need to fix every user of it. Special thanks to pamg for fixing my Python style! Review URL: http://codereview.chromium.org/3149032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57435 0039d316-1c4b-4281-b951-d872f2087c98