Sean Silva
aba8270dba
Allow using MemoryBuffers with yaml::Stream directly.
...
The rationale is to get YAML filenames in diagnostics from
yaml::Stream::printError -- currently the filename is hard-coded as
"YAML" because there's no buffer information available.
Patch by Kim Gräsman!
llvm-svn: 168341
2012-11-19 23:21:47 +00:00
Benjamin Kramer
8fb58f6bf0
YAMLParser: Fix invalid reads when encountering incorrectly quoted scalar.
...
Fixes PR12632.
llvm-svn: 164701
2012-09-26 15:52:15 +00:00
Benjamin Kramer
5be8f60126
Remove unused private member variables uncovered by the recent changes to clang's -Wunused-private-field.
...
llvm-svn: 160583
2012-07-20 22:05:57 +00:00
Dmitri Gribenko
dbeafa773a
Convert comments to proper Doxygen comments.
...
llvm-svn: 158248
2012-06-09 00:01:45 +00:00
Michael J. Spencer
c10948d02b
[Support/YAMLParser] Use rtrim on plain scalars.
...
llvm-svn: 156787
2012-05-14 22:43:34 +00:00
Benjamin Kramer
84b857e4e6
YAMLParser: get rid of global ctors & dtors.
...
llvm-svn: 155907
2012-05-01 10:19:59 +00:00
Michael J. Spencer
6033113e35
[Support/YAMLParser] Fix ASan found bugs.
...
llvm-svn: 155735
2012-04-27 21:12:20 +00:00
Michael J. Spencer
a6c2c29152
[Support/YAML] Properly fix unitialized variable warning by inserting a
...
'REPLACEMENT CHARACTER' (U+FFFD) when getAsInteger fails.
llvm-svn: 155653
2012-04-26 19:27:11 +00:00
Bill Wendling
f9774c3253
Remove some potential warnings about variables used uninitialized.
...
llvm-svn: 155307
2012-04-22 07:23:04 +00:00
Benjamin Kramer
0aa0d3d633
YAMLParser: silence warning about tautological comparison on unsigned-char platforms.
...
No functionality change.
llvm-svn: 155280
2012-04-21 10:51:42 +00:00
Benjamin Kramer
a1355d17ca
Move yaml::Stream's dtor out of line so it can see Scanner's dtor.
...
llvm-svn: 154004
2012-04-04 08:53:34 +00:00
Michael J. Spencer
afc0d6a36f
Sorry about that. MSVC seems to accept just about any random string you give it ;/
...
llvm-svn: 153979
2012-04-03 23:36:44 +00:00
Michael J. Spencer
22120c47a7
Add YAML parser to Support.
...
llvm-svn: 153977
2012-04-03 23:09:22 +00:00