Teach the include sorting script about the gtest headers; sort them with
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 09:44:38 +0000 (09:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 09:44:38 +0000 (09:44 +0000)
the system headers.

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

utils/sort_includes.py

index 9812cf1eff7a19b1c5e25df22dd0b52b76b43692..855cb38ad594c4f5829a6f2512c8c3037d966931 100755 (executable)
@@ -35,7 +35,7 @@ def sort_includes(f):
         api_headers.append(header)
         look_for_api_header = False
         continue
-      if header.startswith('<'):
+      if header.startswith('<') or header.startswith('"gtest/'):
         system_headers.append(header)
         continue
       if (header.startswith('"llvm/') or header.startswith('"llvm-c/') or