Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: ollydbg on March 16, 2009, 03:27:11 pm

Title: Suggest show function "type" instead of "actual type"
Post by: ollydbg on March 16, 2009, 03:27:11 pm
I found that each token keep two member variables.

Code
        newToken->m_Type = readType;
        newToken->m_ActualType = actualType;

For example a function
Code
const wxString& GetFilename() const { return m_Filename; }
will show only "wxString" in the symbol navigator tree. (see the screen shot below).

I know that m_ActualType is used for "code completion", but I do suggest the "full type" should be shown in the navigator tree instead of a truncated "actual type".

Any Comments? Thanks for reading. :D




[attachment deleted by admin]
Title: Re: Suggest show function "type" instead of "actual type"
Post by: ollydbg on March 17, 2009, 02:10:50 am
Solved. Patch file attachment.

[attachment deleted by admin]
Title: Re: Suggest show function "type" instead of "actual type"
Post by: ollydbg on March 17, 2009, 04:13:59 am
By the way:
The patch in the thread to deal with the Opencv
http://forums.codeblocks.org/index.php/topic,10162.0.html
will be improved by change to:

Code
m_Str= token + arg;

So ,the full Opencv function declaration will be shown in both tips and navigator tree. See the screen shot below, but it seems that Printf() will show a __mingwXXXXX befor int.



[attachment deleted by admin]