[lldb-dev] Should MyType's synthetic provider be instantiated for MyType* and MyType** ?

2021-07-19 Thread Vadim Chugunov via lldb-dev
Hi, I am observing that if I bind a synthetic provider to MyType, it will also be instantiated for MyType*, MyType**, etc, and the object passed into the constructor will be *of the pointer type*.I'd have expected the synthetic to either not be instantiated for pointers, or to be constructed on

Re: [lldb-dev] Should MyType's synthetic provider be instantiated for MyType* and MyType** ?

2021-07-19 Thread Jim Ingham via lldb-dev
You can control whether you want data-formatters on "class Foo" to also match "class Foo *" and "class Foo &" using the --skip-pointers and --skip-references options respectively. So this part is clearly is by design. As for what the formatter gets passed, your formatter has chosen to see values

Re: [lldb-dev] Should MyType's synthetic provider be instantiated for MyType* and MyType** ?

2021-07-19 Thread Vadim Chugunov via lldb-dev
On Mon, Jul 19, 2021 at 6:02 PM Jim Ingham wrote: > You can control whether you want data-formatters on "class Foo" to also > match "class Foo *" and "class Foo &" using the --skip-pointers and > --skip-references options respectively. > So this part is clearly is by design. > > As for what the f