"brian m. carlson" <sandals@xxxxxxxxxxxxxxxxxxxx> writes: > I agree most people probably do not use it, probably for the reasons I > don't. I don't know if clang-format produces stable output: that is, > using a newer version of clang-format with the same config does not > result in diff changes. If it does, then we can simply pick a set of > style configs and a minimum version and tell people to apply it. > > We can then check it in CI and if CI fails, we can output a > base64-encoded diff (since it's going to have lots of whitespace, base64 > encoding will be practically useful) that the author can apply. Then > people using esoteric systems without clang-format can simply apply the > diff from CI. > > If clang-format does not produce stable output, we're going to have a > bunch of practical problems. I use Debian unstable at home and I know > Peff does as well, but I also use Ubuntu 24.04 at work. Some > contributors use Fedora or Cygwin, and we're all going to have a giant > problem picking a consistent version of clang-format to use such that > people don't have to compile their own or use external packages. Perhaps > we can create a small script that does the tidying in a Linux > Docker/Podman container in that case.