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;
sort("#include \"llvm/a.h\"\n"
"#include \"c.h\"\n"
"#include \"b.h\"\n"));
+ EXPECT_EQ("#include \"llvm/a.h\"\n"
+ "#include \"b.h\"\n"
+ "#include \"c.h\"\n",
+ sort("#include \"llvm/a.h\"\n"
+ "#include \"c.h\"\n"
+ "#include \"b.h\"\n",
+ "input.mm"));
// Don't do this in headers.
EXPECT_EQ("#include \"b.h\"\n"