Enrico Granata
b766292951
Fix an issue where LLDB would truncate summaries for string types without producing any evidence thereof
...
llvm-svn: 252018
2015-11-04 00:02:08 +00:00
Enrico Granata
d717cc9f71
Rationalization of includes in the data formatters code
...
llvm-svn: 250798
2015-10-20 04:50:09 +00:00
Saleem Abdulrasool
43d3a7ae01
Silence -Wreturn-type with gcc 5.2
...
The switch is fully covered, mark "default" as unreachable. NFC.
llvm-svn: 250667
2015-10-18 20:51:18 +00:00
Saleem Abdulrasool
ba507b04e1
Silence -Wqual-cast warnings from GCC 5.2
...
There were a number of const qualifiers being cast away which caused warnings.
This cluttered the output hiding real errors. Silence them by explicit casting.
NFC.
llvm-svn: 250662
2015-10-18 19:34:38 +00:00
Enrico Granata
d54f7fb8eb
Enable the StringPrinter to have prefixes that are strings instead of just a single character; and also introduce a comparable suffix mechanism
...
llvm-svn: 249506
2015-10-07 02:06:48 +00:00
Enrico Granata
ac49453b58
Introduce the notion of an escape helper. Different languages have different notion of what to print in a string and how to escape non-printable things. The escape helper is where this notion is provided to LLDB
...
This is NFC, other than a code re-org
llvm-svn: 247200
2015-09-09 22:30:24 +00:00
Enrico Granata
ad650a189c
Preparatory work for letting language plugins help the StringPrinter with formatting special characters
...
llvm-svn: 247189
2015-09-09 20:59:49 +00:00
Enrico Granata
8101f570f8
Teach the std::wstring data formatter how to properly display strings with embedded NUL bytes
...
llvm-svn: 242501
2015-07-17 01:56:25 +00:00
Enrico Granata
d07f7550a9
Add StringPrinter support for printing a std::string with embedded NUL bytes
...
llvm-svn: 242496
2015-07-17 01:03:59 +00:00
Vince Harron
d7e6a4f2f0
Fixed a ton of gcc compile warnings
...
Removed some unused variables, added some consts, changed some casts
to const_cast. I don't think any of these changes are very
controversial.
Differential Revision: http://reviews.llvm.org/D9674
llvm-svn: 237218
2015-05-13 00:25:54 +00:00
Enrico Granata
b0e8a55d4d
Fix an issue where the UTF dumper was ignoring the direction to generate uncapped dumps
...
llvm-svn: 236362
2015-05-01 22:57:38 +00:00
Andy Gibbs
3acfe1a3d9
Fix trivial signed/unsigned comparison warnings
...
llvm-svn: 224932
2014-12-29 13:03:19 +00:00
Enrico Granata
da04fbb535
We don't really handle printing embedded NULs in strings, but if we were to, we would need to have this logic inside the StringPrinter. So, add it.. For, you know, one day in the future where we might want to handle embedded NULs in strings...
...
llvm-svn: 224537
2014-12-18 19:43:29 +00:00
Enrico Granata
34042212b2
Add the ability for the NSString and libc++ std::string formatters to retrieve uncapped data
...
llvm-svn: 222277
2014-11-18 22:54:45 +00:00
Enrico Granata
099263b487
Fix a problem where the StringPrinter could be mistaking an empty string for a read error, and reporting spurious 'unable to read data' messages. rdar://19007243
...
llvm-svn: 222190
2014-11-17 23:14:11 +00:00
Enrico Granata
ebdc1ac014
Add a setting escape-non-printables that drives whether the StringPrinter should or should not escape sequences such as \t, \n, .. and generally any non-printing character
...
The recent StringPrinter changes made this behavior the default, and the setting defaults to yes
If you want to change this behavior and see non-printables unescaped (e.g. "a\tb" as "a b"), set it to false
Fixes rdar://12969594
llvm-svn: 221399
2014-11-05 21:20:48 +00:00
Shawn Best
fd13743f57
for Siva Chandra: Fix compilation of StringPrinter.cpp with GCC. Differential Revision: http://reviews.llvm.org/D6122
...
llvm-svn: 221310
2014-11-04 22:43:34 +00:00
Zachary Turner
c19cf1d424
Remove #include <codecvt>. It isn't supported on all compilers.
...
Also it wasn't being used anyway, so it appears to be a dead include.
llvm-svn: 220921
2014-10-30 19:42:08 +00:00
Enrico Granata
ca6c8ee23b
Start adopting the StringPrinter API. The StringPrinter API is the new blessed way of printing strings that supports escaping non-printables, and has better handling of different UTF encodings
...
llvm-svn: 220894
2014-10-30 01:45:39 +00:00