FileCheck's Match unittest needs updating whenever some call to
initNextPattern() is inserted before its final block of checks. This
commit change usage of LineNumber inside the Tester object so that the
line number of the current pattern can be queries, thereby making the
Match test more solid.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/unittests/Support/FileCheckTest.cpp | ||
---|---|---|
426–427 | To make it clear that @LINE has been updated here, I'd recommend changing this phrase to "Check that @LINE matches the later line number." It might also be worthwhile putting a comment somewhere showing that initNextPattern updates the line number. |
To make it clear that @LINE has been updated here, I'd recommend changing this phrase to "Check that @LINE matches the later line number." It might also be worthwhile putting a comment somewhere showing that initNextPattern updates the line number.