diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-13 21:51:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-13 21:51:45 +0000 |
commit | f161d4155f51328da08d4a28233d5ca9ce5b998a (patch) | |
tree | 7d24975bb2fc1b2a62daa8e59cda40b82ba21ca5 /docs | |
parent | 73241dfeb5c498255b662984cca369fd28ec3147 (diff) | |
download | clang-f161d4155f51328da08d4a28233d5ca9ce5b998a.tar.gz |
wrap some crazy long lines.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LanguageExtensions.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html index 1a8ff953ad..dfffd2f5d6 100644 --- a/docs/LanguageExtensions.html +++ b/docs/LanguageExtensions.html @@ -58,7 +58,12 @@ href="#__builtin_shufflevector">__builtin_shufflevector</a>.</p> <h2 id="overloading-in-c">Function Overloading in C</h2> <!-- ======================================================================= --> -<p>Clang provides support for C++ function overloading in C. Function overloading in C is introduced using the <tt>overloadable</tt> attribute. For example, one might provide several overloaded versions of a <tt>tgsin</tt> function that invokes the appropriate standard function computing the sine of a value with <tt>float</tt>, <tt>double</tt>, or <tt>long double</tt> precision:</p> +<p>Clang provides support for C++ function overloading in C. Function +overloading in C is introduced using the <tt>overloadable</tt> attribute. For +example, one might provide several overloaded versions of a <tt>tgsin</tt> +function that invokes the appropriate standard function computing the sine of a +value with <tt>float</tt>, <tt>double</tt>, or <tt>long double</tt> +precision:</p> <blockquote> <pre> @@ -94,7 +99,8 @@ function declarations and definitions. Most importantly, if any function with a given name is given the <tt>overloadable</tt> attribute, then all function declarations and definitions with that name (and in that scope) must have the <tt>overloadable</tt> -attribute. This rule even applies to redeclarations of functions whose original declaration had the <tt>overloadable</tt> attribute, e.g.,</p> +attribute. This rule even applies to redeclarations of functions whose original +declaration had the <tt>overloadable</tt> attribute, e.g.,</p> <blockquote> <pre> |