[Lldb-commits] [PATCH] D52270: TestMultilineExpr: validate evaluation for expressions spread over multiple lines
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 19 11:39:23 PDT 2018
aprantl added inline comments.
================
Comment at: lit/Expr/TestMultilineExpr.test:9
+# CHECK: (lldb) expression
+# CHECK-NEXT: Enter expressions, then terminate with an empty line to evaluate:
+# CHECK-NEXT: (int) {{.*}} = 5
----------------
sgraenitz wrote:
> Maybe it's nitpicking, but I'd actually prefer not to match this specific string. It could be any human-readable instruction. However, if I replace it with `{{.*}}` lit will complain that the match doesn't start on the next line:
> ```
> TestMultilineExpr.test:9:15: error: CHECK-NEXT: is on the same line as previous match
> # CHECK-NEXT: {{.*}}
> ^
> <stdin>:9:18: note: 'next' match was here
> (lldb) expression
> ^
> <stdin>:9:18: note: previous match ended here
> (lldb) expression
> ^
> ```
>
> Any ideas how to get it right?
why not:
```
# CHECK: (lldb) expression
# CHECK: (int) {{.*}} = 5
```
?
https://reviews.llvm.org/D52270
More information about the lldb-commits
mailing list