diff options
author | Peter Collingbourne <pcc@google.com> | 2025-03-24 11:29:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-24 11:29:57 -0700 |
commit | 8d3dc1ed5656a3e69e4195d58684a7f4bf0ff5cc (patch) | |
tree | 7970990a618647edc5c644816f62e6193e8a0c6b /llvm/docs/CommandGuide | |
parent | 6c68cc4df1bfbb846e7724568a4cada61847c7f4 (diff) | |
download | llvm-8d3dc1ed5656a3e69e4195d58684a7f4bf0ff5cc.zip llvm-8d3dc1ed5656a3e69e4195d58684a7f4bf0ff5cc.tar.gz llvm-8d3dc1ed5656a3e69e4195d58684a7f4bf0ff5cc.tar.bz2 |
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
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/lit.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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. |