clang-format: Extend main header include sorting heuristic to Objective-C files.

llvm-svn: 250675
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 674af7a..2595a66 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1747,7 +1747,9 @@
                            FileName.endswith(".cc") ||
                            FileName.endswith(".cpp")||
                            FileName.endswith(".c++")||
-                           FileName.endswith(".cxx");
+                           FileName.endswith(".cxx") ||
+                           FileName.endswith(".m")||
+                           FileName.endswith(".mm");
 
   // Create pre-compiled regular expressions for the #include categories.
   SmallVector<llvm::Regex, 4> CategoryRegexs;