Summary: | Completion helper removes default values in function declaration | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Piotr Mierzwinski <piotr.mierzwinski> |
Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | piotr.mierzwinski |
Priority: | VHI | Keywords: | release_blocker |
Version: | 4.90.90 | ||
Target Milestone: | 5.0.0 | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdevelop/ba2ecbaeba206644c1134569e6da40047096487a | Version Fixed In: | 5.0.0 |
Description
Piotr Mierzwinski
2015-12-02 01:53:43 UTC
kdevelop and kdevplatform cloned at 30.11.2015 I've seen this myself and it's due to missing API in libclang, we'll have to tokenize probably to find the default arguments and insert them manually. Also, we should add proper API upstream to leverage it in the future for this use-case. Git commit ba2ecbaeba206644c1134569e6da40047096487a by Milian Wolff. Committed on 04/12/2015 at 17:06. Pushed by mwolff into branch '5.0'. Keep default arguments when adapting signature from definition side. Simplify the code, fix the bug, and also keep default arguments when we prepend an argument. In such cases, default-initialize the new arg with `= {} /* TODO */`. FIXED-IN: 5.0.0 M +11 -6 languages/clang/codegen/adaptsignatureassistant.cpp M +26 -0 languages/clang/tests/test_assistants.cpp http://commits.kde.org/kdevelop/ba2ecbaeba206644c1134569e6da40047096487a |