John Thompson
6cd5bd4a3d
Reverting my r193344 checkin due to build breakage.
...
llvm-svn: 193350
2013-10-24 14:52:56 +00:00
John Thompson
e38e57206f
Added std::string as a built-in type for mapping.
...
llvm-svn: 193344
2013-10-24 13:36:58 +00:00
Rui Ueyama
106ededc4e
Re-submit r190469: YAMLIO: Fix string quoting logic.
...
llvm-svn: 190485
2013-09-11 04:00:08 +00:00
Hans Wennborg
33ae7cea9f
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
38dfffa891
Remove trailing whitespace
...
llvm-svn: 190472
2013-09-11 00:53:07 +00:00
Rui Ueyama
9a40ae8935
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
381f59f06f
Removing a spurious semi-colon; this macro expands into a namespace.
...
llvm-svn: 188525
2013-08-16 01:53:58 +00:00
Aaron Ballman
0e63e53da1
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
7b4fb9a65f
Replace memcpys by a static_cast and an integral promotion.
...
llvm-svn: 172108
2013-01-10 21:21:32 +00:00
Dmitri Gribenko
ba9d1b5fcd
Fix coding style
...
llvm-svn: 172107
2013-01-10 21:10:44 +00:00
Jakub Staszak
6a3ef9c094
Unbreak tests after regression from r172081.
...
llvm-svn: 172105
2013-01-10 21:02:05 +00:00
David Greene
4162c2d31b
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
11964f2a8f
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
bed953d699
Fix some integer constant warnings by using a suffix
...
llvm-svn: 170376
2012-12-17 22:11:17 +00:00
Nick Kledzik
52bfd38ee0
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
808f84d35e
Temporarily disable test cases until they compile with g++ too.
...
llvm-svn: 170035
2012-12-12 22:39:45 +00:00
David Blaikie
b088ff6617
Unbreak the build. Fallout from r170019.
...
llvm-svn: 170033
2012-12-12 22:14:32 +00:00
Nick Kledzik
f60a9279ea
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