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

Unified Diff: tools/sort-headers.py

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/viewer/cc/BUILD.gn ('k') | 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 3f3435d56b514fca1b56863a479af23dd5355fe5..08031b2cfd88dd99de2e6f1e09b5d01858604b95 100755
--- a/tools/sort-headers.py
+++ b/tools/sort-headers.py
@@ -46,6 +46,10 @@ def IncludeCompareKey(line):
line = line[len(prefix):]
break
+ # In sky, config.h must always be first to defined HAVE, USE, etc.
+ if line.startswith('"sky/engine/config.h"'):
+ return '0'
+
# The win32 api has all sorts of implicit include order dependencies :-/
# Give a few headers special sort keys that make sure they appear before all
# other headers.
« no previous file with comments | « sky/viewer/cc/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698