Bug 312132

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: git master   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Valentyn Pavliuchenko 2012-12-23 20:18:15 UTC
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.
Comment 1 Valentyn Pavliuchenko 2012-12-23 20:54:09 UTC
Additional information: KDevelop 4.3.1 from Debian repos seems to not have this issue.
Comment 2 Milian Wolff 2013-03-21 12:54:09 UTC
Cool, just tried it on master and it seems to magically work again :) 

I use: gcc (GCC) 4.7.2

Can anyone confirm?
Comment 3 Milian Wolff 2013-03-21 12:54:54 UTC
Doesn't work for unique_ptr though...
Comment 4 Andrew Crouthamel 2018-11-11 04:25:20 UTC
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!
Comment 5 Valentyn Pavliuchenko 2018-11-18 19:42:56 UTC
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.
Comment 6 Valentyn Pavliuchenko 2018-11-18 19:43:35 UTC
Moving back to reported as requested.
Comment 7 Kevin Funk 2018-11-19 08:25:40 UTC
Thanks for the feedback!