ffig icon indicating copy to clipboard operation
ffig copied to clipboard

Provide a mechanism for running a code formatter on the generated bindings

Open ajbennieston opened this issue 8 years ago • 2 comments

As the final stage of generation, support running an automatic formatter (clang-format, gofmt, autopep8, etc.) on the template output.

This is preferable to making the templates themselves unreadable in an effort to produce readable generated code.

ajbennieston avatar Apr 13 '17 20:04 ajbennieston

This is a really important item. Legibility of templates is really critical.

We could add a script to render templates legible or compact too. I'm not sure how aggressive we can convince clang-format to be at deleting blank lines.

jbcoe avatar Apr 13 '17 21:04 jbcoe

Do we need to do this now that @ajbennieston's awesome work has made templates readable?

jbcoe avatar Jul 08 '17 20:07 jbcoe