[clang] c8f3f46 - [Docs] Minor fixes with language extension docs

Saurabh Jha via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 26 02:11:31 PDT 2021


Author: Saurabh Jha
Date: 2021-06-26T10:07:33+01:00
New Revision: c8f3f46c6983b5a87a0a6fc9d9bb476883bee801

URL: https://github.com/llvm/llvm-project/commit/c8f3f46c6983b5a87a0a6fc9d9bb476883bee801
DIFF: https://github.com/llvm/llvm-project/commit/c8f3f46c6983b5a87a0a6fc9d9bb476883bee801.diff

LOG: [Docs] Minor fixes with language extension docs

There were some issues in the patch https://reviews.llvm.org/D104198. I also forgot to address one comment. This patch addresses these.

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D104971

Added: 
    

Modified: 
    clang/docs/LanguageExtensions.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst
index f9e1208634b9..d638121eecd8 100644
--- a/clang/docs/LanguageExtensions.rst
+++ b/clang/docs/LanguageExtensions.rst
@@ -536,6 +536,7 @@ The matrix type extension also supports operations on a matrix and a scalar.
 The matrix type extension supports division on a matrix and a scalar but not on a matrix and a matrix.
 
 .. code-block:: c++
+
   typedef float m4x4_t __attribute__((matrix_type(4, 4)));
 
   m4x4_t f(m4x4_t a) {
@@ -543,8 +544,8 @@ The matrix type extension supports division on a matrix and a scalar but not on
     return a;
   }
 
-The matrix type extension supports compound assignments for addition, subtraction, and multiplication between matrices
-and between a matrix and a scalar, provided their types are consistent.
+The matrix type extension supports compound assignments for addition, subtraction, and multiplication on matrices
+and on a matrix and a scalar, provided their types are consistent.
 
 .. code-block:: c++
 


        


More information about the cfe-commits mailing list