summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters/StringPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix some compiler warnings with MSVC 2015.Zachary Turner2016-01-131-1/+1
| | | | llvm-svn: 257671
* Fix an issue where LLDB would truncate summaries for string types without ↵Enrico Granata2015-11-041-4/+28
| | | | | | producing any evidence thereof llvm-svn: 252018
* Rationalization of includes in the data formatters codeEnrico Granata2015-10-201-1/+0
| | | | llvm-svn: 250798
* Silence -Wreturn-type with gcc 5.2Saleem Abdulrasool2015-10-181-0/+1
| | | | | | The switch is fully covered, mark "default" as unreachable. NFC. llvm-svn: 250667
* Silence -Wqual-cast warnings from GCC 5.2Saleem Abdulrasool2015-10-181-2/+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
* Enable the StringPrinter to have prefixes that are strings instead of just a ↵Enrico Granata2015-10-071-5/+12
| | | | | | single character; and also introduce a comparable suffix mechanism llvm-svn: 249506
* Introduce the notion of an escape helper. Different languages have different ↵Enrico Granata2015-09-091-26/+62
| | | | | | | | 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
* Preparatory work for letting language plugins help the StringPrinter with ↵Enrico Granata2015-09-091-97/+14
| | | | | | formatting special characters llvm-svn: 247189
* Teach the std::wstring data formatter how to properly display strings with ↵Enrico Granata2015-07-171-0/+2
| | | | | | embedded NUL bytes llvm-svn: 242501
* Add StringPrinter support for printing a std::string with embedded NUL bytesEnrico Granata2015-07-171-36/+55
| | | | llvm-svn: 242496
* Fixed a ton of gcc compile warningsVince Harron2015-05-131-15/+15
| | | | | | | | | | 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
* Fix an issue where the UTF dumper was ignoring the direction to generate ↵Enrico Granata2015-05-011-1/+1
| | | | | | uncapped dumps llvm-svn: 236362
* Fix trivial signed/unsigned comparison warningsAndy Gibbs2014-12-291-2/+2
| | | | llvm-svn: 224932
* We don't really handle printing embedded NULs in strings, but if we were to, ↵Enrico Granata2014-12-181-0/+6
| | | | | | 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
* Add the ability for the NSString and libc++ std::string formatters to ↵Enrico Granata2014-11-181-1/+3
| | | | | | retrieve uncapped data llvm-svn: 222277
* Fix a problem where the StringPrinter could be mistaking an empty string for ↵Enrico Granata2014-11-171-1/+1
| | | | | | a read error, and reporting spurious 'unable to read data' messages. rdar://19007243 llvm-svn: 222190
* Add a setting escape-non-printables that drives whether the StringPrinter ↵Enrico Granata2014-11-051-0/+15
| | | | | | | | | | | 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
* for Siva Chandra: Fix compilation of StringPrinter.cpp with GCC. ↵Shawn Best2014-11-041-95/+105
| | | | | | Differential Revision: http://reviews.llvm.org/D6122 llvm-svn: 221310
* Remove #include <codecvt>. It isn't supported on all compilers.Zachary Turner2014-10-301-1/+0
| | | | | | Also it wasn't being used anyway, so it appears to be a dead include. llvm-svn: 220921
* Start adopting the StringPrinter API. The StringPrinter API is the new ↵Enrico Granata2014-10-301-0/+618
blessed way of printing strings that supports escaping non-printables, and has better handling of different UTF encodings llvm-svn: 220894
OpenPOWER on IntegriCloud