dwavesystems / dwave-optimization

Enables the formulation of nonlinear models for industrial optimization problems.
https://docs.ocean.dwavesys.com/en/stable/docs_optimization/index.html#index-optimization
Apache License 2.0
7 stars 17 forks source link

Specify a standard version of `clang-format` #113

Open wbernoudy opened 1 month ago

wbernoudy commented 1 month ago

Since we expect the C++ code to be formatted with clang-format, but there are inconsistencies between different versions, we should specify the version one is expected to use when doing development.

arcondello commented 1 month ago

We do not currently enforce clang-formatted code. We could consider doing so as well.

wbernoudy commented 1 month ago

Agreed! For now at least, it would be nice to just have a note in the readme.

arcondello commented 1 month ago

I don't think this is easy.

The ecosystem as a whole doesn't have a lot of consensus.

For internal repos, I am reasonably comfortable enforcing a version. But for public repos like this, where we want to encourage contribution from users, I don't think it's reasonable to require folks to install a specific version of clang simply to make a PR against this repo.

We could format as part of CI, but that comes with its own issues.