From: Chris Lattner
Clang provides support for C++ function overloading in C. Function overloading in C is introduced using the overloadable attribute. For example, one might provide several overloaded versions of a tgsin function that invokes the appropriate standard function computing the sine of a value with float, double, or long double precision:
+Clang provides support for C++ function overloading in C. Function +overloading in C is introduced using the overloadable attribute. For +example, one might provide several overloaded versions of a tgsin +function that invokes the appropriate standard function computing the sine of a +value with float, double, or long double +precision:
@@ -94,7 +99,8 @@ function declarations and definitions. Most importantly, if any function with a given name is given the overloadable attribute, then all function declarations and definitions with that name (and in that scope) must have the overloadable -attribute. This rule even applies to redeclarations of functions whose original declaration had the overloadable attribute, e.g., +attribute. This rule even applies to redeclarations of functions whose original +declaration had the overloadable attribute, e.g.,