The attached patch will replace C included headers with the respective C++
versions.

Best regards,

Michael Sharpe
diff --git lib/CodeGen/CGOpenCLRuntime.cpp lib/CodeGen/CGOpenCLRuntime.cpp
index 9062936..f4c961c 100644
--- lib/CodeGen/CGOpenCLRuntime.cpp
+++ lib/CodeGen/CGOpenCLRuntime.cpp
@@ -18,7 +18,7 @@
 #include "TargetInfo.h"
 #include "llvm/IR/DerivedTypes.h"
 #include "llvm/IR/GlobalValue.h"
-#include <assert.h>
+#include <cassert>
 
 using namespace clang;
 using namespace CodeGen;
diff --git lib/Driver/Types.cpp lib/Driver/Types.cpp
index ab63f0e..43b5a1e 100644
--- lib/Driver/Types.cpp
+++ lib/Driver/Types.cpp
@@ -11,7 +11,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringSwitch.h"
 #include <cassert>
-#include <string.h>
+#include <cstring>
 
 using namespace clang::driver;
 using namespace clang::driver::types;
diff --git lib/Frontend/CodeGenOptions.cpp lib/Frontend/CodeGenOptions.cpp
index 50bb9f9..e5f483c 100644
--- lib/Frontend/CodeGenOptions.cpp
+++ lib/Frontend/CodeGenOptions.cpp
@@ -8,7 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "clang/Frontend/CodeGenOptions.h"
-#include <string.h>
+#include <cstring>
 
 namespace clang {
 
diff --git lib/Frontend/CompilerInstance.cpp lib/Frontend/CompilerInstance.cpp
index 991e9ef..139fbfb 100644
--- lib/Frontend/CompilerInstance.cpp
+++ lib/Frontend/CompilerInstance.cpp
@@ -48,7 +48,7 @@
 #include "llvm/Support/raw_ostream.h"
 #include <sys/stat.h>
 #include <system_error>
-#include <time.h>
+#include <ctime>
 #include <utility>
 
 using namespace clang;
diff --git lib/Lex/HeaderSearch.cpp lib/Lex/HeaderSearch.cpp
index 0aef7ff..cec3942 100644
--- lib/Lex/HeaderSearch.cpp
+++ lib/Lex/HeaderSearch.cpp
@@ -29,7 +29,7 @@
 #include <cstdio>
 #include <utility>
 #if defined(LLVM_ON_UNIX)
-#include <limits.h>
+#include <climits>
 #endif
 using namespace clang;
 
diff --git lib/Lex/ModuleMap.cpp lib/Lex/ModuleMap.cpp
index c1b7b33..bf2f1f5 100644
--- lib/Lex/ModuleMap.cpp
+++ lib/Lex/ModuleMap.cpp
@@ -30,9 +30,9 @@
 #include "llvm/Support/Host.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include <stdlib.h>
+#include <cstdlib>
 #if defined(LLVM_ON_UNIX)
-#include <limits.h>
+#include <climits>
 #endif
 using namespace clang;
 
diff --git lib/Sema/DelayedDiagnostic.cpp lib/Sema/DelayedDiagnostic.cpp
index 2fa5718..c047ffd 100644
--- lib/Sema/DelayedDiagnostic.cpp
+++ lib/Sema/DelayedDiagnostic.cpp
@@ -15,7 +15,7 @@
 //
 //===----------------------------------------------------------------------===//
 #include "clang/Sema/DelayedDiagnostic.h"
-#include <string.h>
+#include <cstring>
 using namespace clang;
 using namespace sema;
 
diff --git lib/Tooling/Core/QualTypeNames.cpp lib/Tooling/Core/QualTypeNames.cpp
index 721c2c9..7bfa745 100644
--- lib/Tooling/Core/QualTypeNames.cpp
+++ lib/Tooling/Core/QualTypeNames.cpp
@@ -15,7 +15,7 @@
 #include "clang/AST/GlobalDecl.h"
 #include "clang/AST/Mangle.h"
 
-#include <stdio.h>
+#include <cstdio>
 #include <memory>
 
 namespace clang {
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to