From 6a451d03c9f9c597b1cf0420eb399bb5d3398299 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 3 Dec 2012 17:01:46 +0000 Subject: 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 --- llvm/utils/sort_includes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/utils/sort_includes.py') diff --git a/llvm/utils/sort_includes.py b/llvm/utils/sort_includes.py index 6f20cb76e48..81095d63585 100755 --- a/llvm/utils/sort_includes.py +++ b/llvm/utils/sort_includes.py @@ -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: -- cgit v1.2.3