Bug 312132 - KDevelop fails to autocomplete std::shared_ptr members
Summary: KDevelop fails to autocomplete std::shared_ptr members
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-23 20:18 UTC by Valentyn Pavliuchenko
Modified: 2018-11-19 08:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!