[Lldb-commits] [lldb] [Demangling] Refactor Demangler range tracking (PR #140762)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Wed May 21 03:44:22 PDT 2025
================
@@ -59,10 +59,24 @@ struct DemangledNameInfo {
/// \endcode
std::pair<size_t, size_t> QualifiersRange;
+ /// Indicates the [start, end) of the function's prefix. This is a
+ /// catch-all range for anything that is not tracked by the rest of
+ /// the pairs.
+ std::pair<size_t, size_t> PrefixRange;
+
+ /// Indicates the [start, end) of the function's suffix. This is a
+ /// catch-all range for anything that is not tracked by the rest of
+ /// the pairs.
+ std::pair<size_t, size_t> SuffixRange;
+
/// Returns \c true if this object holds a valid basename range.
bool hasBasename() const {
- return BasenameRange.second > BasenameRange.first &&
- BasenameRange.second > 0;
+ return BasenameRange.second > BasenameRange.first;
----------------
Michael137 wrote:
Can you elaborate why this was needed?
https://github.com/llvm/llvm-project/pull/140762
More information about the lldb-commits
mailing list