[all-commits] [llvm/llvm-project] 65fdb3: [lldb][NFC] Use static_cast instead of reinterpret...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Tue Jan 7 04:04:22 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 65fdb34219f33b2871a532a38814ac4ebea10abc
      https://github.com/llvm/llvm-project/commit/65fdb34219f33b2871a532a38814ac4ebea10abc
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-01-07 (Tue, 07 Jan 2020)

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

  Log Message:
  -----------
  [lldb][NFC] Use static_cast instead of reinterpret_cast where possible

Summary: 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`.

Reviewers: shafik, JDevlieghere, labath

Reviewed By: labath

Subscribers: arphaman, usaxena95, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D72161




More information about the All-commits mailing list