Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 733 Bytes

File metadata and controls

39 lines (25 loc) · 733 Bytes

Datadog C++ Tracer Development Processes

Test

Pass -DDD_TRACE_BUILD_TESTING=1 to cmake to include the unit tests in the build.

The resulting unit test executable is test/tests within the build directory.

cmake -B build -DDD_TRACE_BUILD_TESTING=1 .
cmake --build build -j
./build/test/tests

Alternatively, bin/test is provided for convenience.

Code Style

C++ code is formatted using clang-format-14. Before submitting code changes, run the following command:

bin/format

To check formatting without writing files:

bin/check-format

Static Analysis

C++ code is analyzed with Clang Tidy. Run it with the following command:

bin/check-tidy