[Lldb-commits] [PATCH] D43471: Handle typeof() expressions

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 19 11:20:23 PST 2018


JDevlieghere updated this revision to Diff 134955.
JDevlieghere marked an inline comment as done.
JDevlieghere added a comment.

Make sure the lit test actually checks the lldb output instead of the # CHECK lines.

Without the check-next, CHECK matches the # CHECK lines, as they are printed by lldb:

  (lldb) # RUN: %lldb -b -s %s | FileCheck %s
  (lldb) expression int i; __typeof__(i) j = 1; j
  (typeof (i)) $0 = 1
  (lldb) # CHECK: (lldb) expression int i; __typeof__(i) j = 1; j
  (lldb) # CHECK-NEXT: (typeof (i)) $0 = 1
  (lldb) expression int i; typeof(i) j = 1; j
  (typeof (i)) $1 = 1
  (lldb) # CHECK: (lldb) expression int i; typeof(i) j = 1; j
  (lldb) # CHECK-NEXT: (typeof (i)) $1 = 1
  (lldb) expression int i; decltype(i) j = 1; j
  (decltype(i)) $2 = 1
  (lldb) # CHECK: (lldb) expression int i; decltype(i) j = 1; j
  (lldb) # CHECK-NEXT: (decltype(i)) $2 = 1


https://reviews.llvm.org/D43471

Files:
  lit/Expr/TestTypeOfDeclTypeExpr.test
  source/Symbol/ClangASTContext.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43471.134955.patch
Type: text/x-patch
Size: 6195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180219/cd57f642/attachment.bin>


More information about the lldb-commits mailing list