aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/ArrayRefTest.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-04-13 04:33:39 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-04-13 04:33:39 +0000
commit4e8144a0d140adf1ee07d78f3ff1ebb41790a9a3 (patch)
treeef4ca2263636e62ca3cc0cc3bd93fc05e580bd75 /llvm/unittests/ADT/ArrayRefTest.cpp
parente03301a3b32d048d8975e0fe21d80489505415c8 (diff)
downloadllvm-4e8144a0d140adf1ee07d78f3ff1ebb41790a9a3.zip
llvm-4e8144a0d140adf1ee07d78f3ff1ebb41790a9a3.tar.gz
llvm-4e8144a0d140adf1ee07d78f3ff1ebb41790a9a3.tar.bz2
[verify] Add support for location markers in directives.
A marker (matching /#[A-Za-z0-9_-]/) is specified by attaching a comment containing the marker to the line at which the diagnostic is expected, and then can be referenced from an expected-* directive after an @: foo // #1 // expected-error@#1 {{undeclared identifier 'foo'}} The intent is for markers to be used in situations where relative line numbers are currently used, to avoid the need to renumber when the test case is rearranged. llvm-svn: 358326
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions