TSan and ASan useable with clang-cl?
i can't find any compatiblity info about windows, clang-cl etc.
TSan and ASan useable with clang-cl?
i can't find any compatiblity info about windows, clang-cl etc.
ASan works on Windows, and it is used by Chrome and Firefox. Currently it only supports 32-bit code. I should update http://clang.llvm.org/docs/AddressSanitizer.html with info on how to use it.
Basically you just pass -fsanitize=address to clang-cl compilations, but linking is different.
You link against clang_rt.asan-i386.lib if you are building an executable and using the static MSVCRT. If you are building DLLs and using the dynamic CRT, link against both clang_rt.asan_dynamic-i386.lib and clang_rt.asan_dynamic_runtime_thunk-i386.lib.