diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-11-09 00:23:58 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-11-09 00:23:58 +0000 |
commit | 11d10c32c9f2a893dc101cb9ed12bcd30d9cf1f8 (patch) | |
tree | 3403c7e878d64bebba4466fec7431011f3c52734 /tools/clang-format/ClangFormat.cpp | |
parent | 1c1b4da35ea978c6be7a6777098ad6dd5db96286 (diff) | |
download | clang-11d10c32c9f2a893dc101cb9ed12bcd30d9cf1f8.tar.gz clang-11d10c32c9f2a893dc101cb9ed12bcd30d9cf1f8.tar.bz2 clang-11d10c32c9f2a893dc101cb9ed12bcd30d9cf1f8.tar.xz |
Use a StringRef. Saves 0.00000000000001s on execution time.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format/ClangFormat.cpp')
-rw-r--r-- | tools/clang-format/ClangFormat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-format/ClangFormat.cpp b/tools/clang-format/ClangFormat.cpp index 85c47ab95c..768165b92e 100644 --- a/tools/clang-format/ClangFormat.cpp +++ b/tools/clang-format/ClangFormat.cpp @@ -174,7 +174,7 @@ static bool fillRanges(SourceManager &Sources, FileID ID, } // Returns true on error. -static bool format(std::string FileName) { +static bool format(StringRef FileName) { FileManager Files((FileSystemOptions())); DiagnosticsEngine Diagnostics( IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs), |