cpp header organizer, improved patch

Felix Berger bflat1 at gmx.net
Mon Apr 11 22:27:02 UTC 2005


On Monday 11 April 2005 15:35, Matt Rogers wrote:
> ooooh, is this similar to the feature that the kde-emacs scripts have where
> you can put the cursor over a class name, and it'll include the appropriate
> header file?

It searches for all used types in the current file, tries to ascertain if it 
suffices to add a forward declaration for the type, adds the necessary 
forward declarations and include files and also makes sure not to duplicate 
any entries.

It depends on a newly built pcs store for the classes it should include since 
it needs the include directory of the pcs store as prefix for all possible 
includes. See patch.

There is still room for improvements since expressions like

kapp->dcopClient()->call(...)

are not recognized yet, i.e. dcopclient is not included, although it would 
have been included in this case:

DCopClient* client = kapp->dcopClient();
client->call(...)

Felix

-- 
Try Debian GNU/Linux!
http://www.felix.beldesign.de/




More information about the KDevelop-devel mailing list