[Lldb-commits] [lldb] [lldb] add TemplateRange and NameQualifiersRange to DemangledNameInfo (PR #150999)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 4 03:58:13 PDT 2025


================
@@ -92,6 +92,10 @@ void TrackingOutputBuffer::finalizeStart() {
   if (NameInfo.BasenameRange.second == 0)
     NameInfo.BasenameRange.second = getCurrentPosition();
 
+  if (NameInfo.BasenameRange.second != NameInfo.ArgumentsRange.first)
----------------
Michael137 wrote:

Lets add a comment
```suggestion
  // There is something between the basename and the start of the function arguments.
  // Assume those are template arguments (which *should* be true for C++ demangled names, but
  // this assumption may change in the future, in which case this needs to be adjusted).
  if (NameInfo.BasenameRange.second != NameInfo.ArgumentsRange.first)
```

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


More information about the lldb-commits mailing list