[cfe-dev] Invariant layout between clang-format versions?
Jonathan Müller via cfe-dev
cfe-dev at lists.llvm.org
Tue Jun 20 12:37:46 PDT 2017
On 20.06.2017 21:20, Pim Schellart via cfe-dev wrote:
> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
I have the issue as well, I used to have a clang-format checker on my CI
builds, but this was annoying as my clang version updates more often
than the one on CI, leading to inconsistencies and thus failed builds.
More information about the cfe-dev
mailing list