Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342519 - Toggle refactoring: misleading error message
Summary: Toggle refactoring: misleading error message
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Marc-André Laperle CLA
QA Contact: Emanuel Graf CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 04:58 EDT by Emanuel Graf CLA
Modified: 2011-04-12 13:23 EDT (History)
2 users (show)

See Also:


Attachments
Toggle Function, mutliple declarators message patch (3.69 KB, patch)
2011-04-12 12:47 EDT, Marc-André Laperle CLA
malaperle: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuel Graf CLA 2011-04-12 04:58:10 EDT
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
Comment 1 Marc-André Laperle CLA 2011-04-12 12:47:08 EDT
Created attachment 193073 [details]
Toggle Function, mutliple declarators message patch

Patch. Also added missing copyrights in messages.properties.
Comment 2 Marc-André Laperle CLA 2011-04-12 12:50:03 EDT
Fixed in HEAD.