Reputation: 1
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
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
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
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