Author Topic: CB have code refactoring plugin?  (Read 5034 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
CB have code refactoring plugin?
« on: June 05, 2009, 03:55:06 pm »
Hi.
Can you tell me, what's plugin for rename class/method/member?
thanks.

mariocup

  • Guest
Re: CB have code refactoring plugin?
« Reply #1 on: June 05, 2009, 04:12:31 pm »
Hi Loaden,

currently there is no plugin for refactoring within Code::Blocks.

Bye

Mario

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: CB have code refactoring plugin?
« Reply #2 on: June 05, 2009, 05:33:04 pm »
Hi Loaden,

currently there is no plugin for refactoring within Code::Blocks.

Bye

Mario
Thanks!

Offline drac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: CB have code refactoring plugin?
« Reply #3 on: June 05, 2009, 07:00:55 pm »
It might have if somebody would integrate Mozilla's Pork

I've mentioned this also in the CodeCompletion Redesign forum http://forums.codeblocks.org/index.php/topic,10656.0.html

Cheers!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CB have code refactoring plugin?
« Reply #4 on: June 27, 2009, 04:06:26 pm »
It might have if somebody would integrate Mozilla's Pork

I've mentioned this also in the CodeCompletion Redesign forum http://forums.codeblocks.org/index.php/topic,10656.0.html

Cheers!

From: https://developer.mozilla.org/en/Installing_Pork
Code
Pork uses GCC to generate .i/.ii files (preprocessed C/C++) for Elsa to parse.
For code completion, I think it is a bit slow....
For code refactor( like rename some function prototype, variable name), it may work perfectly. :D
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.