KDevelop's QMake Manager

Andreas Pakulat apaku at gmx.de
Tue Nov 21 00:22:41 UTC 2006


On 20.11.06 16:56:23, Steven T. Hatton wrote:
> On Sunday 19 November 2006 14:50, Andreas Pakulat wrote:
> > On 19.11.06 14:09:22, Steven T. Hatton wrote:
> > > But are there .h files that include those?  If there are, the rpp is
> > > probably picking them up that way.
> >
> > No, it's picking up the .h files that are "deeper" in the hierarchy.
> 
> That's really what I meant.  On my system those .h files #include the standard 
> headers.  It appears I was wrong however.  The rpp doesn't appear to recurse 
> through the #includes.  Understandably.  See 
> http://bugs.kde.org/show_bug.cgi?id=137644

I don't think I fully understand. However creating a PCS database for
/usr/include/c++/gcc4.x here works perfectly. Of course this might get
some unwanted stuff like gcj-header in. 

> > > Unfortunately there is a bunch of non-standard stuff such as java and
> > > javax
> > >
> > > >from gcj there as well.  It would be nice if we could specify individual
> > >
> > > files rather than directories.  That way we could list all the headers
> > > we're interested in, and have the PCS use the file to build the list.  I
> > > guess I can always put those files in my own directory in .h files that
> > > point back to the ones I'm interested in.  I don't recall if the old PCS
> > > would support that or not.  I had to stop using it because it made
> > > KDevelop crash.
> >
> > Code-Completion has been largely re-worked in 3.4, so you should try it
> > again. Also something like selecting such files would be a wishlist item
> > for KDevelop4, 3.4 is in feature freeze.
> 
> In a sense it's been there for a long time.  It was buried in details of 
> http://bugs.kde.org/show_bug.cgi?id=106379.  That's why I entered the new 
> item.

Aah, yeah. Changing that is something we should do for kdevelop4. 

> BTW, you mentioned that files that are known to the project would be added to 
> the code completion data.  What, exactly, does that mean?

Anything the projectmanager knows about. So all entries to SOURCES,
HEADERS, FORMS and so on in qmake projects are parsed by KDevelop and a
.pcs file is created from that in the top-level kdevelop dir for those.

>  For example, I can 
> generate a list of all 378 OSG header files.  How can I tell KDevelop about 
> these so that they are added to the code completion data?

You'd need to import the OSG headers into a subdir in your project and
put them into the HEADERS variable. 

This should work, unless the code-completion part later checks the
file-extension again...

Andreas

-- 
Keep it short for pithy sake.




More information about the KDevelop-devel mailing list