Community
Participate
Working Groups
Overview: A Quick Fix to fix the "Type could not be resolved"-problem by creating the Class. Steps to reproduce: 1. Write the variable declaration "TestClass x;" where TestClass is a non-existent class. 2. "TestClass" 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 class" is also displayed, and if the user selects this option the class wizard is started with the class name, header file and source file fields filled in with "TestClass", "TestClass.h", "TestClass.cpp". (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) Nice feature. Please put the patch implementing this feature in CDT to Gerrit (http://wiki.eclipse.org/CDT/git#Using_Gerrit_for_CDT).
New Changes: https://git.eclipse.org/r/14214
New Gerrit change created: https://git.eclipse.org/r/63605
Gerrit change https://git.eclipse.org/r/63605 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=d3e933501eb387cbf2e1c9c211ec8fac358f817b
https://wiki.eclipse.org/CDT/User/NewIn90#Create_New_Class_-_Quick_Fix
Nice feature. However there seems to be a bug in the implementation, see: bug 507148