Is it me, or does auto suggest / complete not work for structs if they are typedef'd in a namespace?
Thanks
Auto suggest and complete?
-
- CodeLite Enthusiast
- Posts: 11
- Joined: Tue Oct 26, 2010 2:06 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
- 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?
Please post a code snippet that demonstrates the problem
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 11
- Joined: Tue Oct 26, 2010 2:06 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Auto suggest and complete?
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:
then autocomplete works. However, like this:
it doesnt, though both seem legal constructs. It seems to be to do with the tag?
Thanks
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;
}
}
Code: Select all
namespace ae{
namespace audio{
typedef struct {
WORD wFormatTag;
WORD nChannels;
DWORD nSamplesPerSec;
DWORD nAvgBytesPerSec;
WORD nBlockAlign;
WORD wBitsPerSample;
WORD cbSize;
}WAVEFORMATEX;
}
}
Thanks
-
- CodeLite Enthusiast
- Posts: 37
- Joined: Fri Oct 01, 2010 8:32 pm
- Genuine User: Yes
- IDE Question: all
- Contact:
Re: Auto suggest and complete?
codelite doesn't support this declarationstyle for codecompletion.
greetz,
nem
greetz,
nem