Sources for libroach.
Formatting
Code is formatted using clang-format.
To install:
- download LLVM 5.0 for your OS/arch
- extract archive
- place the archive's
bin/clang-formatin your path
If you use a package manager, make sure it uses clang-format from LLVM 5.0 (clang-format --version).
To use, do one of:
- run
make c-deps-fmtfrom thecockroachdb/cockroachrepo - add
clang-format -i <filename>as a save hook in your editor.
Testing
Run make check-libroach from the repository root. We use gtest.