We use the following code to determine if -fsanitize=address
has been specified at compile time for clang and gcc. How do we determine if -fsanitize=undefined
has been specified?
bool isSanitized = false;
#if defined(__has_feature)
#if __has_feature(address_sanitizer)
isSanitized = true;
#endif
#elif defined(__SANITIZE_ADDRESS__)
isSanitized = true;
#endif