r198899 - Updating documentation for the __has_attribute changes landed in r198897.
Aaron Ballman
aaron at aaronballman.com
Thu Jan 9 15:11:13 PST 2014
Author: aaronballman
Date: Thu Jan 9 17:11:13 2014
New Revision: 198899
URL: http://llvm.org/viewvc/llvm-project?rev=198899&view=rev
Log:
Updating documentation for the __has_attribute changes landed in r198897.
Modified:
cfe/trunk/docs/LanguageExtensions.rst
cfe/trunk/docs/ReleaseNotes.rst
Modified: cfe/trunk/docs/LanguageExtensions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.rst?rev=198899&r1=198898&r2=198899&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.rst (original)
+++ cfe/trunk/docs/LanguageExtensions.rst Thu Jan 9 17:11:13 2014
@@ -113,8 +113,8 @@ of ``cxx_rvalue_references``.
-------------------
This function-like macro takes a single identifier argument that is the name of
-an attribute. It evaluates to 1 if the attribute is supported or 0 if not. It
-can be used like this:
+an attribute. It evaluates to 1 if the attribute is supported by the current
+compilation target, or 0 if not. It can be used like this:
.. code-block:: c++
@@ -134,6 +134,7 @@ The attribute name can also be specified
(double underscore) to avoid interference from a macro with the same name. For
instance, ``__always_inline__`` can be used instead of ``always_inline``.
+
Include File Checking Macros
============================
Modified: cfe/trunk/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ReleaseNotes.rst?rev=198899&r1=198898&r2=198899&view=diff
==============================================================================
--- cfe/trunk/docs/ReleaseNotes.rst (original)
+++ cfe/trunk/docs/ReleaseNotes.rst Thu Jan 9 17:11:13 2014
@@ -51,6 +51,11 @@ Major New Features
GCC 4.7 changed the mingw ABI. Clang 3.4 and older use the GCC 4.6
ABI. Clang 3.5 and newer use the GCC 4.7 abi.
+- The __has_attribute feature test is now target-aware. Older versions of Clang
+would return true when the attribute spelling was known, regardless of whether
+the attribute was available to the specific target. Clang now returns true only
+when the attribute pertains to the current compilation target.
+
Improvements to Clang's diagnostics
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
More information about the cfe-commits
mailing list