diff options
author | Ben Jackson <puremourning@gmail.com> | 2022-01-07 11:38:47 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-01-07 11:41:16 -0800 |
commit | 7244e9c2f5f3ea02cc0d7103fa35782f050aacf0 (patch) | |
tree | 51d5e77c87fda36ca0659c6fc8acf30807e0328c /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 547658567353d581bd6acbd5f3b3cdd94da2118e (diff) | |
download | llvm-7244e9c2f5f3ea02cc0d7103fa35782f050aacf0.zip llvm-7244e9c2f5f3ea02cc0d7103fa35782f050aacf0.tar.gz llvm-7244e9c2f5f3ea02cc0d7103fa35782f050aacf0.tar.bz2 |
[LLDB] libcxx summary formatters for std::string_view
When printing a std::string_view, print the referenced string as the
summary. Support string_view, u32string_view, u16string_view and
wstring_view, as we do for std::string and friends.
This is based on the existing fomratter for std::string, and just
extracts the data and length members, pushing them through the existing
string formatter.
In testing this, a "FIXME" was corrected for printing of non-ASCII empty
values. Previously, the "u", 'U" etc. prefixes were not printed for
basic_string<> types that were not char. This is trivial to resolve by
printing the prefix before the "".
Differential revision: https://reviews.llvm.org/D112222
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions