[llvm-commits] [llvm] r169132 - /llvm/trunk/utils/sort_includes.py
Chandler Carruth
chandlerc at gmail.com
Mon Dec 3 09:01:46 PST 2012
Author: chandlerc
Date: Mon Dec 3 11:01:46 2012
New Revision: 169132
URL: http://llvm.org/viewvc/llvm-project?rev=169132&view=rev
Log:
Teach the include sorter to not choke on include guards. ;]
Kind of important when prepping the include/... tree version of the sort
changes.
Modified:
llvm/trunk/utils/sort_includes.py
Modified: llvm/trunk/utils/sort_includes.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/sort_includes.py?rev=169132&r1=169131&r2=169132&view=diff
==============================================================================
--- llvm/trunk/utils/sort_includes.py (original)
+++ llvm/trunk/utils/sort_includes.py Mon Dec 3 11:01:46 2012
@@ -48,7 +48,7 @@
# 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:
More information about the llvm-commits
mailing list