With the new .clang-format file we should make sure that new code also adheres to the coding style defined by clang-format. I don't think we should add something that automatically enforces formatting for every user, e.g., pre-commit hooks. Rather, I would suggest to add a CI action that simply fails when the code in the commit/PR does not follow our code style.
With the new
.clang-format
file we should make sure that new code also adheres to the coding style defined byclang-format
. I don't think we should add something that automatically enforces formatting for every user, e.g., pre-commit hooks. Rather, I would suggest to add a CI action that simply fails when the code in the commit/PR does not follow our code style.This can easily be done with https://github.com/marketplace/actions/clang-format-check