News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

function tooltip

Started by killerbot, January 25, 2010, 12:10:08 PM

Previous topic - Next topic

killerbot

Assume the following code :


ISerialCommunicator* Comm = new SerialCommunicator(
Engine->s_ComPort, m_BaudRate, m_DoCommunicationLogging, "");


When mouse hovering over 'SerialCommunicator' one does NOT get the tooltip of the constructor of this class, but a tooltip saying :
Quote
class SerialCommunicator {...}

Is this done on purpose or is this a mistake ?



ollydbg

I think there's mistake of the parser.

class SerialCommunicator{
public:
      void SerialCommunicator(XXXX);
};


For these kind of statement, there's two tokens (the class declaration and the constructor) should be added. So, the function tooltip should match two entries in the token tree.

You can select the "SerialCommunicator", and right click, and select context menu: see deceleration of "SerialCommunicator".
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.