dev-cafe / autocmake

CMake plugin composer.
http://autocmake.org
BSD 3-Clause "New" or "Revised" License
41 stars 18 forks source link

[Enhancement] Modules for GCC/Clang C++ sanitizers #189

Open robertodr opened 7 years ago

robertodr commented 7 years ago

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.