summaryrefslogtreecommitdiff
path: root/docs/AttributeReference.rst
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-08-16 02:09:42 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-08-16 02:09:42 +0000
commitc2842d571678b63e534dc932cd180c1a19ffa916 (patch)
tree0b62c0d54c5c38062da77998a1f30ffd6612bf73 /docs/AttributeReference.rst
parent2fd1ed46072e6728baefa928c139e7ea556e65f8 (diff)
Document what's experimental about __attribute__((enable_if)). PR20392
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/AttributeReference.rst')
-rw-r--r--docs/AttributeReference.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/AttributeReference.rst b/docs/AttributeReference.rst
index c12f6d8e1e..d28cee2579 100644
--- a/docs/AttributeReference.rst
+++ b/docs/AttributeReference.rst
@@ -236,6 +236,11 @@ enable_if
"X","","",""
+.. Note:: Some features of this attribute are experimental. The meaning of
+multiple enable_if attributes on a single declaration is subject to change in
+a future version of clang. Also, the ABI is not standardized and the mangled
+name produced may change. To avoid that, use asm labels.
+
The ``enable_if`` attribute can be placed on function declarations to control
which overload is selected based on the values of the function's arguments.
When combined with the ``overloadable`` attribute, this feature is also