Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
typedef to class?
MortenMacFly:
--- Quote from: blueshake on August 12, 2009, 02:10:20 pm ---
--- Quote ---Oops - that makes me wonder. Because the used to work...?!
--- End quote ---
sorry! I don't know it doesn't work before.
--- End quote ---
What I meant is that we did several modifications to CC that such constructs were parsed correctly (~1 year back). And in fact it worked! som something we applied in the meantime broke this feature (again).
[/quote]
--- Quote from: blueshake on August 12, 2009, 02:10:20 pm ---by the way . what does it mean of "Oops".
--- End quote ---
Nothing, really. It's a word you shout out if something happens you don't expect.
blueshake:
@MortenMacFly
i think the cc can use the followed patch to make codes below parsed correctly.
--- Code: ---typedef class sStruct tStruct;
--- End code ---
--- Code: ---Index: parserthread.cpp
===================================================================
--- parserthread.cpp (revision 5731)
+++ parserthread.cpp (working copy)
@@ -1249,6 +1337,63 @@
struct HiddenStruct yy;
*/
+ if (m_ParsingTypedef)
+ {
+ m_Tokenizer.UngetToken();
+ break;
+ }
if (TokenExists(current, m_pLastParent, tkClass))
{
if (!TokenExists(next, m_pLastParent, tkVariable) )
--- End code ---
--- Code: ---+ Token* tdef = DoAddToken(tkClass, components.front(), lineNr, 0, 0, args);
- //Token* tdef = DoAddToken(tkTypedef, components.front(), lineNr, 0, 0, args);
--- End code ---
blueshake:
see the attachment,
[attachment deleted by admin]
Navigation
[0] Message Index
[*] Previous page
Go to full version