This is an archive of the discontinued LLVM Phabricator instance.

Add quotes for values in the diagnostic remark YAML outputs where necessary
AbandonedPublic

Authored by hfinkel on Oct 4 2016, 10:10 AM.

Details

Reviewers
anemet
Summary

Some of the strings used for the YAML diagnostic remark outputs can be parsed as raw string values in YAML, but many cannot (i.e. anything that has a ':' character, as many of the vectorizer outputs do). Quoting these strings is necessary: otherwise they won't parse correctly. We don't want everything to be a quoted string: numbers should be numbers, etc. but we do need to quote where necessary. This has the side effect of preserving leading/trailing spaces in the output strings, which I think also makes sense.

Diff Detail

Event Timeline

hfinkel updated this revision to Diff 73502.Oct 4 2016, 10:10 AM
hfinkel retitled this revision from to Add quotes for values in the diagnostic remark YAML outputs where necessary.
hfinkel updated this object.
hfinkel added a reviewer: anemet.
hfinkel added a subscriber: llvm-commits.
hfinkel abandoned this revision.Oct 4 2016, 10:16 AM

Not needed after r283231.