[Lldb-commits] [PATCH] D72133: Data formatters: Look through array element typedefs
Jaroslav Sevcik via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 3 02:36:35 PST 2020
jarin created this revision.
jarin added a project: LLDB.
Herald added a subscriber: lldb-commits.
Motivation: When formatting an array of typedefed chars, we would like to display the array as a string.
The string formatter currently does not trigger because the formatter lookup does not resolve typedefs for array elements (this behavior is inconsistent with pointers, for those we do look through pointee typedefs). This patch tries to make the array formatter lookup somewhat consistent with the pointer formatter lookup.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72133
Files:
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/array_typedef/Makefile
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/array_typedef/TestArrayTypedef.py
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/array_typedef/main.cpp
lldb/source/API/SBType.cpp
lldb/source/DataFormatters/FormatManager.cpp
lldb/source/Symbol/ClangASTContext.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72133.236006.patch
Type: text/x-patch
Size: 4492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200103/088ad8fd/attachment.bin>
More information about the lldb-commits
mailing list