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:
Chandler Carruth 2012-12-03 17:01:46 +00:00
parent ed0881b2a6
commit 6a451d03c9
1 changed files with 1 additions and 1 deletions

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: