https://bugs.kde.org/show_bug.cgi?id=369546

Peter Ped Helcmanovsky <p...@7gods.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p...@7gods.org

--- Comment #2 from Peter Ped Helcmanovsky <p...@7gods.org> ---
Created attachment 119648
  --> https://bugs.kde.org/attachment.cgi?id=119648&action=edit
Wrong default arguments in code browser help

I have very likely the same issue, attaching screenshot as well, the on-hover
help window and code browser shows wrong default argument values.

Actually I was wondering where it even picks such values, then I got some
suspicion, and modified the original:
`void BinIncFile(char* fname, int offset = 0, int length = INT_MAX);` (being
parsed by KDevelop as `void BinIncFile(char* fname, int offset, int length =
0);` )

to `void BinIncFile(char* fname, int offset = 12, int length = INT_MAX);` and
it got immediately updated in code browser to `void BinIncFile(char* fname, int
offset, int length = 12);`

I.e. it looks to me the Code browser has some +-1 index issue to assign default
value to correct argument. Maybe it's just trivial "off by 1" typo? (at first I
was suspecting cache holding old data, but clearing cache didn't help, and
after this 0 -> 12 test it's obvious caching and parsing itself does refresh
data well, but either stores wrong data, or shows them in wrong way).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to