mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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:
parent
d04a8d4b33
commit
998aae738d
@ -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
Block a user