Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC doesn't work inside case
(1/1)
hongruiqi:
CC doesn't work inside case
code:
typedef struct _me
{
int X;
int Y;
}me;
------------------------
int i=0;
switch(i)
{
case 0:
{
me temp;
temp. //here it doesn't work
}
.......
}
blueshake:
of course it don't work because it is not parsed.And it is not easy to do this.
Loaden:
Wow, Eclipse CDT work fine. :lol:
ollydbg:
See the code snippets in parserthread.cpp
--- Code: --- else if ( (token==ParserConsts::kw_while)
|| (token==ParserConsts::kw_if)
|| (token==ParserConsts::kw_do)
|| (token==ParserConsts::kw_else)
|| (token==ParserConsts::kw_for)
|| (token==ParserConsts::kw_switch) )
{
if (!m_Options.useBuffer || m_Options.bufferSkipBlocks)
SkipToOneOfChars(ParserConsts::semicolonclbrace, true);
else
m_Tokenizer.GetToken(); //skip args
m_Str.Clear();
}
--- End code ---
So, you know, all the statement under "switch" clause was skipped.
Navigation
[0] Message Index
Go to full version