Teach the include sorter to not choke on include guards. ;]
Kind of important when prepping the include/... tree version of the sort changes. llvm-svn: 169132
This commit is contained in:
parent
ed0881b2a6
commit
6a451d03c9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue