[lldb-dev] Display of reference parameters

Johan Engelen via lldb-dev lldb-dev at lists.llvm.org
Sun Aug 27 11:59:25 PDT 2017


Hi all,
 Consider this code:
```
void foo(int& x)
{
    ++x;
    // Breakpoint
}
```

Reference parameter `x` is shown like this:
```
(lldb) frame variable
(int &) x = 0x00007fff5fbff5e8 (&x = 33)
```

Should this perhaps be improved? (I find the "&x = 33" a little confusing)
Some ideas:
A.    (int &) x = 0x00007fff5fbff5e8 (*x = 33)
B.    (int &) x = 33 (&x = 0x00007fff5fbff5e8)

Cheers,
  Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170827/680dc872/attachment.html>


More information about the lldb-dev mailing list