This enablesdiff adds a check to `clang-tidy` to run as part of our CMake buildfor adding the braces automatically.
Since `clang-tidy` needs the build options to runConfiguration files are added to the libraries (leveldb, it is better suitedsecp256k1,
to be run at build time. Currently the only enabled rule is adding the
missing braces automatically to the source files.
`clang-tidy` is enabled by default. The `ENABLE_CLANG_TIDY` option can
be set to `OFF` to disable it if needed.
Only the selected targets are affected by the check, so the third-party
libraries are not getting formattedunivalue) to avoid formatting them.
Depends on D512138.