[YAML] Support extended spellings when parsing bools.
authorNathan James <n.james93@hotmail.co.uk>
Sat, 12 Dec 2020 12:50:33 +0000 (12:50 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Sat, 12 Dec 2020 12:50:34 +0000 (12:50 +0000)
commit0e5bfffb1361727eb163c4ecdd5836818064240f
treeb69f7684dde8c799355288aa72412169b698e7af
parentf6e885ad2a94357f6f4d18ddf26a8111b3df7ed3
[YAML] Support extended spellings when parsing bools.

Support all the spellings of boolean datatypes according to https://yaml.org/type/bool.html

Reviewed By: silvas

Differential Revision: https://reviews.llvm.org/D92755
llvm/include/llvm/Support/YAMLParser.h
llvm/include/llvm/Support/YAMLTraits.h
llvm/lib/Support/YAMLParser.cpp
llvm/lib/Support/YAMLTraits.cpp
llvm/unittests/Support/YAMLParserTest.cpp