[Lldb-commits] [lldb] [lldb] Improve type name parsing (PR #91586)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu May 9 06:13:21 PDT 2024


================
@@ -492,12 +494,37 @@ class Type : public std::enable_shared_from_this<Type>, public UserID {
 
   static int Compare(const Type &a, const Type &b);
 
+  // Represents a parsed type name coming out of GetTypeScopeAndBasename. The
+  // structure holds StringRefs pointing to portions of the original name, and
+  // so most not be used after the name is destroyed.
----------------
Michael137 wrote:

```suggestion
  // so must not be used after the name is destroyed.
```

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


More information about the lldb-commits mailing list