[llvm] ab270e4 - [docs] Mention --leading-lines instead of --no-leading-lines

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 3 10:21:17 PDT 2021


Author: Fangrui Song
Date: 2021-11-03T10:21:13-07:00
New Revision: ab270e4c7c747c2c9840fa85f151ec3adfb96638

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

LOG: [docs] Mention --leading-lines instead of --no-leading-lines

Added: 
    

Modified: 
    llvm/docs/TestingGuide.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst
index c8dca7120e54..6449661e5d38 100644
--- a/llvm/docs/TestingGuide.rst
+++ b/llvm/docs/TestingGuide.rst
@@ -333,9 +333,10 @@ using ``split-file`` to extract them. For example,
   ;--- b.ll
   ...
 
-The parts are separated by the regex ``^(.|//)--- <part>``. By default the
-extracted content has leading empty lines to preserve line numbers. Specify
-``--no-leading-lines`` to drop leading lines.
+The parts are separated by the regex ``^(.|//)--- <part>``.
+
+If you want to test relative line numbers like ``[[#@LINE+1]]``, specify
+``--leading-lines`` to add leading empty lines to preserve line numbers.
 
 If the extra files are large, the idiomatic place to put them is in a subdirectory ``Inputs``.
 You can then refer to the extra files as ``%S/Inputs/foo.bar``.


        


More information about the llvm-commits mailing list