[all-commits] [llvm/llvm-project] fd5748: [lldb][NFCI] Minor cleanup of default OptionValue:...

Alex via All-commits all-commits at lists.llvm.org
Wed Jul 5 09:06:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd5748cb5a45c4178b84eb329bea9055f8ee485d
      https://github.com/llvm/llvm-project/commit/fd5748cb5a45c4178b84eb329bea9055f8ee485d
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-07-05 (Wed, 05 Jul 2023)

  Changed paths:
    M lldb/include/lldb/Interpreter/OptionValue.h

  Log Message:
  -----------
  [lldb][NFCI] Minor cleanup of default OptionValue::GetSubValue implementation

This does 2 things:
- Corrects a minor typo (`value subvalue` -> `valid subvalue`)
- Removes an unnecessary instance of `str().c_str()` (creating a
  temporary std::string from a StringRef just to get a valid
  null-terminated string).

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




More information about the All-commits mailing list