Community
Participate
Working Groups
Overview: A Quick Fix to fix the "Method could not be resolved"-problem by adding the method to the class. Steps to reproduce: 1. Write a method call via object or pointer, for example "x.method()" where x is of type X, and X is a C++ class or struct. 2. "method" is underlined in red, place the marker there and press Ctrl-1. Actual result: The proposals "Rename in file" and "Rename in workspace" are displayed. Result after enhancement: "Create this method." is also displayed. If the user selects this option a refactoring wizard with preview option starts. On perform finish the method is added to class X. The return type, number of parameters and parameter types of the new method are infered from the method call. The user can supply the parameter names. (I have implemented a solution for this as a plug-in but would also like to have it included in CDT)
(In reply to comment #0) Very nice. Please put the patch implementing this feature in CDT to Gerrit (http://wiki.eclipse.org/CDT/git#Using_Gerrit_for_CDT).
Must I sign the contributor license agreement? I have a copied a couple of functions from Another eclipse Project and added comments stating this in the code... but the CLA states 100% of the content must be authored by me?
While waiting for response i will actually go ahead and sign it and try to upload again. If there is problem with this i guess it will be solved in the Review process.
New Changes: https://git.eclipse.org/r/14214