cpp header organizer, improved patch

Matt Rogers mattr at kde.org
Tue Apr 12 04:04:03 UTC 2005


On Monday 11 April 2005 03:26 pm, Felix Berger wrote:
> 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:
>

hehe, don't feel bad, emacs doesn't even recognize those. :)

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


i'll try to get your patch applied later and provide some feedback this week. 
No guarantees though. :)

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050412/73018632/attachment.sig>


More information about the KDevelop-devel mailing list