Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3249)

Issue 5604054: YAML Parser

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by klimek
Modified:
9 years, 3 months ago
Reviewers:
bigcheesegs
CC:
klimek
Visibility:
Public.

Patch Set 1 #

Total comments: 75

Patch Set 2 : Update #

Total comments: 24
Unified diffs Side-by-side diffs Delta from patch set Stats (+4663 lines, -0 lines) Patch
M CMakeLists.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LICENSE.TXT View 1 chunk +1 line, -0 lines 0 comments Download
A include/llvm/Support/YAMLParser.h View 1 1 chunk +498 lines, -0 lines 3 comments Download
M lib/Support/CMakeLists.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A lib/Support/YAMLParser.cpp View 1 1 chunk +2119 lines, -0 lines 21 comments Download
A test/YAMLParser/LICENSE.txt View 1 chunk +19 lines, -0 lines 0 comments Download
A test/YAMLParser/bool.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-binary-py2.data View 1 chunk +14 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-binary-py3.data View 1 chunk +14 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-bool.data View 1 chunk +11 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-custom.data View 1 chunk +28 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-float.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-int.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-map.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-merge.data View 1 chunk +29 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-null.data View 1 chunk +20 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-omap.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-pairs.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-bool.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-bytes-py3.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-complex.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-float.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-int.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-long-short-py2.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-long-short-py3.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-name-module.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-none.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-object.data View 1 chunk +23 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-str-ascii.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-str-utf8-py2.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-str-utf8-py3.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-tuple-list-dict.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-unicode-ascii-py2.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-unicode-ascii-py3.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-unicode-utf8-py2.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-python-unicode-utf8-py3.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-seq.data View 1 chunk +17 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-set.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-str.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-str-ascii.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-str-utf8-py2.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-str-utf8-py3.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-timestamp.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/construct-value.data View 1 chunk +12 lines, -0 lines 0 comments Download
A test/YAMLParser/dg.exp View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/duplicate-key.former-loader-error.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/duplicate-mapping-key.former-loader-error.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/duplicate-merge-key.former-loader-error.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/duplicate-value-key.former-loader-error.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/emitting-unacceptable-unicode-character-bug-py2.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/emitting-unacceptable-unicode-character-bug-py3.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/empty-document-bug.data View 1 chunk +2 lines, -0 lines 0 comments Download
A test/YAMLParser/float.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/float-representer-2.3-bug.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/int.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/invalid-single-quote-bug.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/merge.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/more-floats.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/negative-float-bug.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/null.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/resolver.data View 1 chunk +32 lines, -0 lines 0 comments Download
A test/YAMLParser/run-parser-crash-bug.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/scan-document-end-bug.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/scan-line-break-bug.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/single-dot-is-not-float-bug.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/sloppy-indentation.data View 1 chunk +19 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-01.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-02.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-03.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-04.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-05.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-06.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-07.data View 1 chunk +12 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-08.data View 1 chunk +12 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-09.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-10.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-11.data View 1 chunk +11 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-12.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-13.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-14.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-15.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-16.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-17.data View 1 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-18.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-19.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-20.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-21.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-22.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-23.data View 1 chunk +15 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-24.data View 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-25.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-26.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-27.data View 1 chunk +31 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-02-28.data View 1 chunk +28 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-01-utf8.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-02-utf8.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-03.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-04.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-05.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-06.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-07.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-08.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-09.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-10.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-11.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-12.data View 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-13.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-14.data View 1 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-05-15.data View 1 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-01.data View 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-02.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-03.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-04.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-05.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-06.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-07.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-06-08.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-01.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-02.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-03.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-04.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-05.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-06.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-07a.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-07b.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-08.data View 1 chunk +11 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-09.data View 1 chunk +13 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-10.data View 1 chunk +13 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-11.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-12a.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-12b.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-07-13.data View 1 chunk +11 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-01.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-02.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-03.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-04.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-05.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-06.data View 1 chunk +12 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-07.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-08.data View 1 chunk +15 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-09.data View 1 chunk +13 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-10.data View 1 chunk +17 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-11.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-12.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-13.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-14.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-08-15.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-01.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-02.data View 1 1 chunk +14 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-03.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-04.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-05.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-06.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-07.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-08.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-09.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-10.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-11.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-12.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-13.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-14.data View 1 chunk +21 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-15.data View 1 chunk +15 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-16.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-17.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-18.data View 1 chunk +11 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-19.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-20.data View 1 chunk +13 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-21.data View 1 chunk +12 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-22.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-23.data View 1 chunk +13 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-24.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-25.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-26.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-27.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-28.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-29.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-30.data View 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-31.data View 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-32.data View 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-09-33.data View 1 chunk +16 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-01.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-02.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-03.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-04.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-05.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-06.data View 1 chunk +4 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-07.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-08.data View 1 chunk +13 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-09.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-10.data View 1 chunk +10 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-11.data View 1 chunk +9 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-12.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-13.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-14.data View 1 chunk +6 lines, -0 lines 0 comments Download
A test/YAMLParser/spec-10-15.data View 1 chunk +5 lines, -0 lines 0 comments Download
A test/YAMLParser/str.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/timestamp.data View 1 chunk +7 lines, -0 lines 0 comments Download
A test/YAMLParser/timestamp-bugs.data View 1 chunk +8 lines, -0 lines 0 comments Download
A test/YAMLParser/utf8.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/utf8-implicit.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/value.data View 1 chunk +3 lines, -0 lines 0 comments Download
A test/YAMLParser/yaml.data View 1 chunk +5 lines, -0 lines 0 comments Download
M unittests/CMakeLists.txt View 1 chunk +1 line, -0 lines 0 comments Download
A unittests/Support/YAMLParserTest.cpp View 1 1 chunk +178 lines, -0 lines 0 comments Download
A utils/yaml-bench/CMakeLists.txt View 1 chunk +5 lines, -0 lines 0 comments Download
A utils/yaml-bench/Makefile View 1 chunk +20 lines, -0 lines 0 comments Download
A utils/yaml-bench/YAMLBench.cpp View 1 1 chunk +201 lines, -0 lines 0 comments Download

