diff options
| author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-04-05 20:19:49 +0000 |
|---|---|---|
| committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-04-05 20:19:49 +0000 |
| commit | 1760dc2a232bde2175606ba737938d3032f1e49d (patch) | |
| tree | 3859bc6b8b21c8d5073ded16260d7a5b3ff99b8f /llvm/lib/Support/Errno.cpp | |
| parent | f2fdd013a29b26791490e3a33beda1bacfeec182 (diff) | |
| download | bcm5719-llvm-1760dc2a232bde2175606ba737938d3032f1e49d.tar.gz bcm5719-llvm-1760dc2a232bde2175606ba737938d3032f1e49d.zip | |
Fix Clang-tidy modernize-deprecated-headers warnings in remaining files; other minor fixes.
Some Include What You Use suggestions were used too.
Use anonymous namespaces in source files.
Differential revision: http://reviews.llvm.org/D18778
llvm-svn: 265454
Diffstat (limited to 'llvm/lib/Support/Errno.cpp')
| -rw-r--r-- | llvm/lib/Support/Errno.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/lib/Support/Errno.cpp b/llvm/lib/Support/Errno.cpp index 3ba2a1277d0..888887cb938 100644 --- a/llvm/lib/Support/Errno.cpp +++ b/llvm/lib/Support/Errno.cpp @@ -14,11 +14,9 @@ #include "llvm/Support/Errno.h" #include "llvm/Config/config.h" // Get autoconf configuration settings #include "llvm/Support/raw_ostream.h" -#include <string.h> - -#if HAVE_ERRNO_H -#include <errno.h> -#endif +#include <cerrno> +#include <cstring> +#include <string> //===----------------------------------------------------------------------===// //=== WARNING: Implementation here must contain only TRULY operating system @@ -32,7 +30,7 @@ namespace sys { std::string StrError() { return StrError(errno); } -#endif // HAVE_ERRNO_H +#endif // HAVE_ERRNO_H std::string StrError(int errnum) { std::string str; @@ -72,5 +70,5 @@ std::string StrError(int errnum) { return str; } -} // namespace sys -} // namespace llvm +} // namespace sys +} // namespace llvm |

