This is an archive of the discontinued LLVM Phabricator instance.

[YAML] Plain scalars can not begin with most indicators.
ClosedPublic

Authored by hokein on Jan 22 2018, 1:33 AM.

Details

Summary

Discovered when clangd loads YAML symbols, some symbol documentations
start with indicators (e.g. "-"), but YAML prints them as plain scalars
(no quotes), which make the YAML parser fail to parse.

For these kind of strings, we need quotes.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein created this revision.Jan 22 2018, 1:33 AM
sammccall accepted this revision.Jan 22 2018, 1:42 AM
sammccall added inline comments.
include/llvm/Support/YAMLTraits.h
524 ↗(On Diff #130842)

Up to you, but I'd leave this comment out, or rephrase as a non-fixme - there's nothing *wrong* with the new behavior.

This revision is now accepted and ready to land.Jan 22 2018, 1:42 AM
hokein updated this revision to Diff 130854.Jan 22 2018, 2:19 AM

Remove fixme.

This revision was automatically updated to reflect the committed changes.