Skip to content

Commit

Permalink
Add additional special-cases to sort-headers for ATL.
Browse files Browse the repository at this point in the history
BUG=


Review URL: https://chromiumcodereview.appspot.com/12313091

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184476 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
brettw@chromium.org committed Feb 25, 2013
1 parent 2466568 commit d5d7105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/sort-headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def IncludeCompareKey(line):
# other headers.
if line.startswith('<windows.h>'): # Must be before e.g. shellapi.h
return '0'
if line.startswith('<atlbase.h>'): # Must be before atlapp.h.
return '1' + line
if line.startswith('<unknwn.h>'): # Must be before e.g. intshcut.h
return '1'
return '1' + line

# C++ system headers should come after C system headers.
if line.startswith('<'):
Expand Down

0 comments on commit d5d7105

Please sign in to comment.