From c2842d571678b63e534dc932cd180c1a19ffa916 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 16 Aug 2014 02:09:42 +0000 Subject: [PATCH] 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 --- docs/AttributeReference.rst | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.50.1