Author Topic: A suggestion for CC  (Read 3226 times)

Offline jixiangqd

  • Single posting newcomer
  • *
  • Posts: 8
A suggestion for CC
« on: April 20, 2011, 05:41:54 pm »
With using Code::Blocks I find that Code Complete cannot help me to convert "." to "->" while before it there is a pointer.
But in VC with Visual Assist X, it can be done automaticly.
Or,can it be done with some settings?Help me do the setting!Thank you!

P.S:I'm using the newest nightly release!
« Last Edit: April 20, 2011, 05:49:51 pm by jixiangqd »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: A suggestion for CC
« Reply #1 on: April 21, 2011, 02:42:26 am »
No such setting here, and We have discussed this kind of conversion before. You can search the forum, and there are many objections.

PS: unless CC will do a Full parse like a compiler, we can't get full precise type information of a variable. Even Visual Assist will report some fake errors, Visual assist's parser is quite good though.
« Last Edit: April 21, 2011, 02:44:56 am by ollydbg »
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 jixiangqd

  • Single posting newcomer
  • *
  • Posts: 8
Re: A suggestion for CC
« Reply #2 on: April 21, 2011, 03:21:02 pm »
No such setting here, and We have discussed this kind of conversion before. You can search the forum, and there are many objections.

PS: unless CC will do a Full parse like a compiler, we can't get full precise type information of a variable. Even Visual Assist will report some fake errors, Visual assist's parser is quite good though.
Thanks for your answer.