diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-12-03 17:01:46 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-12-03 17:01:46 +0000 |
commit | 6a451d03c9f9c597b1cf0420eb399bb5d3398299 (patch) | |
tree | f33f9ef7a982c7c518faaea79d906dc578a23407 | |
parent | ed0881b2a67c530079dfd4141dbd9a899e6c1a7c (diff) | |
download | bcm5719-llvm-6a451d03c9f9c597b1cf0420eb399bb5d3398299.tar.gz bcm5719-llvm-6a451d03c9f9c597b1cf0420eb399bb5d3398299.zip |
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
-rwxr-xr-x | llvm/utils/sort_includes.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |