summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-03-09 14:52:24 (GMT)
committerTobias Markmann <tm@ayena.de>2016-03-09 14:52:24 (GMT)
commitb792712c9a406a7913935c23d535f214bfd758e8 (patch)
tree8222bbe422a56e23148f99236f451b994ca1672a
parentb6254293cc57d90942ed63fcfe5b2be8076b284a (diff)
downloadswift-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
-rwxr-xr-xBuildTools/FixIncludes.py2
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)