[Bf-committers] RFC: clang-format for blender

Keir Mierle mierle at gmail.com
Mon Jan 7 16:10:16 CET 2019


Hi everyone,

After some time on the backburner, this proposal is moving forward. We will
have more to report about an overall process sometime this week.

Cheers,
Keir

On Tue, Oct 31, 2017 at 2:26 PM Keir Mierle <mierle at gmail.com> wrote:

> 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
>


More information about the Bf-committers mailing list