diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2017-05-21 21:51:31 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2017-05-21 21:51:31 -0400 |
| commit | f40c55810d25949d59f8de2921d56bd06099c4cc (patch) | |
| tree | b297c50311e6a60e34b17701e335db5f22b3fc30 /config.h | |
| parent | 0c4b80c9952d3a2bf3ddc87f2b54595de581d515 (diff) | |
| download | cryptopp-git-f40c55810d25949d59f8de2921d56bd06099c4cc.tar.gz | |
Add method for sanitizer suppression
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -764,14 +764,23 @@ NAMESPACE_END // ************** Deprecated ***************
-#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800)
-# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated (msg)));
+#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40200)
+# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated (msg)))
#elif (CRYPTOPP_GCC_VERSION)
-# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated));
+# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated))
#else
# define CRYPTOPP_DEPRECATED(msg)
#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 ********************
// Visual Studio began at VS2010, http://msdn.microsoft.com/en-us/library/hh567368%28v=vs.110%29.aspx.
|
