Alexander Kornienko
d817824d74
Recover gracefully when deserializing invalid YAML input.
...
Fixes http://llvm.org/PR16221 , http://llvm.org/PR15927
Phabricator: http://llvm-reviews.chandlerc.com/D1236
Patch by Andrew Tulloch!
llvm-svn: 195016
2013-11-18 15:50:04 +00:00
Nick Kledzik
f868d91818
remove extra semicolon
...
llvm-svn: 194658
2013-11-14 03:03:05 +00:00
Nick Kledzik
5701cc8c01
Add dyn_cast<> support to YAML I/O's IO class
...
llvm-svn: 194655
2013-11-14 02:38:07 +00:00
Nick Kledzik
cbecad4abd
Add simple support for tags in YAML I/O
...
llvm-svn: 194644
2013-11-14 00:59:59 +00:00
John Thompson
551080bf52
Reverting my r193344 checkin due to build breakage.
...
llvm-svn: 193350
2013-10-24 14:52:56 +00:00
John Thompson
d6f9322368
Added std::string as a built-in type for mapping.
...
llvm-svn: 193344
2013-10-24 13:36:58 +00:00
Rui Ueyama
e09a70f65a
Re-submit r190469: YAMLIO: Fix string quoting logic.
...
llvm-svn: 190485
2013-09-11 04:00:08 +00:00
Hans Wennborg
3dd49010be
Revert "YAMLIO: Fix string quoting logic." (r190469)
...
It was turning the buildbots red.
llvm-svn: 190480
2013-09-11 01:59:32 +00:00
Rui Ueyama
bdbf3fc714
Remove trailing whitespace
...
llvm-svn: 190472
2013-09-11 00:53:07 +00:00
Rui Ueyama
2ac0a76d79
YAMLIO: Fix string quoting logic.
...
YAMLIO printed a string as is without quotes unless it contains a newline
character. That did not suffice. We also need to quote a string if it starts
with a backquote, quote, double quote or atsign, or it's the empty string.
llvm-svn: 190469
2013-09-11 00:45:48 +00:00
Aaron Ballman
73cc6d0b07
Removing a spurious semi-colon; this macro expands into a namespace.
...
llvm-svn: 188525
2013-08-16 01:53:58 +00:00
Aaron Ballman
ead5a4d04b
Tighten up the yamilizer so it stops eliding empty sequences if the embedded empty sequence is the first key/value in a map which is itself in a sequence.
...
Patch with help from Nick Kledzik.
llvm-svn: 188508
2013-08-15 23:17:53 +00:00
Dmitri Gribenko
501313b41b
Replace memcpys by a static_cast and an integral promotion.
...
llvm-svn: 172108
2013-01-10 21:21:32 +00:00
Dmitri Gribenko
db86689e43
Fix coding style
...
llvm-svn: 172107
2013-01-10 21:10:44 +00:00
Jakub Staszak
3871426bfd
Unbreak tests after regression from r172081.
...
llvm-svn: 172105
2013-01-10 21:02:05 +00:00
David Greene
2ce09092a4
Fix Alias Bug
...
Use memcpy to do type punning instead of a cast. A cast or similar
operation through a union breaks strict aliasing rules.
llvm-svn: 172081
2013-01-10 18:17:54 +00:00
Nick Kledzik
8ae5e45184
Fix how YAML I/O detects flow sequences.
...
Update test case to verify flow sequence is
written as a flow sequence.
llvm-svn: 171514
2013-01-04 19:32:00 +00:00
Nick Kledzik
3b2c99b998
Fix some integer constant warnings by using a suffix
...
llvm-svn: 170376
2012-12-17 22:11:17 +00:00
Nick Kledzik
c826b396ef
re-enable test cases now that traits work with g++. Fix some g++ warnings
...
llvm-svn: 170369
2012-12-17 20:43:53 +00:00
Nick Kledzik
f37b944ea2
Temporarily disable test cases until they compile with g++ too.
...
llvm-svn: 170035
2012-12-12 22:39:45 +00:00
David Blaikie
f993478af6
Unbreak the build. Fallout from r170019.
...
llvm-svn: 170033
2012-12-12 22:14:32 +00:00
Nick Kledzik
2516df02eb
Initial implementation of a utility for converting native data
...
structures to and from YAML using traits. The first client will
be the test suite of lld. The documentation will show up at:
http://llvm.org/docs/YamlIO.html
llvm-svn: 170019
2012-12-12 20:46:15 +00:00