Open jslee02 opened 4 years ago
We should not have to do this if we can simply appropriately adjust the templates. We can run clang format and use that to adjust the templates until it matches.
There could be some limitations on that approach such as the column limit.
I understand that code formatting can be done on the user side, and it's one of the motivations of #304 to get the list of generated files for formatting.
This feature would be very useful for the case that chimera is not currently not able to generate for the entire C++ codebase for some reason but still used to generate partial bindings. In this case, the user might need to modify the generated bindings manually. It would be less convenient to manage unformatted code (imagine chimera generates very long length of method binding with long mangled names, options, etc).
Generated bindings are generally not well-formatted. We could format the code using ClangFormat if detected.