From afa62fae1e143f9fa2b8ff5db30bc36fc63af993 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 19 Oct 2015 01:36:09 +0000 Subject: clang-format: Extend main header include sorting heuristic to Objective-C files. llvm-svn: 250675 --- clang/lib/Format/Format.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/lib/Format') diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 674af7ac531..2595a666699 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1747,7 +1747,9 @@ tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code, 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 CategoryRegexs; -- cgit v1.2.3