[PATCH] D58061: Fix a few tests that were missing ':' on CHECK lines and weren't testing anything.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 11 11:46:06 PST 2019


rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.

Good catch!  Is there a reasonable way to just make FileCheck itself enforce this, or does that cause too many false positives with tests that are using e.g. `x86_64` as the entire prefix?

If we were starting over again, I think ideally the check-prefix would be unconditionally treated as flagging something for FileCheck, so that any sort of unrecognized command after it would produce an error.  I doubt there's any real use-case for writing e.g. `CHECK` in a test case.  But that's no longer possible because of the widespread idiom of using things like `CHECK-NATIVE` as conditionally-enabled prefixes, which is of course ambiguous with typoing a command like `CHECK-NEXT` or thinking that `CHECK-CONT` should exist.  But it'd be nice to get as close to that as we can without rewriting ten thousand `FileCheck` tests.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58061/new/

https://reviews.llvm.org/D58061





More information about the cfe-commits mailing list