| Index: base/compiler_specific.h
|
| diff --git a/base/compiler_specific.h b/base/compiler_specific.h
|
| index bb4c52be45e298b31c73566f8b927445a7a952f4..46dc15a3cabe27f062c0f7b0e10af44ca862f157 100644
|
| --- a/base/compiler_specific.h
|
| +++ b/base/compiler_specific.h
|
| @@ -157,6 +157,16 @@
|
| // If available, it would look like:
|
| // __attribute__((format(wprintf, format_param, dots_param)))
|
|
|
| +// Sanitizers annotations.
|
| +#if defined(__has_attribute)
|
| +#if __has_attribute(no_sanitize)
|
| +#define NO_SANITIZE(what) __attribute__((no_sanitize(what)))
|
| +#endif
|
| +#endif
|
| +#if !defined(NO_SANITIZE)
|
| +#define NO_SANITIZE(what)
|
| +#endif
|
| +
|
| // MemorySanitizer annotations.
|
| #if defined(MEMORY_SANITIZER) && !defined(OS_NACL)
|
| #include <sanitizer/msan_interface.h>
|
|
|