Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Bad completion of destructor
Folco:
I think I get a real issue this time ^^
--- Code: ---class Abc
{
Abc ();
~Abc ();
};
Abc::~|
--- End code ---
In the completion box, if I select ~Abc, then the line is "Abc::~~Abc". It would be better to have "Abc::~Abc".
Jenna:
--- Quote from: Folco on November 29, 2010, 06:50:47 pm ---I think I get a real issue this time ^^
--- Code: ---class Abc
{
Abc ();
~Abc ();
};
Abc::~|
--- End code ---
In the completion box, if I select ~Abc, then the line is "Abc::~~Abc". It would be better to have "Abc::~Abc".
--- End quote ---
Confirmed on linux, it only works correctly, if cc kicks in after the second colon and you chose ~Abc.
If I cancel cc and type ~ cc does not kick in and if I force it with Ctrl+Space, it does not show me the correct choice, if I force cc after typing Abc::~A, it shows only the class Abc (and some other tokens, that begin with "a" or "A"), not the constructor or destructor.
Folco:
Oops, forgotten to say that I get that with Kubuntu 64b, svn debugger branch compiled today.
ollydbg:
--- Quote from: jens on November 29, 2010, 07:25:13 pm ---
--- Quote from: Folco on November 29, 2010, 06:50:47 pm ---I think I get a real issue this time ^^
--- Code: ---class Abc
{
Abc ();
~Abc ();
};
Abc::~|
--- End code ---
In the completion box, if I select ~Abc, then the line is "Abc::~~Abc". It would be better to have "Abc::~Abc".
--- End quote ---
Confirmed on linux, it only works correctly, if cc kicks in after the second colon and you chose ~Abc.
If I cancel cc and type ~ cc does not kick in and if I force it with Ctrl+Space, it does not show me the correct choice, if I force cc after typing Abc::~A, it shows only the class Abc (and some other tokens, that begin with "a" or "A"), not the constructor or destructor.
--- End quote ---
True, the reason is:
--- Code: ---Abc::~A|<------------caret here
--- End code ---
backward search from the caret just stop after the "~", so this is the same as:
--- Code: --- A|<------------caret here
--- End code ---
So, as you said:
--- Quote ---it shows only the class Abc (and some other tokens, that begin with "a" or "A")
--- End quote ---
It seems Folco's problem is not the same as jens.
@Folco:
What is the exact step?
You use use the ctrl+space at the caret below?
--- Code: ---Abc::~|<-----------caret here
--- End code ---
Jenna:
--- Quote from: jens on November 29, 2010, 07:25:13 pm ---If I cancel cc and type ~ cc does not kick in and if I force it with Ctrl+Space, it does not show me the correct choice
--- End quote ---
in this case it shows only tokens from the global namespace, nneither the constructor or destructor nor the class itself.
So it seems the tilde is not recognized correctly (after it is typed).
The token itself is known, because cc kicks in correctly after the second colon and shows Abc and ~Abc.
If cc is not cancelled after typing the colon and you type the tilde (~), the selection in the cc-box jumps correctly to ~Abc, but if you now hit enter it comes to the error described by Folco.
I think it's the same cause for both issues.
Navigation
[0] Message Index
[#] Next page
Go to full version