[llvm] 0b85ea8 - [docs][FileCheck] Fix invalid example

Thomas Preud'homme via llvm-commits llvm-commits at lists.llvm.org
Sat May 2 15:31:40 PDT 2020


Author: Thomas Preud'homme
Date: 2020-05-02T23:31:18+01:00
New Revision: 0b85ea85334daa050da01083543a02b4cfc4cc00

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

LOG: [docs][FileCheck] Fix invalid example

Summary:
FileCheck documentation contains an example of a numeric variable
defined and used on the same line. This is not currently supported by
FileCheck so this commit fixes the example to use CHECK-SAME for the
variable use.

Reviewed By: MaskRay

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

Added: 
    

Modified: 
    llvm/docs/CommandGuide/FileCheck.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst
index 49db57161810..55fc3f0cabfe 100644
--- a/llvm/docs/CommandGuide/FileCheck.rst
+++ b/llvm/docs/CommandGuide/FileCheck.rst
@@ -634,7 +634,8 @@ For example:
 
     ; CHECK: load r[[#REG:]], [r0]
     ; CHECK: load r[[#REG+1]], [r1]
-    ; CHECK: Loading from 0x[[#%x,ADDR:] to 0x[[#ADDR + 7]]
+    ; CHECK: Loading from 0x[[#%x,ADDR:]]
+    ; CHECK-SAME: to 0x[[#ADDR + 7]]
 
 The above example would match the text:
 


        


More information about the llvm-commits mailing list