Use a StringRef. Saves 0.00000000000001s on execution time.
git-svn-id: svn://svn.chromium.org/llvm-project/cfe/trunk/tools/clang-format@194301 0b72dbe1-c17f-4bc7-b9db-2b4152be0356
diff --git a/ClangFormat.cpp b/ClangFormat.cpp
index 85c47ab..768165b 100644
--- a/ClangFormat.cpp
+++ b/ClangFormat.cpp
@@ -174,7 +174,7 @@
}
// Returns true on error.
-static bool format(std::string FileName) {
+static bool format(StringRef FileName) {
FileManager Files((FileSystemOptions()));
DiagnosticsEngine Diagnostics(
IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs),