Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: tools/sort-headers.py

Issue 12719005: Sort project headers in a case-sensitive way since PRESUBMIT enforces that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sort-headers.py
diff --git a/tools/sort-headers.py b/tools/sort-headers.py
index b1575b3822b871ce831428f5dd842399aa1b62ba..ac20ca1cfb11e14fa71f6d971b9622e62fa38c04 100755
--- a/tools/sort-headers.py
+++ b/tools/sort-headers.py
@@ -37,7 +37,6 @@ def IncludeCompareKey(line):
"""Sorting comparator key used for comparing two #include lines.
Returns the filename without the #include/#import prefix.
"""
- line = line.lower()
for prefix in ('#include ', '#import '):
if line.startswith(prefix):
line = line[len(prefix):]
@@ -56,9 +55,9 @@ def IncludeCompareKey(line):
# C++ system headers should come after C system headers.
if line.startswith('<'):
if line.find('.h>') != -1:
- return '2' + line
+ return '2' + line.lower()
else:
- return '3' + line
+ return '3' + line.lower()
return '4' + line
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698