diff options
author | Tobias Markmann <tm@ayena.de> | 2016-03-09 14:52:24 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2016-03-09 14:52:24 (GMT) |
commit | b792712c9a406a7913935c23d535f214bfd758e8 (patch) | |
tree | 8222bbe422a56e23148f99236f451b994ca1672a /BuildTools | |
parent | b6254293cc57d90942ed63fcfe5b2be8076b284a (diff) | |
download | swift-b792712c9a406a7913935c23d535f214bfd758e8.zip swift-b792712c9a406a7913935c23d535f214bfd758e8.tar.bz2 |
Fix FixIncludes.py script to handle Objective C (.mm)
Test-Information:
Ran it on Slimber/Cocoa/CocoaMenulet.mm. It was sorted
correctly.
Change-Id: I197e84c9bfb5ec2619c43f98fcaa927f85425083
Diffstat (limited to 'BuildTools')
-rwxr-xr-x | BuildTools/FixIncludes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildTools/FixIncludes.py b/BuildTools/FixIncludes.py index 8ecbd4a..81c7b17 100755 --- a/BuildTools/FixIncludes.py +++ b/BuildTools/FixIncludes.py @@ -149,5 +149,5 @@ if filename_base.endswith(".h"): print "Missing #pragma once!" exit(2) cleanHeaderFile(content, headerStart, headerEnd, headerGroups) -elif filename_base.endswith(".cpp"): +elif filename_base.endswith(".cpp") or filename_base.endswith(".mm"): cleanImplementationFile(content, headerStart, headerEnd, headerGroups) |