YAMLIO: Allow scalars to dictate quotation rules
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 10 Apr 2014 07:37:33 +0000 (07:37 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 10 Apr 2014 07:37:33 +0000 (07:37 +0000)
commit878657074a3d65262d4c010dc2261ea688f19e8c
tree7c36abbfa347bd998b0a993f3875e9760d029fa5
parentfb52dba011ae1785654f2f3a3cedef2119789dc2
YAMLIO: Allow scalars to dictate quotation rules

Introduce ScalarTraits::mustQuote which determines whether or not a
StringRef needs quoting before it is acceptable to output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205955 91177308-0d34-0410-b5e6-96231b3b80d8
docs/YamlIO.rst
include/llvm/Object/YAML.h
include/llvm/Support/YAMLTraits.h
lib/MC/MCModuleYAML.cpp
lib/Support/YAMLTraits.cpp
test/Object/X86/objdump-cfg-invalid-opcode.yaml
unittests/Support/YAMLIOTest.cpp