About Sanitizers - MaelRL/cgal GitHub Wiki
The purpose of this page is to keep track of the different commands to call in order to use a sanitizer or an other.
Add -fsanitize=address
to the CXX_FLAGS
, configure, and call
make -j6 <target> && ASAN_OPTIONS="detect_leaks=1 alloc_dealloc_mismatch=0" ./<executable> 2>build.log
Create a .clang-tidy
file, that will contain the configuration for clang-tidy. (See here)
call cmake -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-fix"
and make <target> && ./<executable>