[all-commits] [llvm/llvm-project] bf01bb: [lldb] Refactor string manipulation in Debugger.cp...

aabhinavg via All-commits all-commits at lists.llvm.org
Tue Nov 5 01:20:45 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf01bb851b1e1a977ba1b92e7eb9c8c6d773e6d5
      https://github.com/llvm/llvm-project/commit/bf01bb851b1e1a977ba1b92e7eb9c8c6d773e6d5
  Author: aabhinavg <78288544+aabhinavg at users.noreply.github.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M lldb/source/Core/Debugger.cpp

  Log Message:
  -----------
  [lldb] Refactor string manipulation in Debugger.cpp (#92565)

Summary of Changes:

Replaced the ineffective call to `substr` with a more efficient use of
`resize` to truncate the string.
Adjusted the code to use 'resize' instead of 'substr' for better
performance and readability.
Removed unwanted file from the previous commit.
Fixes: #91209

---------

Co-authored-by: aabhinavg <tiwariabhinavak at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list