Intellisense

Alvin alvinbeach at gmail.com
Tue Jun 19 16:10:51 BST 2007


On Tuesday 19 June 2007 11:56:51 Arijit Das wrote:
> Oh yes, it has typedef like this:
>
> // Header
> typedef struct abdc_tag {
>     int a;
>     int b;
> } abcd;
>
>
> // C file
>
> abcd x;
> x.    <<- No code completion/intellisense comes here
>
> Arijit
>
> On 6/19/07, Andreas Pakulat <apaku at gmx.de> wrote:
> > On 19.06.07 19:01:08, Arijit Das wrote:
> > > I am a noice in Kdevelop...so, needed a quick help.
> > >
> > > I noticed that when a 'C structure' is defined in a header file, say
> > > "a.h", which I am including in my "a.c" file, intellisense doesn't
> > > work while using that structure (defined in the header file) in my a.c
> > > file.
> > >
> > > Do I need to do anything to make that work? Shouldn't that pick that
> > > info automatically from the header file?
> >
> > Only if both files are part of your project and if you don't play around
> > with typedefs or macros too much.
> >
> > Andreas

I tend to turn on "Preprocess included headers". I find this works very well.

1. Project->Project Options->C++ Support->Code Completion
2. Incremental Parsing section: Select "Preprocess included headers"

Try and see if that works. If it doesn't work, try restarting KDevelop.

Alvin





More information about the KDevelop mailing list