Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: killerbot on January 25, 2010, 12:10:08 pm

Title: function tooltip
Post by: killerbot on January 25, 2010, 12:10:08 pm
Assume the following code :

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 ?


Title: Re: function tooltip
Post by: ollydbg on January 25, 2010, 02:38:25 pm
I think there's mistake of the parser.
Code
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".