[Lldb-commits] [lldb] [lldb] upgrade HandleFrameFormatVariable callees to llvm::Expected (PR #144731)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 23 06:08:48 PDT 2025
================
@@ -74,24 +74,48 @@ struct DemangledNameInfo {
return BasenameRange.second > BasenameRange.first;
}
+ /// Returns \c true if `BasenameRange` is empty.
+ bool isBasenameEmpty() const {
+ return BasenameRange.first == BasenameRange.second;
----------------
charles-zablit wrote:
I agree that since we are calling `!hasX && !isEmpty` everywhere, me might just as well squash them. When doing so, the only problem I have noticed is that some tests break, such as when demangling `Zinvalid` which technically has no basename, but with this new implementation `hasBasename` returns true.
Overall, I still think it's best to collapse everything into one method like you suggested 👍
https://github.com/llvm/llvm-project/pull/144731
More information about the lldb-commits
mailing list