[all-commits] [llvm/llvm-project] dd17cf: [lldb] Minor improvements to AddNamesMatchingParti...
Dave Lee via All-commits
all-commits at lists.llvm.org
Wed Apr 23 15:21:56 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd17cf4480fc55c38813769a46fb2807397d8f72
https://github.com/llvm/llvm-project/commit/dd17cf4480fc55c38813769a46fb2807397d8f72
Author: Dave Lee <davelee.com at gmail.com>
Date: 2025-04-23 (Wed, 23 Apr 2025)
Changed paths:
M lldb/include/lldb/Interpreter/CommandObject.h
Log Message:
-----------
[lldb] Minor improvements to AddNamesMatchingPartialString (NFC) (#136760)
The primary changes are:
1. Avoid allocating a temporary `std::string` each time in the loop
2. Use `starts_with` instead of `find(...) == 0`
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