Add method for sanitizer suppression

pull/242/merge
Jeffrey Walton 2017-05-21 21:51:31 -04:00
parent 0c4b80c995
commit f40c55810d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 12 additions and 3 deletions

View File

@ -764,14 +764,23 @@ NAMESPACE_END
// ************** Deprecated *************** // ************** Deprecated ***************
#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800) #if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40200)
# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated (msg))); # define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated (msg)))
#elif (CRYPTOPP_GCC_VERSION) #elif (CRYPTOPP_GCC_VERSION)
# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated)); # define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated))
#else #else
# define CRYPTOPP_DEPRECATED(msg) # define CRYPTOPP_DEPRECATED(msg)
#endif #endif
// ************** Instrumentation ***************
// GCC does not support; see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78204
#if (CRYPTOPP_LLVM_CLANG_VERSION >= 30700) || (CRYPTOPP_APPLE_CLANG_VERSION >= 70000)
# define CRYPTOPP_NO_SANITIZE(x) __attribute__((no_sanitize(x)))
#else
# define CRYPTOPP_NO_SANITIZE(x)
#endif
// ***************** C++11 related ******************** // ***************** C++11 related ********************
// Visual Studio began at VS2010, http://msdn.microsoft.com/en-us/library/hh567368%28v=vs.110%29.aspx. // Visual Studio began at VS2010, http://msdn.microsoft.com/en-us/library/hh567368%28v=vs.110%29.aspx.