From e616fa6104088b53052b25f371bd05700a865cf9 Mon Sep 17 00:00:00 2001 From: Rafael Espindola <rafael.espindola@gmail.com> Date: Thu, 12 Jun 2014 17:19:42 +0000 Subject: [PATCH] Include system_error directly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210802 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Format/Format.h | 2 +- lib/Basic/FileManager.cpp | 2 +- lib/Driver/ToolChains.cpp | 3 +-- lib/Frontend/CompilerInstance.cpp | 2 +- lib/Frontend/CompilerInvocation.cpp | 2 +- lib/Frontend/FrontendAction.cpp | 2 +- lib/Frontend/FrontendActions.cpp | 2 +- lib/Lex/PTHLexer.cpp | 2 +- lib/Serialization/ASTReader.cpp | 2 +- lib/Serialization/ModuleManager.cpp | 2 +- lib/Tooling/CompilationDatabase.cpp | 2 +- lib/Tooling/JSONCompilationDatabase.cpp | 2 +- tools/arcmt-test/arcmt-test.cpp | 2 +- tools/driver/cc1as_main.cpp | 2 +- tools/driver/driver.cpp | 2 +- 15 files changed, 15 insertions(+), 16 deletions(-) diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 23be07e71de..23f65fec144 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -17,7 +17,7 @@ #include "clang/Frontend/FrontendAction.h" #include "clang/Tooling/Refactoring.h" -#include "llvm/Support/system_error.h" +#include <system_error> namespace clang { diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index 9446d892668..aa06020be61 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp @@ -25,10 +25,10 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" #include <map> #include <set> #include <string> +#include <system_error> using namespace clang; diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index e18f71d298b..71575561d3d 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -30,9 +30,8 @@ #include "llvm/Support/Path.h" #include "llvm/Support/Program.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" - #include <cstdlib> // ::getenv +#include <system_error> using namespace clang::driver; using namespace clang::driver::toolchains; diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 1605012e8c4..dfe5219ed6a 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -44,8 +44,8 @@ #include "llvm/Support/Signals.h" #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" #include <sys/stat.h> +#include <system_error> #include <time.h> using namespace clang; diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index d8abd5307e0..68c7176a5f2 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -33,10 +33,10 @@ #include "llvm/Support/Host.h" #include "llvm/Support/Path.h" #include "llvm/Support/Process.h" -#include "llvm/Support/system_error.h" #include <atomic> #include <memory> #include <sys/stat.h> +#include <system_error> using namespace clang; //===----------------------------------------------------------------------===// diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp index ed8b66b2186..1cf4a79fd2f 100644 --- a/lib/Frontend/FrontendAction.cpp +++ b/lib/Frontend/FrontendAction.cpp @@ -30,7 +30,7 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" +#include <system_error> using namespace clang; namespace { diff --git a/lib/Frontend/FrontendActions.cpp b/lib/Frontend/FrontendActions.cpp index 4cc73c42228..5147a8ab921 100644 --- a/lib/Frontend/FrontendActions.cpp +++ b/lib/Frontend/FrontendActions.cpp @@ -24,8 +24,8 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" #include <memory> +#include <system_error> using namespace clang; diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 42629d41ab5..844d66a8a1c 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -25,8 +25,8 @@ #include "llvm/Support/EndianStream.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/OnDiskHashTable.h" -#include "llvm/Support/system_error.h" #include <memory> +#include <system_error> using namespace clang; #define DISK_TOKEN_SIZE (1+1+2+4+4) diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index cf47376ee55..e8db122445e 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -52,10 +52,10 @@ #include "llvm/Support/Path.h" #include "llvm/Support/SaveAndRestore.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" #include <algorithm> #include <cstdio> #include <iterator> +#include <system_error> using namespace clang; using namespace clang::serialization; diff --git a/lib/Serialization/ModuleManager.cpp b/lib/Serialization/ModuleManager.cpp index 419d0496303..c5b4dd120cb 100644 --- a/lib/Serialization/ModuleManager.cpp +++ b/lib/Serialization/ModuleManager.cpp @@ -18,7 +18,7 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" +#include <system_error> #ifndef NDEBUG #include "llvm/Support/GraphWriter.h" diff --git a/lib/Tooling/CompilationDatabase.cpp b/lib/Tooling/CompilationDatabase.cpp index 94bdc8d25a4..4b776bf3c73 100644 --- a/lib/Tooling/CompilationDatabase.cpp +++ b/lib/Tooling/CompilationDatabase.cpp @@ -27,8 +27,8 @@ #include "llvm/Option/Arg.h" #include "llvm/Support/Host.h" #include "llvm/Support/Path.h" -#include "llvm/Support/system_error.h" #include <sstream> +#include <system_error> namespace clang { namespace tooling { diff --git a/lib/Tooling/JSONCompilationDatabase.cpp b/lib/Tooling/JSONCompilationDatabase.cpp index d99d7879ea6..94fdb5f9a9e 100644 --- a/lib/Tooling/JSONCompilationDatabase.cpp +++ b/lib/Tooling/JSONCompilationDatabase.cpp @@ -17,7 +17,7 @@ #include "clang/Tooling/Tooling.h" #include "llvm/ADT/SmallString.h" #include "llvm/Support/Path.h" -#include "llvm/Support/system_error.h" +#include <system_error> namespace clang { namespace tooling { diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp index a31d0cae192..8a329929357 100644 --- a/tools/arcmt-test/arcmt-test.cpp +++ b/tools/arcmt-test/arcmt-test.cpp @@ -16,7 +16,7 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Signals.h" -#include "llvm/Support/system_error.h" +#include <system_error> using namespace clang; using namespace arcmt; diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index b1ae100bcfa..5f020297e99 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -53,8 +53,8 @@ #include "llvm/Support/TargetSelect.h" #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" #include <memory> +#include <system_error> using namespace clang; using namespace clang::driver; using namespace llvm; diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index 3285502522c..77bdab7227c 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -45,8 +45,8 @@ #include "llvm/Support/TargetSelect.h" #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/system_error.h" #include <memory> +#include <system_error> using namespace clang; using namespace clang::driver; using namespace llvm::opt; -- GitLab