Messages

Total messages: 6
klimek
First run over the header. Generally, the tooling code doesn't change too much with the ...
12 years, 10 months ago (2012-02-02 10:19:21 UTC) #1
Bigcheesegs
On 2012/02/02 10:19:21, klimek wrote: > First run over the header. Generally, the tooling code ...
12 years, 10 months ago (2012-02-05 00:50:24 UTC) #2
Bigcheesegs
On 2012/02/02 10:19:21, klimek wrote: > First run over the header. Generally, the tooling code ...
12 years, 10 months ago (2012-02-05 05:52:50 UTC) #3
klimek
http://codereview.appspot.com/5604054/diff/1/include/llvm/Support/YAMLParser.h File include/llvm/Support/YAMLParser.h (right): http://codereview.appspot.com/5604054/diff/1/include/llvm/Support/YAMLParser.h#newcode161 include/llvm/Support/YAMLParser.h:161: /// others) before the SimpleKey's Tok. On 2012/02/05 05:52:50, ...
12 years, 10 months ago (2012-02-16 15:52:34 UTC) #4
Bigcheesegs
http://codereview.appspot.com/5604054/diff/6001/include/llvm/Support/YAMLParser.h File include/llvm/Support/YAMLParser.h (right): http://codereview.appspot.com/5604054/diff/6001/include/llvm/Support/YAMLParser.h#newcode71 include/llvm/Support/YAMLParser.h:71: std::string escape(StringRef Input); On 2012/02/16 15:52:35, klimek wrote: > ...
12 years, 10 months ago (2012-02-16 22:32:42 UTC) #5
klimek
12 years, 10 months ago (2012-02-21 01:02:57 UTC) #6
http://codereview.appspot.com/5604054/diff/6001/lib/Support/YAMLParser.cpp
File lib/Support/YAMLParser.cpp (right):

http://codereview.appspot.com/5604054/diff/6001/lib/Support/YAMLParser.cpp#ne...
lib/Support/YAMLParser.cpp:693: EscapedInput += "\\x" +
std::string(HexStr.size() - 2, '0') + HexStr;
On 2012/02/16 22:32:42, Bigcheesegs wrote:
> On 2012/02/16 15:52:35, klimek wrote:
> > Why's the middle part there?
> 
> \x requires two characters after it. This adds the 0 if needed.

Ok, shouldn't that be 2 - HexStr.size() then?

http://codereview.appspot.com/5604054/diff/6001/lib/Support/YAMLParser.cpp#ne...
lib/Support/YAMLParser.cpp:795: if (   u8d.second != 0
On 2012/02/16 22:32:42, Bigcheesegs wrote:
> On 2012/02/16 15:52:35, klimek wrote:
> > Somehow I cannot match this up with 5.1.
> > Especially:
> > """On input, a YAML processor must accept all Unicode characters except
those
> > explicitly excluded above."""
> > 
> > And, why do we care about non-printable chars at all?
> 
> This excludes the characters listed in 5.1 in addition to the other stuff
> removed from nb-char.
> 
> This is needed to skip entire UTF-8 minimal well formed subsequences at a time
> to keep proper column counts.

If I'm not completely misreading, this excludes much more:
"""To ensure readability, YAML streams use only the printable subset of the
Unicode character set. The allowed character range explicitly excludes the C0
control block #x0-#x1F (except for TAB #x9, LF #xA, and CR #xD which are
allowed), DEL #x7F, the C1 control block #x80-#x9F (except for NEL #x85 which is
allowed), the surrogate block #xD800-#xDFFF, #xFFFE, and #xFFFF."""

The surrogate block cannot actually come out of decodeUTF8.

http://codereview.appspot.com/5604054/diff/6001/lib/Support/YAMLParser.cpp#ne...
lib/Support/YAMLParser.cpp:1627: switch (UnquotedValue[0]) {
On 2012/02/16 22:32:42, Bigcheesegs wrote:
> On 2012/02/16 15:52:35, klimek wrote:
> > Do we want to support all possible escapes, or can we get away with the
subset
> > we really need?
> 
> It's only a few extra lines with no extra complexity...

It is code that needs to be maintained ... shrug.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b