Pārlūkot izejas kodu

Include system_error directly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210802 91177308-0d34-0410-b5e6-96231b3b80d8
Rafael Espindola 11 gadi atpakaļ
vecāks
revīzija
e616fa6104

+ 1 - 1
include/clang/Format/Format.h

@@ -17,7 +17,7 @@
 
 
 #include "clang/Frontend/FrontendAction.h"
 #include "clang/Frontend/FrontendAction.h"
 #include "clang/Tooling/Refactoring.h"
 #include "clang/Tooling/Refactoring.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 
 namespace clang {
 namespace clang {
 
 

+ 1 - 1
lib/Basic/FileManager.cpp

@@ -25,10 +25,10 @@
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <map>
 #include <map>
 #include <set>
 #include <set>
 #include <string>
 #include <string>
+#include <system_error>
 
 
 using namespace clang;
 using namespace clang;
 
 

+ 1 - 2
lib/Driver/ToolChains.cpp

@@ -30,9 +30,8 @@
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
-
 #include <cstdlib> // ::getenv
 #include <cstdlib> // ::getenv
+#include <system_error>
 
 
 using namespace clang::driver;
 using namespace clang::driver;
 using namespace clang::driver::toolchains;
 using namespace clang::driver::toolchains;

+ 1 - 1
lib/Frontend/CompilerInstance.cpp

@@ -44,8 +44,8 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <sys/stat.h>
 #include <sys/stat.h>
+#include <system_error>
 #include <time.h>
 #include <time.h>
 
 
 using namespace clang;
 using namespace clang;

+ 1 - 1
lib/Frontend/CompilerInvocation.cpp

@@ -33,10 +33,10 @@
 #include "llvm/Support/Host.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Process.h"
 #include "llvm/Support/Process.h"
-#include "llvm/Support/system_error.h"
 #include <atomic>
 #include <atomic>
 #include <memory>
 #include <memory>
 #include <sys/stat.h>
 #include <sys/stat.h>
+#include <system_error>
 using namespace clang;
 using namespace clang;
 
 
 //===----------------------------------------------------------------------===//
 //===----------------------------------------------------------------------===//

+ 1 - 1
lib/Frontend/FrontendAction.cpp

@@ -30,7 +30,7 @@
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace clang;
 using namespace clang;
 
 
 namespace {
 namespace {

+ 1 - 1
lib/Frontend/FrontendActions.cpp

@@ -24,8 +24,8 @@
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <memory>
 #include <memory>
+#include <system_error>
 
 
 using namespace clang;
 using namespace clang;
 
 

+ 1 - 1
lib/Lex/PTHLexer.cpp

@@ -25,8 +25,8 @@
 #include "llvm/Support/EndianStream.h"
 #include "llvm/Support/EndianStream.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/OnDiskHashTable.h"
 #include "llvm/Support/OnDiskHashTable.h"
-#include "llvm/Support/system_error.h"
 #include <memory>
 #include <memory>
+#include <system_error>
 using namespace clang;
 using namespace clang;
 
 
 #define DISK_TOKEN_SIZE (1+1+2+4+4)
 #define DISK_TOKEN_SIZE (1+1+2+4+4)

+ 1 - 1
lib/Serialization/ASTReader.cpp

@@ -52,10 +52,10 @@
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/SaveAndRestore.h"
 #include "llvm/Support/SaveAndRestore.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <algorithm>
 #include <cstdio>
 #include <cstdio>
 #include <iterator>
 #include <iterator>
+#include <system_error>
 
 
 using namespace clang;
 using namespace clang;
 using namespace clang::serialization;
 using namespace clang::serialization;

+ 1 - 1
lib/Serialization/ModuleManager.cpp

@@ -18,7 +18,7 @@
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 
 #ifndef NDEBUG
 #ifndef NDEBUG
 #include "llvm/Support/GraphWriter.h"
 #include "llvm/Support/GraphWriter.h"

+ 1 - 1
lib/Tooling/CompilationDatabase.cpp

@@ -27,8 +27,8 @@
 #include "llvm/Option/Arg.h"
 #include "llvm/Option/Arg.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/system_error.h"
 #include <sstream>
 #include <sstream>
+#include <system_error>
 
 
 namespace clang {
 namespace clang {
 namespace tooling {
 namespace tooling {

+ 1 - 1
lib/Tooling/JSONCompilationDatabase.cpp

@@ -17,7 +17,7 @@
 #include "clang/Tooling/Tooling.h"
 #include "clang/Tooling/Tooling.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 
 namespace clang {
 namespace clang {
 namespace tooling {
 namespace tooling {

+ 1 - 1
tools/arcmt-test/arcmt-test.cpp

@@ -16,7 +16,7 @@
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/Signals.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 
 using namespace clang;
 using namespace clang;
 using namespace arcmt;
 using namespace arcmt;

+ 1 - 1
tools/driver/cc1as_main.cpp

@@ -53,8 +53,8 @@
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <memory>
 #include <memory>
+#include <system_error>
 using namespace clang;
 using namespace clang;
 using namespace clang::driver;
 using namespace clang::driver;
 using namespace llvm;
 using namespace llvm;

+ 1 - 1
tools/driver/driver.cpp

@@ -45,8 +45,8 @@
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <memory>
 #include <memory>
+#include <system_error>
 using namespace clang;
 using namespace clang;
 using namespace clang::driver;
 using namespace clang::driver;
 using namespace llvm::opt;
 using namespace llvm::opt;