Auto suggest and complete?

CodeLite installation/troubleshooting forum
codetoad
CodeLite Enthusiast
Posts: 11
Joined: Tue Oct 26, 2010 2:06 am
Genuine User: Yes
IDE Question: c++
Contact:

Auto suggest and complete?

Post by codetoad »

Is it me, or does auto suggest / complete not work for structs if they are typedef'd in a namespace?

Thanks
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Auto suggest and complete?

Post by eranif »

Please post a code snippet that demonstrates the problem

Eran
Make sure you have read the HOW TO POST thread
codetoad
CodeLite Enthusiast
Posts: 11
Joined: Tue Oct 26, 2010 2:06 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Auto suggest and complete?

Post by codetoad »

Hi Eran.

Thanks for replying. I'm not sure if its me, but I have found a reason for it:

if you typedef like this:

Code: Select all

	   namespace ae{
		   namespace audio{
				   typedef struct WAVEFORMATEX{
            WORD  wFormatTag;
            WORD  nChannels;
            DWORD nSamplesPerSec;
            DWORD nAvgBytesPerSec;
            WORD  nBlockAlign;
            WORD  wBitsPerSample;
            WORD  cbSize;
        }WAVEFORMATEX;   
		   
		   }
	   }
then autocomplete works. However, like this:

Code: Select all

	   namespace ae{
		   namespace audio{
				   typedef struct {
            WORD  wFormatTag;
            WORD  nChannels;
            DWORD nSamplesPerSec;
            DWORD nAvgBytesPerSec;
            WORD  nBlockAlign;
            WORD  wBitsPerSample;
            WORD  cbSize;
        }WAVEFORMATEX;   
		   
		   }
	   }
it doesnt, though both seem legal constructs. It seems to be to do with the tag?

Thanks
nemesis
CodeLite Enthusiast
Posts: 37
Joined: Fri Oct 01, 2010 8:32 pm
Genuine User: Yes
IDE Question: all
Contact:

Re: Auto suggest and complete?

Post by nemesis »

codelite doesn't support this declarationstyle for codecompletion.

greetz,
nem
Post Reply