[PATCH] D22403: FileCheck Enhancement - pattern templates.
Elena Lepilkina via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 01:47:03 PDT 2016
eklepilkina marked an inline comment as done.
================
Comment at: test/FileCheck/check-pattern.txt:39
@@ +38,1 @@
+// CHECK: test.cpp:[[@LINE]]:6: error: expected ';' after top level declarator
\ No newline at end of file
----------------
vsk wrote:
> Add tests for:
>
> # All error messages you've introduced
> # Allow -check-prefix=FOO, FOO-DEFINE-PATTERN
> # Disallow BAR-DEFINE-PATTERN and FOO-DEFINE-PATTERN for the same definition name
> # Capture '@LINE' in a variable
> # Disallow using a pattern captured with a FOO-definition in a BAR check
> # Verify CHECK-{NEXT, SAME, DAG} etc. work with captured patterns
> Capture '@LINE' in a variable
I don't understand what do you mean. How can I do this? CHECK: [[Number: [[@LINE]]]]?
Or do you mean text '@LINE'?
https://reviews.llvm.org/D22403
More information about the llvm-commits
mailing list