Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse Oxygen: How to have indexer follow C++11 std::shared_ptr<>
Eclipse Oxygen: How to have indexer follow C++11 std::shared_ptr<> [message #1784551] Thu, 29 March 2018 09:39
Francesco Montorsi is currently offline Francesco MontorsiFriend
Messages: 1
Registered: March 2018
Junior Member
Hi,
I'm using Eclipse Oxygen.3 and I have the following pseudo code:

class mytest
{
public:
...

void mymethod() {}
};

then I have code that says:

std::shared_ptr<mytest> p = std::make_shared<mytest>();
p->mymethod();

I found that Eclipse is unable to "trace back" the p->mymethod(); line to the mytest::mymethod routine. I.e. if I place the cursor over that p->mymethod() and hit F3 (open declaration) Eclipse cannot find the reference.

Is this a bug or am I missing some settings?

Note: opening other declarations works just fine. Also opening memory.h file I see that eclipse highlights the "#if __cplusplus >= 201103L" section (I had to add -std=c++11 to the "GCC compiler settings provider" in my Project options).

Thanks,
Francesco
Previous Topic:CDT Plugin-in Development
Next Topic:eclipse start up issues :eclipse-cpp-oxygen-R-linux-gtk-x86_64.tar.gz
Goto Forum:
  


Current Time: Thu Jan 23 07:40:42 GMT 2025

Powered by FUDForum. Page generated in 0.02865 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top