Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any tools for refactoring C++ to conform to coding standards?

I need to process a large C++ codebase, renaming pretty much everything (classes, parameters, fields, methods, etc.). Do you know of any tools that could assist me in this job (apart from a text editor and a coffee maker)?

like image 731
mackenir Avatar asked Oct 07 '22 09:10

mackenir


3 Answers

If you are using Visual Studio then you can use the plugin Visual Assit X for refactoring your code. For indentation purposes you can use indent utility.

like image 58
gibraltar Avatar answered Oct 18 '22 23:10

gibraltar


You could take a look at Semantic Designs C++ Tools which seem to be pretty comprehensive although I've never used it.

It is rule based and understands the C++ language, rather than just being a reg exp search and replace utility, so it can do a whole lot more. The major caveat is that it's a commercial product, but the time it could save you and other longer term uses might be worth it to your company.

(BTW I have no connection to this company other than coming across it via this question.)

like image 1
Component 10 Avatar answered Oct 19 '22 01:10

Component 10


Please, do not downvote and please, do not remove. This is not a plug. Original post is asking exactly for this.

Our company provides services in this area. I.e. we work with the customer to figure out exactly what his coding standards are. After that we tweak our toolkit that makes the refactoring. This is semiautomatic process. Some things are fixed with automatic refactoring, some things are fixed manualy.

For additional info please, look at out web site http://cdsan.com/Services.php#svcs_dycs

like image 1
Kirill Kobelev Avatar answered Oct 18 '22 23:10

Kirill Kobelev