Teach the include sorter to not choke on include guards. ;]

Kind of important when prepping the include/... tree version of the sort
changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169132 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2012-12-03 17:01:46 +00:00
parent d04a8d4b33
commit 998aae738d

View File

@ -48,7 +48,7 @@ def sort_includes(f):
# mixed with includes, the order might be sensitive.
if headers_begin != 0:
break
if l.startswith('//') or l.startswith('#define'):
if l.startswith('//') or l.startswith('#define') or l.startswith('#ifndef'):
continue
break
if headers_begin == 0: