| Summary: | KDevelop fails to autocomplete std::shared_ptr members | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Valentyn Pavliuchenko <valentyn.pavliuchenko> |
| Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aleixpol, mail |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Additional information: KDevelop 4.3.1 from Debian repos seems to not have this issue. Cool, just tried it on master and it seems to magically work again :) I use: gcc (GCC) 4.7.2 Can anyone confirm? Doesn't work for unique_ptr though... Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone! I followed my original steps to repro and I see this working good with KDevelop 5.2.4. So this bug seems to be fixed now. Moving back to reported as requested. Thanks for the feedback! |
Steps to reproduce: 1. Create a project with C++11 support by using the following CMakeLists.txt: project(test_bug) add_executable(test_bug main.cpp) install(TARGETS test_bug RUNTIME DESTINATION bin) set_target_properties(test_bug PROPERTIES COMPILE_FLAGS "-std=c++0x") 2. Use this code as main.cpp: #include <memory> class test { public: void doSome() { } }; int main(int, char**) { std::shared_ptr<test> obj; obj->doSome(); } 3. The code compiles ok. But doSome() is not highlighted, trying to autocomplete after obj. and obj-> gives no results. No popup is shown when you hover mouse over doSome(). Reproducible: Always Using git version of KDevelop (4.4.60) and KDevPlatform (1.4.60). Checkout from 2012/12/16. Found on Debian testing with GCC 4.7.2.