summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2012-11-14 20:26:19 +0000
committerAlexander Kornienko <alexfh@google.com>2012-11-14 20:26:19 +0000
commit08639983ded4250c18614c62450e70ba653aac4c (patch)
tree59a6610eabf04c4aca104d5a080c99dfb85bf134 /docs
parent984639b7a4b2e2f15d82d64623a634b4772f022f (diff)
downloadllvm-08639983ded4250c18614c62450e70ba653aac4c.tar.gz
llvm-08639983ded4250c18614c62450e70ba653aac4c.tar.bz2
llvm-08639983ded4250c18614c62450e70ba653aac4c.tar.xz
Added %(line), %(line+<number>), %(line-<number>) substitutions to lit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/TestingGuide.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html
index d90c8ad1c3..1be7551122 100644
--- a/docs/TestingGuide.html
+++ b/docs/TestingGuide.html
@@ -723,6 +723,11 @@ define two separate CHECK lines that match on the same line.
<dd>The full path to the test case's source. This is suitable for passing
on the command line as the input to an llvm tool.</dd>
+ <dt><b>%(line), %(line+<i>number</i>), %(line-<i>number</i>)</b></dt>
+ <dd>The number of the line where this variable is used, with an optional
+ integer offset. This can be used in tests with multiple RUN: lines, which
+ reference test file's line numbers.</dd>
+
<dt><b>$srcdir</b></dt>
<dd>The source directory from where the "<tt>make check</tt>" was run.</dd>