[Lldb-commits] [lldb] [Demangling] Refactor Demangler range tracking (PR #140762)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Tue May 27 06:48:00 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;
+  }
+
+  /// Returns \c true if this object holds a valid arguments range.
+  bool hasArguments() const {
----------------
charles-zablit wrote:

Yes, it's only used in the Apple fork, I have removed the change now.

https://github.com/llvm/llvm-project/pull/140762


More information about the lldb-commits mailing list