]> granicus.if.org Git - clang/commitdiff
Improve the documentation for OpenCL vector types.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 22 Aug 2019 18:57:46 +0000 (18:57 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 22 Aug 2019 18:57:46 +0000 (18:57 +0000)
This fixes some minor grammatical issues I noticed when reading the docs, and changes the recommended feature testing approach to use __has_attribute instead of __has_extension.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369687 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LanguageExtensions.rst

index 3eadb9d09817ada3a04e5a0dff46e4dc7ca2f577..b75177545c10f3761e84f38ef88234c2fd7a9c5e 100644 (file)
@@ -389,8 +389,8 @@ Vectors and Extended Vectors
 
 Supports the GCC, OpenCL, AltiVec and NEON vector extensions.
 
-OpenCL vector types are created using ``ext_vector_type`` attribute.  It
-support for ``V.xyzw`` syntax and other tidbits as seen in OpenCL.  An example
+OpenCL vector types are created using the ``ext_vector_type`` attribute.  It
+supports the ``V.xyzw`` syntax and other tidbits as seen in OpenCL.  An example
 is:
 
 .. code-block:: c++
@@ -405,7 +405,7 @@ is:
     return c;
   }
 
-Query for this feature with ``__has_extension(attribute_ext_vector_type)``.
+Query for this feature with ``__has_attribute(ext_vector_type)``.
 
 Giving ``-maltivec`` option to clang enables support for AltiVec vector syntax
 and functions.  For example: