Bug 336821 - -> is corrected to . for type inferred shared_ptr
Summary: -> is corrected to . for type inferred shared_ptr
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.6.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-28 06:13 UTC by Dorin Lazăr
Modified: 2018-11-12 16:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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