[all-commits] [llvm/llvm-project] 7822b8: [lldb/StringPrinter] Convert DecodedCharBuffer to ...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Wed Jun 3 12:24:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7822b8a817d85827110f3047f4ec63f6825743a4
      https://github.com/llvm/llvm-project/commit/7822b8a817d85827110f3047f4ec63f6825743a4
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M lldb/source/DataFormatters/StringPrinter.cpp

  Log Message:
  -----------
  [lldb/StringPrinter] Convert DecodedCharBuffer to a class, NFC

The m_size and m_data members of DecodedCharBuffer are meant to be
private.


  Commit: 4699a7e23010b7c0df49b64f8bea63919825a787
      https://github.com/llvm/llvm-project/commit/4699a7e23010b7c0df49b64f8bea63919825a787
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M lldb/source/DataFormatters/StringPrinter.cpp
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/main.cpp
    M lldb/unittests/DataFormatter/StringPrinterTests.cpp

  Log Message:
  -----------
  [lldb/StringPrinter] Support strings with invalid utf8 sub-sequences

Support printing strings which contain invalid utf8 sub-sequences, e.g.
strings like "hello world \xfe", instead of bailing out with "Summary
Unavailable".

I took the opportunity here to delete some hand-rolled utf8 -> utf32
conversion code and replace it with calls into llvm's Support library.

rdar://61554346


Compare: https://github.com/llvm/llvm-project/compare/a3fcd6476a4e...4699a7e23010


More information about the All-commits mailing list