We can use clang-format to format our C++ in the style used by MLIR. We should do this once to bring everything up to spec, and then verify formatting in CI, just as we do with black for Python.
OK, I think we've now finished this out. The repo has been updated to use the MLIR style in clang-format (#126) and we have CI automation now to verify correct formatting of PRs (#134). Instructions for how to reformat code locally are in the README.
As per this comment: https://github.com/metagraph-dev/mlir-graphblas/pull/121#discussion_r694568857
We can use
clang-format
to format our C++ in the style used by MLIR. We should do this once to bring everything up to spec, and then verify formatting in CI, just as we do withblack
for Python.clang-format
is in theclang-tools
conda package.