From b792712c9a406a7913935c23d535f214bfd758e8 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Wed, 9 Mar 2016 14:52:24 +0000 Subject: 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 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) -- cgit v0.10.2-6-g49f6