aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide/FileCheck.rst
AgeCommit message (Collapse)AuthorFilesLines
2016-07-20[docs] Fixing Sphinx warnings to unclog the buildbotRenato Golin1-4/+4
Lots of blocks had "llvm" or "nasm" syntax types but either weren't following the syntax, or the syntax has changed (and sphinx hasn't keep up) or the type doesn't even exist (nasm?). Other documents had :options: what were invalid. I only removed those that had warnings, and left the ones that didn't, in order to follow the principle of least surprise. This is like this for ages, but the buildbot is now failing on errors. It may take a while to upgrade the buildbot's sphinx, if that's even possible, but that shouldn't stop us from getting docs updates (which seem down for quite a while). Also, we're not losing any syntax highlight, since when it doesn't parse, it doesn't colour. Ie. those blocks are not being highlighted anyway. I'm trying to get all docs in one go, so that it's easy to revert later if we do fix, or at least easy to know what's to fix. llvm-svn: 276109
2016-06-27Document the ability to perform multi-line pattern matching in FileCheck.Wolfgang Pieb1-0/+19
Differential review: http://reviews.llvm.org/D21522 llvm-svn: 273962
2016-06-14[FileCheck] Document --check-prefixes.Daniel Sanders1-0/+5
llvm-svn: 272683
2016-02-11Add -match-full-lines argument to FileCheck.James Y Knight1-0/+12
This is useful for some tests where more-exact matching is useful, such as clang's Preprocessor tests. llvm-svn: 260540
2015-04-29IR: Give 'DI' prefix to debug info metadataDuncan P. N. Exon Smith1-2/+2
Finish off PR23080 by renaming the debug info IR constructs from `MD*` to `DI*`. The last of the `DIDescriptor` classes were deleted in r235356, and the last of the related typedefs removed in r235413, so this has all baked for about a week. Note: If you have out-of-tree code (like a frontend), I recommend that you get everything compiling and tests passing with the *previous* commit before updating to this one. It'll be easier to keep track of what code is using the `DIDescriptor` hierarchy and what you've already updated, and I think you're extremely unlikely to insert bugs. YMMV of course. Back to *this* commit: I did this using the rename-md-di-nodes.sh upgrade script I've attached to PR23080 (both code and testcases) and filtered through clang-format-diff.py. I edited the tests for test/Assembler/invalid-generic-debug-node-*.ll by hand since the columns were off-by-three. It should work on your out-of-tree testcases (and code, if you've followed the advice in the previous paragraph). Some of the tests are in badly named files now (e.g., test/Assembler/invalid-mdcompositetype-missing-tag.ll should be 'dicompositetype'); I'll come back and move the files in a follow-up commit. llvm-svn: 236120
2015-03-05All FileCheck directives allow patterns.Paul Robinson1-1/+1
llvm-svn: 231418
2015-03-05FileCheck: Document CHECK-SAME, follow-up to r230612Duncan P. N. Exon Smith1-0/+25
llvm-svn: 231379
2014-07-21Fix Sphinx warnings.Dan Liew1-1/+1
llvm-svn: 213559
2014-07-11Add FileCheck -implicit-check-not option to allow stricter tests without ↵Alexander Kornienko1-0/+11
adding too many CHECK-NOTs manually. Summary: Add FileCheck -implicit-check-not option which allows specifying a pattern that should only occur in the input when explicitly matched by a positive check. This feature allows checking tool diagnostics in a way clang -verify does it for compiler diagnostics. The option has been tested on a number of clang-tidy checks, I'll post a link to the clang-tidy patch to this thread. Once there's an agreement on the general direction, I can add tests and documentation. Reviewers: djasper, bkramer Reviewed By: bkramer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D4462 llvm-svn: 212810
2013-11-10Allow multiple check prefixes in FileCheck.Matt Arsenault1-5/+7
This is useful if you want to run multiple variations of a single test, and the majority of check lines should be the same. llvm-svn: 194343
2013-10-11Add warning about CHECK-DAG with variable definitionRenato Golin1-9/+37
llvm-svn: 192479
2013-07-30Fix underscore to be the proper length.Bill Wendling1-1/+1
llvm-svn: 187406
2013-07-18Fix FileCheck CHECK-LABEL documentation wording slightly; also mention that ↵Stephen Lin1-8/+10
it allows error recovery. llvm-svn: 186628
2013-07-14Correct inaccurate statement in FileCheck docs.Stephen Lin1-1/+2
llvm-svn: 186290
2013-07-12Add new directive called CHECK-LABEL to FileCheck.Stephen Lin1-0/+49
CHECK-LABEL is meant to be used in place on CHECK on lines containing identifiers or other unique labels (they need not actually be labels in the source or output language, though.) This is used to break up the input stream into separate blocks delineated by CHECK-LABEL lines, each of which is checked independently. This greatly improves the accuracy of errors and fix-it hints in many cases, and allows for FileCheck to recover from errors in one block by continuing to subsequent blocks. Some tests will be converted to use this new directive in forthcoming patches. llvm-svn: 186162
2013-06-21[docs] Fix formatting.Sean Silva1-1/+1
'\n' was displaying as 'n' llvm-svn: 184507
2013-05-14Add 'CHECK-DAG' supportMichael Liao1-0/+49
Refer to 'FileCheck.rst'f for details of 'CHECK-DAG'. llvm-svn: 181827
2013-02-06Canonicalize line endings to Linux style also when the --strict-whitespace ↵Guy Benyei1-1/+2
flag is in use. This flag is supposed to affect horizontal whitespaces only. llvm-svn: 174541
2012-12-01Update FileCheck's documentation to mention recently added feature ofEli Bendersky1-15/+16
matching a variable defined on the same line. llvm-svn: 169103
2012-11-29Documentation for FileCheck: use 'option' and 'program' directives.Dmitri Gribenko1-36/+32
This enables option cross-referencing and now '--' in option names are no more turned into en dashes. llvm-svn: 168926
2012-11-21Fix a typo in FileCheck.rstEli Bendersky1-1/+1
llvm-svn: 168466
2012-11-14Support for [[@LINE]], [[@LINE+<offset>]], [[@LINE-<offset>]] expressions inAlexander Kornienko1-0/+27
FileCheck. llvm-svn: 167978
2012-11-14FileCheck.rst: change formatting of code-like constructs to use a monospacedDmitri Gribenko1-86/+50
font. These were formatted in bold, but that's not correct. llvm-svn: 167964
2012-11-07Fix a broken sentenceEli Bendersky1-2/+3
llvm-svn: 167521
2012-11-07Document the -input-file option of FileCheckEli Bendersky1-0/+5
llvm-svn: 167517
2012-06-12Use correct syntax highliter in code blocks. Noticed by Sean Silva.Dmitri Gribenko1-7/+7
llvm-svn: 158359
2012-06-12FileCheck docs: remove leftover HTML markup.Dmitri Gribenko1-9/+9
llvm-svn: 158344
2012-05-24Typo. Patch by Nicklas Bo Jensen <nbjensen@gmail.com>.Chad Rosier1-1/+1
llvm-svn: 157415
2012-05-08[docs] Add ReST version of all the man pages.Daniel Dunbar1-0/+284
- The POD versions are slated for execution, but are still around until llvm.org machinery is in place. llvm-svn: 156384