Bug 336821

Summary: -> is corrected to . for type inferred shared_ptr
Product: [Applications] kdevelop Reporter: Dorin Lazăr <dorin.lazar>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: normal CC: andrew.crouthamel
Priority: NOR    
Version First Reported In: 4.6.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dorin Lazăr 2014-06-28 06:13:06 UTC
If I declare a shared_ptr and try to use it the editor lets me type -> without issues, however, when I use auto keyword to store a shared_ptr variable (e.g. auto x = Singleton::GetInstance()), if I try to type "x->" it gets automatically corrected to "x."

Reproducible: Always

Steps to Reproduce:
1. Declare a variable auto x = Singleton::GetInstance(); where Singleton::GetInstance() returns a shared_ptr
2. type x->



Actual Results:  
x-> gets corrected to x.

Expected Results:  
Completion options should pop-up, x-> should be unchanged.
Comment 1 Andrew Crouthamel 2018-11-12 02:58:29 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 2 Dorin Lazăr 2018-11-12 07:35:04 UTC
No longer reproduced with the latest Fedora build
Comment 3 Andrew Crouthamel 2018-11-12 16:27:09 UTC
Thanks for the update!