Constantin
Constantin

Reputation: 1

C code reshaper

I am working with Matlab code generator. It is not possible to include code style guidelines. That's why I am looking for a tool to "reshape", rename and reformat the generated code according to my:

Is there such a tool?

Upvotes: 0

Views: 142

Answers (3)

Mark Loeser
Mark Loeser

Reputation: 18627

You might want to look at Astyle. It will do some of what you want, but I don't know of any tool that will reformat for naming conventions and such as that could be a complex task.

Upvotes: 0

Lindydancer
Lindydancer

Reputation: 26094

There is always good ol' indent. http://www.gnu.org/software/indent/

This is a command-line tool, so you could easily include it in your build chain.

Upvotes: 1

pajton
pajton

Reputation: 16226

Eclipse, Netbeans or any other decent IDE have options for code formatting. Maybe you can grab your code from Matlab and work with it in IDE.

Upvotes: 0

Related Questions