Add new directive called CHECK-LABEL to FileCheck.
authorStephen Lin <stephenwlin@gmail.com>
Fri, 12 Jul 2013 14:51:05 +0000 (14:51 +0000)
committerStephen Lin <stephenwlin@gmail.com>
Fri, 12 Jul 2013 14:51:05 +0000 (14:51 +0000)
commit178504b07b793b3fde46d950b8f10e0794193e02
treea0dcfce5f4676b3a3510cb8cb1a2409c0908e73a
parent5e102c6c48f2cdfe1741f60805c830fb1e17fa47
Add new directive called CHECK-LABEL to FileCheck.

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186162 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/FileCheck.rst
test/FileCheck/check-label.txt [new file with mode: 0644]
utils/FileCheck/FileCheck.cpp