Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

std::endl : wrong completion

<< < (3/4) > >>

ollydbg:

--- Quote from: eranif on August 27, 2010, 08:02:19 am ---
--- Quote ---So, my personal question is: how does Codelite deal with this kind of problem??
--- End quote ---
I am not :D

--- End quote ---

OK, Now we have two ways:
One is like codelite does

--- Quote ---The same as codeblocks:
when user types std::endl -> codelite adds the () and shows the function tip. I never find it a problem since in codelite if I delete the open brace, the closing brace is also deleted

--- End quote ---
The other is special handling like: (endl, hex, dec, oct etc)

thanks. :D

ollydbg:
maybe, a better way is :

checking the ”<<" can accept a function pointer, then we can avoid adding "()" in this case. But it is too complex  :D

MortenMacFly:

--- Quote from: Loaden on August 27, 2010, 07:06:16 am ---Looks can only judge of the special?

--- End quote ---
No good. Imagine you have a local variable / method with this name than endl has a different meaning and appending the brackets might be desired. In addition: actually this codecompletion should not have any language specific elements at all... ;-)

Loaden:

--- Quote from: MortenMacFly on August 27, 2010, 08:12:57 am ---
--- Quote from: Loaden on August 27, 2010, 07:06:16 am ---Looks can only judge of the special?

--- End quote ---
No good. Imagine you have a local variable / method with this name than endl has a different meaning and appending the brackets might be desired. In addition: actually this codecompletion should not have any language specific elements at all... ;-)

--- End quote ---
Well, we still remain the same.

Loaden:

--- Quote from: ollydbg on August 27, 2010, 08:11:26 am ---maybe, a better way is :

checking the ”<<" can accept a function pointer, then we can avoid adding "()" in this case. But it is too complex  :D

--- End quote ---
I think this is not possible!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version