Recent versions of GCC and Clang have added support for a handful of sanitizers which provide convenient dynamic analysis tools (complementary to e.g.valgrind) for memory leaks, undefined behavior, thread safety and so forth.
Some of these tools are mutually exclusive, require additional compiler flags and linking to special libraries. It would be nice to provide CMake scripts to take care of that. An example appeared some time ago on the CMake blog and could be used as starting point.
Recent versions of GCC and Clang have added support for a handful of sanitizers which provide convenient dynamic analysis tools (complementary to e.g.
valgrind
) for memory leaks, undefined behavior, thread safety and so forth. Some of these tools are mutually exclusive, require additional compiler flags and linking to special libraries. It would be nice to provide CMake scripts to take care of that. An example appeared some time ago on the CMake blog and could be used as starting point.