Community
Participate
Working Groups
In DeclaratorFinder.extractDeclarator, it returns null if it's a IASTSimpleDeclaration and it has multiple declarators but the message is "cannot work without declarator". I think a different message like "cannot work with multiple declarators" would be more accurate
Created attachment 193073 [details] Toggle Function, mutliple declarators message patch Patch. Also added missing copyrights in messages.properties.
Fixed in HEAD.
*** cdt cvs genie on behalf of mlaperle *** Bug 342519 - Toggle refactoring: misleading error message [*] DeclaratorFinder.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/DeclaratorFinder.java?root=Tools_Project&r1=1.1&r2=1.2 [*] messages.properties 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/messages.properties?root=Tools_Project&r1=1.1&r2=1.2 [*] Messages.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/Messages.java?root=Tools_Project&r1=1.1&r2=1.2