[Lldb-commits] [lldb] [LLDB] added getName method in SBModule (PR #150331)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 4 07:24:09 PDT 2025


https://github.com/labath commented:

The code looks good, but I have a problem with the docstring, as it captures none of the subtlety around this function (which was discussed in the other thread).

I'd recommend something like:
"If this Module represents a part of a larger file, returns the name of that part. Otherwise, returns nullptr."

The test is also pretty weak. Basically, all it does is verify that the result is a string. I'd suggest looking at TestBSDArchives.py. I think it should be fairly easy to extend that to cover this function as well -- just take one of the SBModuleSpecs floating around and use that to create SBModule (then call this function).

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


More information about the lldb-commits mailing list