diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 23be07e71dea23449597f981bd77ac4cf0623307..23f65fec1449df2958c7f40d3ae549698cece50a 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 9446d892668d8a90710cf3f1a365e3f7070123de..aa06020be616d1f1a14aef9611848e5efbebebfc 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 e18f71d298b4450cd4775c5f1997019f87d8f648..71575561d3deeb872eceabb0adac45966f73321f 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 1605012e8c43b9e1b47761cd3edb1d821309a0e4..dfe5219ed6ad3849bb23a6023e3227a4ce1a2c40 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 d8abd5307e0654572bfaaf30b06034378142381e..68c7176a5f2599dcd78c3968d070b5e66b356f55 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 ed8b66b2186572cc275f4444822ea61714bf83d9..1cf4a79fd2f41eee69c32255b75480f0fca66095 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 4cc73c422280a7cbe46c67c1bc8bdc66728ff2c1..5147a8ab921bff124ea70e1576121132ece01364 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 42629d41ab565e2899010dfde162273371d222a2..844d66a8a1c7b705c93e8bb032f8d04b7b3ec1c0 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 cf47376ee553a89c264d278c3d5fefac9973c870..e8db122445ec5b165c9904313a0f7cd7ab43097d 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 419d04963030dc1ae44b41818753868d26d3e119..c5b4dd120cbd326339b25991ac56c49d0eee8f8e 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 94bdc8d25a4199d79fa0ed36af45ac8f220f0b02..4b776bf3c73dd4842925e9cd0b7975f897b4582b 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 d99d7879ea6b5ae53f9285eea9153ae67a1a1972..94fdb5f9a9e96f809751031a066e0349c739c008 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 a31d0cae192b1576b95f92003eabbff597d562a5..8a329929357263411febacc7665df234170332de 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 b1ae100bcfaadd04fe43096a8fac35ccf88439ff..5f020297e99ee519d8f5e3a2f6e2ca9570a242c2 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 3285502522c9c21eaf0057b04295ba2f3e9f7371..77bdab7227c693ef2a4d303144286f126bfc9bb1 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;