Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
New code completion remarks/issues
blueshake:
--- Quote from: mmkider on October 05, 2009, 12:03:38 pm ---Hi
I found a issue.
if stest is a struct;
stest->b. ; //this is fail. Tip window can't pop up c
stest.b.c ; //this is ok .
--- End quote ---
Full test codes,please.
mmkider:
--- Code: ---
typedef struct U_TKey{
int u32Key;
}U_KEYPAD_TWOKEY;
typedef struct S_KeyPad{
U_KEYPAD_TWOKEY unTKey;
void * pParam;
char u8CallBack_Type;
char u8DebounceClk;
char u8IntNum;
char u8TriggerType;
}S_KEYPAD_CLASS;
--- End code ---
It's ok
--- Code: ---S_KEYPAD_CLASS sTest;
sTest.unTKey.u32Key=10;
--- End code ---
It's fail.
--- Code: ---
S_KEYPAD_CLASS *psTest;
psTest->unTkey. // can't popup u32Key
--- End code ---
MortenMacFly:
This works fine here:
--- Code: --- S_KEYPAD_CLASS *psTest;
psTest->unTKey.
--- End code ---
("u32Key" will be suggested).
...version, patform etc?
mmkider:
--- Quote from: MortenMacFly on October 05, 2009, 01:56:52 pm ---This works fine here:
--- Code: --- S_KEYPAD_CLASS *psTest;
psTest->unTKey.
--- End code ---
("u32Key" will be suggested).
...version, patform etc?
--- End quote ---
I use codeblocks svn 5839 in the WinXp sp2.
In my system, "u32Key" will not be suggested.
--- Code: ---S_KEYPAD_CLASS *psTest;
psTest->unTkey. // can't popup u32Key
--- End code ---
blueshake:
Work here,too.see the attachment.
Sorry to say that,but tktypedef don't work again.ollydbg is right,something is wrong with codes below,if I comment them,worked.!!!!!!!!
--- Code: --- if (token->m_TokenKind == tkTypedef)
{
std::queue<ParserComponent> type_components;
BreakUpComponents(parser, token->m_ActualType, type_components);
while(!components.empty())
{
ParserComponent comp = components.front();
components.pop();
type_components.push(comp);
}
#if DEBUG_CC_AI
if (s_DebugSmartSense)
#if wxCHECK_VERSION(2, 9, 0)
Manager::Get()->GetLogManager()->DebugLog(F(_T("Replacing %s to %s"), token->m_Name.wx_str(), token->m_ActualType.wx_str()));
#else
Manager::Get()->GetLogManager()->DebugLog(F(_T("Replacing %s to %s"), token->m_Name.c_str(), token->m_ActualType.c_str()));
#endif
#endif
return FindAIMatches(parser, type_components, result, parentTokenIdx, noPartialMatch, caseSensitive, use_inheritance, kindMask, search_scope);
}
}
--- End code ---
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version