diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-12-03 01:25:49 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-12-03 01:25:49 +0000 |
commit | 736a99382873f9d4ab8b42e93282c4fadb61e8cc (patch) | |
tree | cf3cf991ab07f84f8203774e37f1c693735456e7 /clang/docs | |
parent | aad4af6d50a138350d401a8871ba82ecf44e9c47 (diff) | |
download | bcm5719-llvm-736a99382873f9d4ab8b42e93282c4fadb61e8cc.tar.gz bcm5719-llvm-736a99382873f9d4ab8b42e93282c4fadb61e8cc.zip |
Add support for has_feature(cxx_alignof) and has_feature(c_alignof).
r142020 added support for has_feature(cxx_alignas). This does the same for
alignof.
llvm-svn: 223186
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/LanguageExtensions.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst index ae298afdeed..5636b8992dc 100644 --- a/clang/docs/LanguageExtensions.rst +++ b/clang/docs/LanguageExtensions.rst @@ -543,6 +543,9 @@ C++11 alignment specifiers Use ``__has_feature(cxx_alignas)`` or ``__has_extension(cxx_alignas)`` to determine if support for alignment specifiers using ``alignas`` is enabled. +Use ``__has_feature(cxx_alignof)`` or ``__has_extension(cxx_alignof)`` to +determine if support for the ``alignof`` keyword is enabled. + C++11 attributes ^^^^^^^^^^^^^^^^ @@ -857,6 +860,9 @@ C11 alignment specifiers Use ``__has_feature(c_alignas)`` or ``__has_extension(c_alignas)`` to determine if support for alignment specifiers using ``_Alignas`` is enabled. +Use ``__has_feature(c_alignof)`` or ``__has_extension(c_alignof)`` to determine +if support for the ``_Alignof`` keyword is enabled. + C11 atomic operations ^^^^^^^^^^^^^^^^^^^^^ |