[Lldb-commits] [lldb] [lldb][Formatters] Add --pointer-match-depth option to `type summary add` command. (PR #138209)
Zequan Wu via lldb-commits
lldb-commits at lists.llvm.org
Fri May 2 11:54:31 PDT 2025
================
@@ -96,6 +97,8 @@ class FormattersMatchCandidate {
bool DidStripTypedef() const { return m_flags.stripped_typedef; }
+ uint32_t GetPtrStrippedDepth() const { return m_ptr_stripped_depth; }
----------------
ZequanWu wrote:
I meant this `FormattersMatchCandidate` has been stripped # of pointers from its original type. `m_ptr_stripped_depth` is from `FormatManager::GetPossibleMatches`. That's after we stripped the # of pointers from a variable. For `int**`, after we recurse into `GetPossibleMatches` twice, we have `int` and stripped depth being 2.
https://github.com/llvm/llvm-project/pull/138209
More information about the lldb-commits
mailing list