-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from mull-project/focused-itest
docs: create "Extra features" section, add a task to generate docs
- Loading branch information
Showing
8 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Extra features from LLVM FileCheck | ||
================================== | ||
|
||
Line number expression | ||
---------------------- | ||
|
||
It is often useful to check for a specific line number in your regular | ||
expression, relative to its location in the file. Hard-coding that number can | ||
make the test fragile -- rearranging, adding, or deleting lines requires | ||
changing the expression. To solve this, FileCheck supports a variable for the | ||
current line number, ``[[# @LINE ]]``, as well as simple offsets from this | ||
variable, e.g. ``[[# @LINE + 4 ]]`` or ``[[# @LINE - 2 ]]``. | ||
|
||
Example: | ||
|
||
.. code-block:: c | ||
/** | ||
RUN: gcc "%s" -o %S/line && %S/line | filecheck %s | ||
*/ | ||
#include <stdio.h> | ||
int main() { | ||
// CHECK: Hello from line [[# @LINE + 1 ]] | ||
printf("Hello from line %d\n", __LINE__); | ||
return 0; | ||
} | ||
See also | ||
`LLVM FileCheck documentation for this feature | ||
<https://llvm.org/docs/CommandGuide/FileCheck.html#filecheck-pseudo-numeric-variables>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _roadmap: | ||
|
||
Roadmap | ||
======= | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters