[all-commits] [llvm/llvm-project] 1b1028: [lldb][NFCI] Change return type of GetProcessPlugi...

Alex via All-commits all-commits at lists.llvm.org
Mon Jul 3 10:07:07 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b102886c0c33bb01ff8f2360b57c7b8d039abcc
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M lldb/include/lldb/Host/ProcessLaunchInfo.h
    M lldb/include/lldb/Target/Process.h
    M lldb/source/Host/common/ProcessLaunchInfo.cpp
    M lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
    M lldb/source/Target/Target.cpp

  Log Message:
  [lldb][NFCI] Change return type of GetProcessPluginName

Instead of just returning a raw `const char *`, I think llvm::StringRef
would make more sense. Most of the time that we use the return value of
`GetProcessPluginName` we're passing it to `CreateProcess` which takes a
StringRef anyway.

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

More information about the All-commits mailing list