I have started a skeleton proposal to potentially integrate clang-format as a way to help keep Blender's code in a consistent style:
https://developer.blender.org/T53211 Key points of the proposal are - Introduce a clang-format style config for Blender - Use is optional, maybe forever - Module owners are responsible for using it if they want to - No massive code reformatting - this would be done piecemeal, at least at first A few of us (Sergey, Brecht, Bastion, Campbell) have already looked at some of the results, and while there are some issues overall the results look fairly decent. What I'm hoping to discuss in this thread - Overall question of auto-formatting - Proposed rollout plan (incremental, no mass reformats) - (last) Specifics of style - this is always hotly debated! The config file in the issue tries hard to match the current Blender style, but as you can see in the ticket, not everything can be supported by clang-format at this time. Thanks, Keir _______________________________________________ Bf-committers mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-committers
