aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2021-05-26 12:19:37 +0200
committerRaphael Isemann <teemperor@gmail.com>2021-05-26 12:46:12 +0200
commit76e47d4887f456878c0e2f20ebfae36267006cd7 (patch)
treeeda2cb15f0f5c338c93794e9e3fa8098ada5a350 /lldb/source/Interpreter
parent21aec4fdc5de213a1009bc684adff988c290c6b3 (diff)
downloadllvm-76e47d4887f456878c0e2f20ebfae36267006cd7.zip
llvm-76e47d4887f456878c0e2f20ebfae36267006cd7.tar.gz
llvm-76e47d4887f456878c0e2f20ebfae36267006cd7.tar.bz2
[lldb][NFC] Use C++ versions of the deprecated C standard library headers
The C headers are deprecated so as requested in D102845, this is replacing them all with their (not deprecated) C++ equivalent. Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D103084
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/CommandHistory.cpp2
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp2
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp4
-rw-r--r--lldb/source/Interpreter/ScriptInterpreter.cpp4
4 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Interpreter/CommandHistory.cpp b/lldb/source/Interpreter/CommandHistory.cpp
index ffdcbbf..8f39984 100644
--- a/lldb/source/Interpreter/CommandHistory.cpp
+++ b/lldb/source/Interpreter/CommandHistory.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include <inttypes.h>
+#include <cinttypes>
#include "lldb/Interpreter/CommandHistory.h"
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 8122084..3398ec2 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//
+#include <cstdlib>
#include <limits>
#include <memory>
-#include <stdlib.h>
#include <string>
#include <vector>
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 22effff..09a8b05 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -12,8 +12,8 @@
#include <sstream>
#include <string>
-#include <ctype.h>
-#include <stdlib.h>
+#include <cctype>
+#include <cstdlib>
#include "lldb/Core/Address.h"
#include "lldb/Interpreter/Options.h"
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp
index d822ea2..2b70a91 100644
--- a/lldb/source/Interpreter/ScriptInterpreter.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreter.cpp
@@ -18,9 +18,9 @@
#if defined(_WIN32)
#include "lldb/Host/windows/ConnectionGenericFileWindows.h"
#endif
+#include <cstdio>
+#include <cstdlib>
#include <memory>
-#include <stdio.h>
-#include <stdlib.h>
#include <string>
using namespace lldb;