[Lldb-commits] [PATCH] D52270: TestMultilineExpr: validate evaluation for expressions spread over multiple lines

Stefan Gränitz via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 19 11:26:26 PDT 2018


sgraenitz marked 3 inline comments as done.
sgraenitz 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
----------------
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?


https://reviews.llvm.org/D52270





More information about the lldb-commits mailing list