[PATCH] D68061: [docs] Document pattern of using CHECK-SAME to skip irrelevant lines

David Greene via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 11:38:06 PDT 2019


greened added inline comments.


================
Comment at: llvm/docs/CommandGuide/FileCheck.rst:324
+would still pass because the "``CHECK: Value: 1``" line would match the value
+from ``baz``. To fix this, you could add ``CHECK-NEXT`` matchers for every
+``FieldN:`` line, but that would be verbose, and need to be updated when
----------------
This is what CHECK-LABEL is for.  This isn't a very motivating example.  Is there a better one?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68061





More information about the llvm-commits mailing list