Author Topic: Suggest show function "type" instead of "actual type"  (Read 9025 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Suggest show function "type" instead of "actual type"
« 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]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Suggest show function "type" instead of "actual type"
« Reply #1 on: March 17, 2009, 02:10:50 am »
Solved. Patch file attachment.

[attachment deleted by admin]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Suggest show function "type" instead of "actual type"
« Reply #2 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]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.