[cfe-dev] Invariant layout between clang-format versions?

Pim Schellart via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 20 12:20:16 PDT 2017


Dear Clang Developers,

this may not be the right place to ask this question so please redirect me if I’m mistaken.

We are using clang-format for automatic code layout within our project.
A problem we are facing is that developers have different versions of clang-format installed.
Even with identical style configuration this results in different output, leading to unnecessary diffs.

While this can be fixed by mandating a specific clang-format version, this may not be practical.
It would be helpful if one could pin a particular layout behavior in a forwards compatible way.

If that is not possible, it would be nice to know when version changes result in layout changes.
E.g. should we mandate version 5.0.0 or is 5.0.x or even 5.x enough?

Thanks in advance.

Kind regards,

Pim Schellart


More information about the cfe-dev mailing list