[Lldb-commits] [PATCH] D43471: Handle typeof() expressions
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 19 09:03:21 PST 2018
JDevlieghere created this revision.
JDevlieghere added reviewers: aprantl, jingham, davide, labath.
Before this patch, LLDB was not able to evaluate expressions that
resulted in a value with a typeof-type.
(lldb) p int i; __typeof__(i) j = 1; j
(typeof (i)) $0 =
This fixes that. The type is still printed as (typeof (i)) but at least
we get a value now.
(lldb) p int i; __typeof__(i) j = 1; j
(typeof (i)) $0 = 1
I'm looking into printing this as `int` but will keep that for a follow-up commit either way.
https://reviews.llvm.org/D43471
Files:
packages/Python/lldbsuite/test/expression_command/test/TestExprs.py
source/Symbol/ClangASTContext.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43471.134933.patch
Type: text/x-patch
Size: 5042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180219/751b9acb/attachment.bin>
More information about the lldb-commits
mailing list