[Lldb-commits] [lldb] [lldb] Add lookup by name to SBValue.child (PR #118814)

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 5 16:06:47 PST 2024


jimingham wrote:

Unfortunately, this is legal C++:

```
class Foo {
public:
  int m_intvar = 10;
};

class Bar : Foo {
public:
  int Foo = 100;
};

int
main()
{
  Bar myBar;
  return myBar.Foo;
}

```

So the lookup by name of Foo wouldn't be unique here.

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


More information about the lldb-commits mailing list