diff options
author | Kostya Serebryany <kcc@google.com> | 2011-11-28 20:51:02 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2011-11-28 20:51:02 +0000 |
commit | ce98c9b1a5719b2d0d2697696c9bacc28facc97c (patch) | |
tree | 7a73e35e6e340de69e79cafa7938bf9df4aae49a /docs/LanguageExtensions.html | |
parent | 3881c6907e3a18dca7878e06ef915e64021156b0 (diff) |
First version of AddressSanitizer docs; documentation for __has_feature(address_sanitizer)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LanguageExtensions.html')
-rw-r--r-- | docs/LanguageExtensions.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html index 1dc8a85eec..c8e70202d5 100644 --- a/docs/LanguageExtensions.html +++ b/docs/LanguageExtensions.html @@ -103,6 +103,10 @@ </ul> </li> <li><a href="#analyzerspecific">Static Analysis-Specific Extensions</a></li> +<li><a href="#dynamicanalyzerspecific">Dynamic Analysis-Specific Extensions</a></li> + <ul> + <li><a href="#address_sanitizer">AddressSanitizer</a></li> + </ul> <li><a href="#threadsafety">Thread Safety Annotation Checking</a></li> <ul> <li><a href="#ts_noanal"><tt>no_thread_safety_analysis</tt></a></li> @@ -211,6 +215,11 @@ language feature) or 0 if not. They can be used like this:</p> non-standardized features, i.e. features not prefixed <code>c_</code>, <code>cxx_</code> or <code>objc_</code>.</p> +<p id="has_feature_for_non_language_features"> +Another use of <code>__has_feature</code> is to check for compiler features +not related to the language standard, such as e.g. +<a href="AddressSanitizer.html">AddressSanitizer</a>. + <p>If the <code>-pedantic-errors</code> option is given, <code>__has_extension</code> is equivalent to <code>__has_feature</code>.</p> @@ -1272,6 +1281,14 @@ balance in some way.</p> <p>Query for these features with <tt>__has_attribute(ns_consumed)</tt>, <tt>__has_attribute(ns_returns_retained)</tt>, etc.</p> +<!-- ======================================================================= --> +<h2 id="dynamicanalyzerspecific">Dynamic Analysis-Specific Extensions</h2> +<!-- ======================================================================= --> +<h3 id="address_sanitizer">AddressSanitizer</h3> +<p> Use <code>__has_feature(address_sanitizer)</code> +to check if the code is being built with <a + href="AddressSanitizer.html">AddressSanitizer</a>. +</p> <!-- ======================================================================= --> <h2 id="threadsafety">Thread-Safety Annotation Checking</h2> |