Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
unnamed struct parse problem (branch version)
(1/1)
blueshake:
hello :
I found that codecompletion would not work if variant's type is unnamed struct .
code like this :
--- Code: ---struct
{
int x;
int y;
}cls;
int main()
{
cls.//not work here.
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
here is the patch:
--- Code: ---Index: parserthread.cpp
===================================================================
--- parserthread.cpp (revision 5696)
+++ parserthread.cpp (working copy)
@@ -1228,7 +1228,7 @@
{
static size_t num = 0;
wxString unnamedTmp;
- unnamedTmp.Printf(_T("Unnamed-%s-%d"),
+ unnamedTmp.Printf(_T("Unnamed%s%d"),
ct == ctClass ? _T("Class") :
ct == ctUnion ? _T("Union") :
_T("Struct"), num++);
--- End code ---
[attachment deleted by admin]
ollydbg:
Tested and works fine!
Thanks for the contribution.
By the way, can you explain why we should use Unnamed%s%d instead of Unnamed-%s-%d.
blueshake:
the - will affec the actual type .see the attachment .
[attachment deleted by admin]
ollydbg:
Ok, I know.
By the way, I found a bug in the wxAUI, it seems the edit caret flickes in the wrong place.
see here:
blueshake:
I don't catch the bug . :(
but I catch this .I found the key word will show twice in codecompletion in branch . :?
[attachment deleted by admin]
Navigation
[0] Message Index
Go to full version