SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: rowbearto on August 21, 2019, 01:20:38 AM

Title: Problem finding correct class through std::unique_ptr<class>
Post by: rowbearto on August 21, 2019, 01:20:38 AM
This is an issue in v23.0.2 as well as in v24 beta2.

Look for whichclass.tar.gz on support.

Inside the README file are instructions to reproduce.

I'm using Linux x64, Centos 7.2, system gcc is 4.8.2, Slickedit v23.0.2.

FYI: The "ccls" code browser is able to do this correctly: https://github.com/MaskRay/ccls
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: Dennis on September 04, 2019, 05:16:44 PM
Reproduced and looking into it.
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: Dennis on September 05, 2019, 04:33:33 PM
This will be fixed in the next build for v24.
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: rowbearto on September 05, 2019, 05:14:33 PM
Thanks Dennis!
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: rowbearto on September 06, 2019, 02:28:56 AM
Dennis: Did you test it with both types of unique_ptr/UniquePtr that I had in the sample project?
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: Dennis on September 06, 2019, 02:41:35 PM
I started down that path, but then stopped when I observed that UniquePtr was a wrapper for std::unique_ptr<>
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: rowbearto on September 06, 2019, 02:43:49 PM
Hmm, so not sure I understand. Our production code uses the UniquePtr instead of unique_ptr.

So will I have this issue using UniquePtr in my code instead of unique_ptr?

Can you verify your fix works also with UniquePtr, even though it is a wrapper can Slick handle the way the wrapper is done?
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: Dennis on September 06, 2019, 05:20:41 PM
I looked at it again and checked in a few more fixes for the next beta.  Works with your UniquePtr class now (or std::unique_ptr).
Title: Re: Problem finding correct class through std::unique_ptr<class>
Post by: rowbearto on September 06, 2019, 05:25:06 PM
Thanks Dennis!