Bug 138607 - Functions to keep .h and .cpp consistent
Summary: Functions to keep .h and .cpp consistent
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 3.0.2   Edit
Hardware: PC Linux
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 175209 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-26 08:07 EDT by Onno Garms CLA
Modified: 2020-09-04 15:21 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Onno Garms CLA 2006-04-26 08:07:02 EDT
C and C++ have the feature of separating deklaration and implementation, one in the .h file, the other in the .cpp-file.

It would be nice to have funcions to manage this correspondence.
1.) Create function stub.
    After declaring a function in the .h file, there should be a function
    to create a corresponding stub in the cpp file.
    This involves more than copy&paste for class member functions and templates.
    Only add if the function does not yet exist in the cpp file.
    This should be possible for one function at a time, but also for
    all functions at once.
2.) Conversely, if a function or method has been implemented in the cpp file,
    allow automatic addition to the .h file. Only add if not yet there.
3.) It should be possible to change the parameter list or return value of a
    function in the .h and the .cpp file in one step (maybe Refactor->Change
    parameters like Refactor->Rename)

I don't know much about the CDT architecture, so I had to make a guess on the component.
Comment 1 Markus Schorn CLA 2008-04-16 10:35:50 EDT
*** Bug 175209 has been marked as a duplicate of this bug. ***
Comment 2 Markus Schorn CLA 2008-04-16 10:37:56 EDT
This is related to bug 226642. Beyond that it asks for the reverse direction.