re-add python symbolizer
trying test writing
calc only visited stats
A code coverage library for C/C++ projects. It can be used to obtain visited functions, basic
blocks, and lines. tinycov
is targeted at gathering and displaying multiple test reports at once.
-O0 -g
.libtinycov-runtime.a
.-fpass-plugin=libtinycov-pass.so
to clang if you don't have exclude paths.-Xclang -load -Xclang libtinycov-pass.so -fpass-plugin=libtinycov-pass.so -mllvm --tc-exclude='exclude_regex'
otherwise (why you have to duplicate library name).python3 symbolize.py [report] [notes_dir]
to get JSON with per-test statistics. Set TC_LINESET=1
environment variable if you
need visited and not visited lines (only aggregated statistics will be displayed otherwise).When in doubt, refer to examples/
folder.
exclude_regex
is POSIX ERE.
Please note that file paths checked against regex may be relative or absolute, and that depends entirely
on your build system.
apt install libxxhash-dev clang-15
LLVM_CONFIG=llvm-config-15 make
You can use other versions of clang/llvm.