mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
[lldb] Make char[N] formatters respect the end of the array (PR44649)
I believe this is a more natural behavior, and it also matches what gdb does. Differential Revision: https://reviews.llvm.org/D111399
This commit is contained in:
@@ -722,7 +722,7 @@ void FormatManager::LoadSystemFormatters() {
|
||||
new StringSummaryFormat(string_flags, "${var%s}"));
|
||||
|
||||
lldb::TypeSummaryImplSP string_array_format(
|
||||
new StringSummaryFormat(string_array_flags, "${var%s}"));
|
||||
new StringSummaryFormat(string_array_flags, "${var%char[]}"));
|
||||
|
||||
RegularExpression any_size_char_arr(llvm::StringRef("char \\[[0-9]+\\]"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user