GNOME Bugzilla – Bug 704868
[PATCH] Create getter for private members
Last modified: 2020-11-07 12:12:50 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.
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.