From 8d3dc1ed5656a3e69e4195d58684a7f4bf0ff5cc Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 24 Mar 2025 11:29:57 -0700 Subject: lit: Move RUN at line comment after the command. When a developer copy/pastes a failing command line into their shell to rerun it, they have to manually delete the "RUN: at line N:" prefix. To make life easier for such developers, let's make it possible to copy/paste a command without needing to modify it while still showing the line number in the output by moving the line number to a comment at the end of the command line. Reviewers: jroelofs, MaskRay Reviewed By: jroelofs, MaskRay Pull Request: https://github.com/llvm/llvm-project/pull/132485 --- llvm/docs/CommandGuide/lit.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst index 8c0e275..812e1d8 100644 --- a/llvm/docs/CommandGuide/lit.rst +++ b/llvm/docs/CommandGuide/lit.rst @@ -100,7 +100,7 @@ OUTPUT OPTIONS Each command is printed before it is executed. This can be valuable for debugging test failures, as the last printed command is the one that failed. - Moreover, :program:`lit` inserts ``'RUN: at line N'`` before each + Moreover, :program:`lit` inserts ``'RUN: at line N'`` after each command pipeline in the output to help you locate the source line of the failed command. -- cgit v1.1