Skip to content

Commit 6a451d0

Browse files
committed
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
1 parent ed0881b commit 6a451d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/sort_includes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def sort_includes(f):
4848
# mixed with includes, the order might be sensitive.
4949
if headers_begin != 0:
5050
break
51-
if l.startswith('//') or l.startswith('#define'):
51+
if l.startswith('//') or l.startswith('#define') or l.startswith('#ifndef'):
5252
continue
5353
break
5454
if headers_begin == 0:

0 commit comments

Comments
 (0)