https://llvm.org/bugs/show_bug.cgi?id=30934
Bug ID: 30934 Summary: YAML error not reported by ``yaml::Input::error()`` Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Support Libraries Assignee: unassignedb...@nondot.org Reporter: serge.guel...@telecom-bretagne.eu CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 17561 --> https://llvm.org/bugs/attachment.cgi?id=17561&action=edit Possible patch When parsing the following stream: ```yaml - 1 - 2 3 - 4 - 5 ``` Using the ``yaml::Input`` class, an error is printed but the ``error()`` method does not correctly report the issue. I've been digging through the code and it appears that (some) scanner errors are not reported at the Input level. The attached patch demonstrates a possible fix + unittest, I wonder if an auxiliary method would make it more readable? -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs