summaryrefslogtreecommitdiffstats
path: root/tools/clang-format/ClangFormat.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 20:37:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 20:37:59 +0000
commit5471ad06e14d47734d89ab5d197695d935d39243 (patch)
treebb98087dd3604e02d6f59aa5983354e761315511 /tools/clang-format/ClangFormat.cpp
parent85f2aa90c23acc494ea5804f84e3ea780eaa1b54 (diff)
Refer to error_code with the std prefix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format/ClangFormat.cpp')
-rw-r--r--tools/clang-format/ClangFormat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-format/ClangFormat.cpp b/tools/clang-format/ClangFormat.cpp
index 189a611d00..e0239499af 100644
--- a/tools/clang-format/ClangFormat.cpp
+++ b/tools/clang-format/ClangFormat.cpp
@@ -210,7 +210,7 @@ static bool format(StringRef FileName) {
new DiagnosticOptions);
SourceManager Sources(Diagnostics, Files);
std::unique_ptr<MemoryBuffer> Code;
- if (error_code ec = MemoryBuffer::getFileOrSTDIN(FileName, Code)) {
+ if (std::error_code ec = MemoryBuffer::getFileOrSTDIN(FileName, Code)) {
llvm::errs() << ec.message() << "\n";
return true;
}