Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[asan] update docs: mention MacOS 10.7 and correct the ifdef sample f…

…or __has_feature

git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
commit f45f23493d762b7548afc02563b1908a101c6721 1 parent 2f7f5b1
Kostya Serebryany authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 docs/AddressSanitizer.html
14 docs/AddressSanitizer.html
@@ -99,10 +99,10 @@ <h3 id="has_feature">__has_feature(address_sanitizer)</h3>
<a href="LanguageExtensions.html#__has_feature_extension">__has_feature</a>
can be used for this purpose.
-#if defined(__has_feature) &amp;&amp; __has_feature(address_sanitizer)
- code that runs only under AddressSanitizer
- code that does not run under AddressSanitizer
+#if defined(__has_feature)
+# if __has_feature(address_sanitizer)
+ code that builds only under AddressSanitizer
+# endif
@@ -112,14 +112,16 @@ <h3 id="no_address_safety_analysis">__attribute__((no_address_safety_analysis))<
<a href="LanguageExtensions.html#address_sanitizer">
to disable instrumentation of a particular function.
+This attribute may not be supported by other compilers, so we suggest to
+use it together with <tt>__has_feature(address_sanitizer)</tt>.
Note: currently, this attribute will be lost if the function is inlined.
<h2 id="platforms">Supported Platforms</h2>
AddressSanitizer is supported on
<ul><li>Linux x86_64 (tested on Ubuntu 10.04).
-<li>MacOS 10.6 i386/x86_64.
+<li>MacOS 10.6 and 10.7 (i386/x86_64).
-Support for Linux i386/ARM and MacOS 10.7 is in progress
+Support for Linux i386/ARM is in progress
(it may work, but is not guaranteed too).
Please sign in to comment.
Something went wrong with that request. Please try again.