Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
vector<int> is OK, but string or wstring no-work.
ollydbg:
Here is improved testString.txt, I have test in an old rev 5988, it seems the last part of file was skipped.
Eg, You can't find the declaration of this function.
--- Code: --- inline wstring
to_wstring(long long __val)
{ return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
4 * sizeof(long long),
L"%lld", __val); }
--- End code ---
You can enable PARSERTHREAD_DEBUG_OUTPUT 1 to see the log.
ollydbg:
I'm planning adding a variable to store the Template argument in the ParserThread.cpp.
Some thing like below:
--- Code: --- if (token == ParserConsts::kw_template)
{
m_Tokenizer.SetState(tsTemplateArgument);
m_TemplateArgument = m_Tokenizer.GetToken();
m_Str.Clear();
token = m_Tokenizer.GetToken();
TRACE(_T("DoParse() : Reading Template argument='%s'"), m_TemplateArgument.wx_str());
m_Tokenizer.SetState(tsSkipUnwanted);
}
--- End code ---
So, when we are about to add some tokens like "class" or "function", we can check m_TemplateArgument. if it is an wxEmptyString, then the currently token is a "normal" token, if not, the current token is a template token.
Also, I suggest that in the Token.h.
we can add a member to the Token class. like:
--- Code: ---class Token : public BlockAllocated<Token, 10000>{
...
wxString m_TemplateArgument;
}
--- End code ---
Any comments?
blueshake:
If you do this, do not forget to change the codes about mouse hover tip too. :D
MortenMacFly:
--- Quote from: ollydbg on January 12, 2010, 03:49:54 am ---I'm planning adding a variable to store the Template argument in the ParserThread.cpp.
[...]
--- End quote ---
Sounds good.
--- Quote from: ollydbg on January 12, 2010, 03:49:54 am ---Also, I suggest that in the Token.h.
we can add a member to the Token class. like:
[...]
--- End quote ---
For what purpose? Displaying the template arguments?
ollydbg:
--- Quote ---For what purpose? Displaying the template arguments?
--- End quote ---
Yes, also, if we need to do some template instantiation, we need to store the template argument.
Currently, Further more, if a "class template" Token, we can use the "argument" field to store the template argument. But if it is a "function template" Token, we need another field. :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version