Index: clang-tidy/utils/IncludeSorter.cpp =================================================================== --- clang-tidy/utils/IncludeSorter.cpp +++ clang-tidy/utils/IncludeSorter.cpp @@ -113,9 +113,10 @@ Optional IncludeSorter::CreateIncludeInsertion(StringRef FileName, bool IsAngled) { + std::string IncludeDirective = LangOpts->ObjC ? "#import " : "#include "; std::string IncludeStmt = - IsAngled ? llvm::Twine("#include <" + FileName + ">\n").str() - : llvm::Twine("#include \"" + FileName + "\"\n").str(); + IsAngled ? llvm::Twine(IncludeDirective + "<" + FileName + ">\n").str() + : llvm::Twine(IncludeDirective + "\"" + FileName + "\"\n").str(); if (SourceLocations.empty()) { // If there are no includes in this file, add it in the first line. // FIXME: insert after the file comment or the header guard, if present.