After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704868 - [PATCH] Create getter for private members
[PATCH] Create getter for private members
Status: RESOLVED OBSOLETE
Product: anjuta
Classification: Applications
Component: plugins: language-support-c-cpp-java
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-25 13:35 UTC by Marco Diego Aurélio Mesquita
Modified: 2020-11-07 12:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Create getter patch (6.07 KB, patch)
2013-07-25 13:35 UTC, Marco Diego Aurélio Mesquita
none Details | Review

Description Marco Diego Aurélio Mesquita 2013-07-25 13:35:02 UTC
Created attachment 250115 [details] [review]
Create getter patch

The attached patch is currently proof of concept of "create getter" context menu entry for the c language support plugin. It is mainly posted to get comments on how it should be properly done.

Currently, a new context menu entry (Create Getter) is created. If the user right clicks a private member and then chooses the option "Create Getter" a new getter accessors method will be created in the end of the file. I still want to add more improvements and checks:
 - Check if the symbol is really a member of the corresponding private struct,
 - Check if the method already exists before creating it and
 - Add a prototype of the method in the header file.

If there's no problem with my approach, I'll clean up the patch, add the header prototyping and ask for its inclusion.

Comments please.
Comment 1 André Klapper 2020-11-07 12:12:50 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
old feature requests in Bugzilla which have not seen updates for many years.

If you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/anjuta/-/issues/

Thank you for reporting this issue and we are sorry it could not be implemented.