Page 1 of 1

Auto suggest and complete?

Posted: Tue Oct 26, 2010 2:09 am
by codetoad
Is it me, or does auto suggest / complete not work for structs if they are typedef'd in a namespace?

Thanks

Re: Auto suggest and complete?

Posted: Tue Oct 26, 2010 8:28 am
by eranif
Please post a code snippet that demonstrates the problem

Eran

Re: Auto suggest and complete?

Posted: Tue Oct 26, 2010 9:20 am
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

Re: Auto suggest and complete?

Posted: Sun Oct 31, 2010 4:25 pm
by nemesis
codelite doesn't support this declarationstyle for codecompletion.

greetz,
nem