diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-25 10:41:10 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-25 10:41:10 +0000 |
| commit | 2cca7b5ca98ae5e273d365b62b9d82ad58a4bada (patch) | |
| tree | 53432ef82a0573d694c3564bb7dfaa1d55652865 /clang/docs/LanguageExtensions.html | |
| parent | 2a986117e9ba4324fb041ba629b2a5fa85ff750e (diff) | |
| download | bcm5719-llvm-2cca7b5ca98ae5e273d365b62b9d82ad58a4bada.tar.gz bcm5719-llvm-2cca7b5ca98ae5e273d365b62b9d82ad58a4bada.zip | |
Accept __has_feature(__feature__) as a synonym for __has_feature(feature) (and
likewise for __has_extension). Patch by Jonathan Sauer!
llvm-svn: 151445
Diffstat (limited to 'clang/docs/LanguageExtensions.html')
| -rw-r--r-- | clang/docs/LanguageExtensions.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/docs/LanguageExtensions.html b/clang/docs/LanguageExtensions.html index 2471c60776c..cdd197956fe 100644 --- a/clang/docs/LanguageExtensions.html +++ b/clang/docs/LanguageExtensions.html @@ -228,6 +228,11 @@ not related to the language standard, such as e.g. <p>The feature tag is described along with the language feature below.</p> +<p>The feature name or extension name can also be specified with a preceding and +following <code>__</code> (double underscore) to avoid interference from a macro +with the same name. For instance, <code>__always_inline__</code> can be used +instead of <code>always_inline</code>.</p> + <!-- ======================================================================= --> <h3><a name="__has_attribute">__has_attribute</a></h3> <!-- ======================================================================= --> |

