[Lldb-commits] [PATCH] D72161: [lldb][NFC] Use static_cast instead of reinterpret_cast where possible

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 3 08:05:01 PST 2020


teemperor created this revision.
teemperor added reviewers: shafik, JDevlieghere, labath.
Herald added subscribers: lldb-commits, usaxena95, arphaman.
Herald added a project: LLDB.

There are a few places in LLDB where we do a `reinterpret_cast` for conversions that we could also do with `static_cast`. This patch moves all this code to `static_cast`.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D72161

Files:
  lldb/source/API/SBEvent.cpp
  lldb/source/Core/Debugger.cpp
  lldb/source/Host/common/NativeProcessProtocol.cpp
  lldb/source/Host/macosx/objcxx/Host.mm
  lldb/source/Host/posix/PipePosix.cpp
  lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
  lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
  lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
  lldb/source/Target/Target.cpp
  lldb/source/Utility/DataExtractor.cpp
  lldb/source/Utility/Environment.cpp
  lldb/source/Utility/Scalar.cpp
  lldb/source/Utility/StreamString.cpp
  lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp
  lldb/tools/debugserver/source/MacOSX/MachProcess.mm
  lldb/tools/debugserver/source/MacOSX/MachThread.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72161.236066.patch
Type: text/x-patch
Size: 22818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200103/e93c9f2e/attachment-0001.bin>


More information about the lldb-commits mailing list