[PATCH] D54769: [FileCheck] New option -warn
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 16:51:09 PST 2018
SjoerdMeijer added a comment.
And I do remember a possibly valid use case for emitting a diagnostic. I've seen quite a few tests with names like `test-pr12345.ll`, that were reproducers of compiler crashes, but only contained CHECK-LABELS. I called them dubious tests before (but we don't want to use that term), because these tests are happy when a functions compiles, but don't tests anything whereas they probably should. There are probably a few exceptions where only CHECK-LABELs are okay, so I think a warning along the lines of "you're only checking labels, is that what you really want?" should be fair?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54769/new/
https://reviews.llvm.org/D54769
More information about the llvm-commits
mailing list