Make EMITTER_MANIP an enum class

This fixed -Wshadow warnings emitted when compiling with clang++

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
This commit is contained in:
Ted Lyngmo 2021-04-23 09:12:10 +02:00
parent a6bbe0e50a
commit 0fbc82f98c
8 changed files with 2444 additions and 2444 deletions

View File

@ -10,7 +10,7 @@
#include <string> #include <string>
namespace YAML { namespace YAML {
enum EMITTER_MANIP { enum class EMITTER_MANIP {
// general manipulators // general manipulators
Auto, Auto,
TagByKind, TagByKind,

View File

@ -15,10 +15,10 @@
namespace YAML { namespace YAML {
template <typename Seq> template <typename Seq>
inline Emitter& EmitSeq(Emitter& emitter, const Seq& seq) { inline Emitter& EmitSeq(Emitter& emitter, const Seq& seq) {
emitter << BeginSeq; emitter << EMITTER_MANIP::BeginSeq;
for (const auto& v : seq) for (const auto& v : seq)
emitter << v; emitter << v;
emitter << EndSeq; emitter << EMITTER_MANIP::EndSeq;
return emitter; return emitter;
} }
@ -39,10 +39,10 @@ inline Emitter& operator<<(Emitter& emitter, const std::set<T>& v) {
template <typename K, typename V> template <typename K, typename V>
inline Emitter& operator<<(Emitter& emitter, const std::map<K, V>& m) { inline Emitter& operator<<(Emitter& emitter, const std::map<K, V>& m) {
emitter << BeginMap; emitter << EMITTER_MANIP::BeginMap;
for (const auto& v : m) for (const auto& v : m)
emitter << Key << v.first << Value << v.second; emitter << EMITTER_MANIP::Key << v.first << EMITTER_MANIP::Value << v.second;
emitter << EndMap; emitter << EMITTER_MANIP::EndMap;
return emitter; return emitter;
} }
} }

View File

@ -51,22 +51,22 @@ void EmitFromEvents::OnSequenceStart(const Mark&, const std::string& tag,
EmitProps(tag, anchor); EmitProps(tag, anchor);
switch (style) { switch (style) {
case EmitterStyle::Block: case EmitterStyle::Block:
m_emitter << Block; m_emitter << EMITTER_MANIP::Block;
break; break;
case EmitterStyle::Flow: case EmitterStyle::Flow:
m_emitter << Flow; m_emitter << EMITTER_MANIP::Flow;
break; break;
default: default:
break; break;
} }
// Restore the global settings to eliminate the override from node style // Restore the global settings to eliminate the override from node style
m_emitter.RestoreGlobalModifiedSettings(); m_emitter.RestoreGlobalModifiedSettings();
m_emitter << BeginSeq; m_emitter << EMITTER_MANIP::BeginSeq;
m_stateStack.push(State::WaitingForSequenceEntry); m_stateStack.push(State::WaitingForSequenceEntry);
} }
void EmitFromEvents::OnSequenceEnd() { void EmitFromEvents::OnSequenceEnd() {
m_emitter << EndSeq; m_emitter << EMITTER_MANIP::EndSeq;
assert(m_stateStack.top() == State::WaitingForSequenceEntry); assert(m_stateStack.top() == State::WaitingForSequenceEntry);
m_stateStack.pop(); m_stateStack.pop();
} }
@ -77,22 +77,22 @@ void EmitFromEvents::OnMapStart(const Mark&, const std::string& tag,
EmitProps(tag, anchor); EmitProps(tag, anchor);
switch (style) { switch (style) {
case EmitterStyle::Block: case EmitterStyle::Block:
m_emitter << Block; m_emitter << EMITTER_MANIP::Block;
break; break;
case EmitterStyle::Flow: case EmitterStyle::Flow:
m_emitter << Flow; m_emitter << EMITTER_MANIP::Flow;
break; break;
default: default:
break; break;
} }
// Restore the global settings to eliminate the override from node style // Restore the global settings to eliminate the override from node style
m_emitter.RestoreGlobalModifiedSettings(); m_emitter.RestoreGlobalModifiedSettings();
m_emitter << BeginMap; m_emitter << EMITTER_MANIP::BeginMap;
m_stateStack.push(State::WaitingForKey); m_stateStack.push(State::WaitingForKey);
} }
void EmitFromEvents::OnMapEnd() { void EmitFromEvents::OnMapEnd() {
m_emitter << EndMap; m_emitter << EMITTER_MANIP::EndMap;
assert(m_stateStack.top() == State::WaitingForKey); assert(m_stateStack.top() == State::WaitingForKey);
m_stateStack.pop(); m_stateStack.pop();
} }
@ -103,11 +103,11 @@ void EmitFromEvents::BeginNode() {
switch (m_stateStack.top()) { switch (m_stateStack.top()) {
case State::WaitingForKey: case State::WaitingForKey:
m_emitter << Key; m_emitter << EMITTER_MANIP::Key;
m_stateStack.top() = State::WaitingForValue; m_stateStack.top() = State::WaitingForValue;
break; break;
case State::WaitingForValue: case State::WaitingForValue:
m_emitter << Value; m_emitter << EMITTER_MANIP::Value;
m_stateStack.top() = State::WaitingForKey; m_stateStack.top() = State::WaitingForKey;
break; break;
default: default:

View File

@ -101,32 +101,32 @@ Emitter& Emitter::SetLocalValue(EMITTER_MANIP value) {
return *this; return *this;
switch (value) { switch (value) {
case BeginDoc: case EMITTER_MANIP::BeginDoc:
EmitBeginDoc(); EmitBeginDoc();
break; break;
case EndDoc: case EMITTER_MANIP::EndDoc:
EmitEndDoc(); EmitEndDoc();
break; break;
case BeginSeq: case EMITTER_MANIP::BeginSeq:
EmitBeginSeq(); EmitBeginSeq();
break; break;
case EndSeq: case EMITTER_MANIP::EndSeq:
EmitEndSeq(); EmitEndSeq();
break; break;
case BeginMap: case EMITTER_MANIP::BeginMap:
EmitBeginMap(); EmitBeginMap();
break; break;
case EndMap: case EMITTER_MANIP::EndMap:
EmitEndMap(); EmitEndMap();
break; break;
case Key: case EMITTER_MANIP::Key:
case Value: case EMITTER_MANIP::Value:
// deprecated (these can be deduced by the parity of nodes in a map) // deprecated (these can be deduced by the parity of nodes in a map)
break; break;
case TagByKind: case EMITTER_MANIP::TagByKind:
EmitKindTag(); EmitKindTag();
break; break;
case Newline: case EMITTER_MANIP::Newline:
EmitNewline(); EmitNewline();
break; break;
default: default:
@ -392,7 +392,7 @@ void Emitter::BlockSeqPrepareNode(EmitterNodeType::value child) {
void Emitter::FlowMapPrepareNode(EmitterNodeType::value child) { void Emitter::FlowMapPrepareNode(EmitterNodeType::value child) {
if (m_pState->CurGroupChildCount() % 2 == 0) { if (m_pState->CurGroupChildCount() % 2 == 0) {
if (m_pState->GetMapKeyFormat() == LongKey) if (m_pState->GetMapKeyFormat() == EMITTER_MANIP::LongKey)
m_pState->SetLongKey(); m_pState->SetLongKey();
if (m_pState->CurGroupLongKey()) if (m_pState->CurGroupLongKey())
@ -530,7 +530,7 @@ void Emitter::FlowMapPrepareSimpleKeyValue(EmitterNodeType::value child) {
void Emitter::BlockMapPrepareNode(EmitterNodeType::value child) { void Emitter::BlockMapPrepareNode(EmitterNodeType::value child) {
if (m_pState->CurGroupChildCount() % 2 == 0) { if (m_pState->CurGroupChildCount() % 2 == 0) {
if (m_pState->GetMapKeyFormat() == LongKey) if (m_pState->GetMapKeyFormat() == EMITTER_MANIP::LongKey)
m_pState->SetLongKey(); m_pState->SetLongKey();
if (child == EmitterNodeType::BlockSeq || if (child == EmitterNodeType::BlockSeq ||
child == EmitterNodeType::BlockMap) child == EmitterNodeType::BlockMap)
@ -681,14 +681,14 @@ void Emitter::SpaceOrIndentTo(bool requireSpace, std::size_t indent) {
void Emitter::PrepareIntegralStream(std::stringstream& stream) const { void Emitter::PrepareIntegralStream(std::stringstream& stream) const {
switch (m_pState->GetIntFormat()) { switch (m_pState->GetIntFormat()) {
case Dec: case EMITTER_MANIP::Dec:
stream << std::dec; stream << std::dec;
break; break;
case Hex: case EMITTER_MANIP::Hex:
stream << "0x"; stream << "0x";
stream << std::hex; stream << std::hex;
break; break;
case Oct: case EMITTER_MANIP::Oct:
stream << "0"; stream << "0";
stream << std::oct; stream << std::oct;
break; break;
@ -704,9 +704,9 @@ void Emitter::StartedScalar() { m_pState->StartedScalar(); }
StringEscaping::value GetStringEscapingStyle(const EMITTER_MANIP emitterManip) { StringEscaping::value GetStringEscapingStyle(const EMITTER_MANIP emitterManip) {
switch (emitterManip) { switch (emitterManip) {
case EscapeNonAscii: case EMITTER_MANIP::EscapeNonAscii:
return StringEscaping::NonAscii; return StringEscaping::NonAscii;
case EscapeAsJson: case EMITTER_MANIP::EscapeAsJson:
return StringEscaping::JSON; return StringEscaping::JSON;
default: default:
return StringEscaping::None; return StringEscaping::None;
@ -725,7 +725,7 @@ Emitter& Emitter::Write(const std::string& str) {
m_pState->CurGroupFlowType(), stringEscaping == StringEscaping::NonAscii); m_pState->CurGroupFlowType(), stringEscaping == StringEscaping::NonAscii);
if (strFormat == StringFormat::Literal || str.size() > 1024) if (strFormat == StringFormat::Literal || str.size() > 1024)
m_pState->SetMapKeyFormat(YAML::LongKey, FmtScope::Local); m_pState->SetMapKeyFormat(YAML::EMITTER_MANIP::LongKey, FmtScope::Local);
PrepareNode(EmitterNodeType::Scalar); PrepareNode(EmitterNodeType::Scalar);
@ -759,42 +759,42 @@ std::size_t Emitter::GetDoublePrecision() const {
} }
const char* Emitter::ComputeFullBoolName(bool b) const { const char* Emitter::ComputeFullBoolName(bool b) const {
const EMITTER_MANIP mainFmt = (m_pState->GetBoolLengthFormat() == ShortBool const EMITTER_MANIP mainFmt = (m_pState->GetBoolLengthFormat() == EMITTER_MANIP::ShortBool
? YesNoBool ? EMITTER_MANIP::YesNoBool
: m_pState->GetBoolFormat()); : m_pState->GetBoolFormat());
const EMITTER_MANIP caseFmt = m_pState->GetBoolCaseFormat(); const EMITTER_MANIP caseFmt = m_pState->GetBoolCaseFormat();
switch (mainFmt) { switch (mainFmt) {
case YesNoBool: case EMITTER_MANIP::YesNoBool:
switch (caseFmt) { switch (caseFmt) {
case UpperCase: case EMITTER_MANIP::UpperCase:
return b ? "YES" : "NO"; return b ? "YES" : "NO";
case CamelCase: case EMITTER_MANIP::CamelCase:
return b ? "Yes" : "No"; return b ? "Yes" : "No";
case LowerCase: case EMITTER_MANIP::LowerCase:
return b ? "yes" : "no"; return b ? "yes" : "no";
default: default:
break; break;
} }
break; break;
case OnOffBool: case EMITTER_MANIP::OnOffBool:
switch (caseFmt) { switch (caseFmt) {
case UpperCase: case EMITTER_MANIP::UpperCase:
return b ? "ON" : "OFF"; return b ? "ON" : "OFF";
case CamelCase: case EMITTER_MANIP::CamelCase:
return b ? "On" : "Off"; return b ? "On" : "Off";
case LowerCase: case EMITTER_MANIP::LowerCase:
return b ? "on" : "off"; return b ? "on" : "off";
default: default:
break; break;
} }
break; break;
case TrueFalseBool: case EMITTER_MANIP::TrueFalseBool:
switch (caseFmt) { switch (caseFmt) {
case UpperCase: case EMITTER_MANIP::UpperCase:
return b ? "TRUE" : "FALSE"; return b ? "TRUE" : "FALSE";
case CamelCase: case EMITTER_MANIP::CamelCase:
return b ? "True" : "False"; return b ? "True" : "False";
case LowerCase: case EMITTER_MANIP::LowerCase:
return b ? "true" : "false"; return b ? "true" : "false";
default: default:
break; break;
@ -809,13 +809,13 @@ const char* Emitter::ComputeFullBoolName(bool b) const {
const char* Emitter::ComputeNullName() const { const char* Emitter::ComputeNullName() const {
switch (m_pState->GetNullFormat()) { switch (m_pState->GetNullFormat()) {
case LowerNull: case EMITTER_MANIP::LowerNull:
return "null"; return "null";
case UpperNull: case EMITTER_MANIP::UpperNull:
return "NULL"; return "NULL";
case CamelNull: case EMITTER_MANIP::CamelNull:
return "Null"; return "Null";
case TildeNull: case EMITTER_MANIP::TildeNull:
// fallthrough // fallthrough
default: default:
return "~"; return "~";
@ -829,7 +829,7 @@ Emitter& Emitter::Write(bool b) {
PrepareNode(EmitterNodeType::Scalar); PrepareNode(EmitterNodeType::Scalar);
const char* name = ComputeFullBoolName(b); const char* name = ComputeFullBoolName(b);
if (m_pState->GetBoolLengthFormat() == ShortBool) if (m_pState->GetBoolLengthFormat() == EMITTER_MANIP::ShortBool)
m_stream << name[0]; m_stream << name[0];
else else
m_stream << name; m_stream << name;

View File

@ -8,19 +8,19 @@ EmitterState::EmitterState()
: m_isGood(true), : m_isGood(true),
m_lastError{}, m_lastError{},
// default global manipulators // default global manipulators
m_charset(EmitNonAscii), m_charset(EMITTER_MANIP::EmitNonAscii),
m_strFmt(Auto), m_strFmt(EMITTER_MANIP::Auto),
m_boolFmt(TrueFalseBool), m_boolFmt(EMITTER_MANIP::TrueFalseBool),
m_boolLengthFmt(LongBool), m_boolLengthFmt(EMITTER_MANIP::LongBool),
m_boolCaseFmt(LowerCase), m_boolCaseFmt(EMITTER_MANIP::LowerCase),
m_nullFmt(TildeNull), m_nullFmt(EMITTER_MANIP::TildeNull),
m_intFmt(Dec), m_intFmt(EMITTER_MANIP::Dec),
m_indent(2), m_indent(2),
m_preCommentIndent(2), m_preCommentIndent(2),
m_postCommentIndent(1), m_postCommentIndent(1),
m_seqFmt(Block), m_seqFmt(EMITTER_MANIP::Block),
m_mapFmt(Block), m_mapFmt(EMITTER_MANIP::Block),
m_mapKeyFmt(Auto), m_mapKeyFmt(EMITTER_MANIP::Auto),
m_floatPrecision(std::numeric_limits<float>::max_digits10), m_floatPrecision(std::numeric_limits<float>::max_digits10),
m_doublePrecision(std::numeric_limits<double>::max_digits10), m_doublePrecision(std::numeric_limits<double>::max_digits10),
// //
@ -98,12 +98,12 @@ void EmitterState::StartedNode() {
EmitterNodeType::value EmitterState::NextGroupType( EmitterNodeType::value EmitterState::NextGroupType(
GroupType::value type) const { GroupType::value type) const {
if (type == GroupType::Seq) { if (type == GroupType::Seq) {
if (GetFlowType(type) == Block) if (GetFlowType(type) == EMITTER_MANIP::Block)
return EmitterNodeType::BlockSeq; return EmitterNodeType::BlockSeq;
return EmitterNodeType::FlowSeq; return EmitterNodeType::FlowSeq;
} }
if (GetFlowType(type) == Block) if (GetFlowType(type) == EMITTER_MANIP::Block)
return EmitterNodeType::BlockMap; return EmitterNodeType::BlockMap;
return EmitterNodeType::FlowMap; return EmitterNodeType::FlowMap;
@ -146,7 +146,7 @@ void EmitterState::StartedGroup(GroupType::value type) {
pGroup->modifiedSettings = std::move(m_modifiedSettings); pGroup->modifiedSettings = std::move(m_modifiedSettings);
// set up group // set up group
if (GetFlowType(type) == Block) { if (GetFlowType(type) == EMITTER_MANIP::Block) {
pGroup->flowType = FlowType::Block; pGroup->flowType = FlowType::Block;
} else { } else {
pGroup->flowType = FlowType::Flow; pGroup->flowType = FlowType::Flow;
@ -240,9 +240,9 @@ void EmitterState::RestoreGlobalModifiedSettings() {
bool EmitterState::SetOutputCharset(EMITTER_MANIP value, bool EmitterState::SetOutputCharset(EMITTER_MANIP value,
FmtScope::value scope) { FmtScope::value scope) {
switch (value) { switch (value) {
case EmitNonAscii: case EMITTER_MANIP::EmitNonAscii:
case EscapeNonAscii: case EMITTER_MANIP::EscapeNonAscii:
case EscapeAsJson: case EMITTER_MANIP::EscapeAsJson:
_Set(m_charset, value, scope); _Set(m_charset, value, scope);
return true; return true;
default: default:
@ -252,10 +252,10 @@ bool EmitterState::SetOutputCharset(EMITTER_MANIP value,
bool EmitterState::SetStringFormat(EMITTER_MANIP value, FmtScope::value scope) { bool EmitterState::SetStringFormat(EMITTER_MANIP value, FmtScope::value scope) {
switch (value) { switch (value) {
case Auto: case EMITTER_MANIP::Auto:
case SingleQuoted: case EMITTER_MANIP::SingleQuoted:
case DoubleQuoted: case EMITTER_MANIP::DoubleQuoted:
case Literal: case EMITTER_MANIP::Literal:
_Set(m_strFmt, value, scope); _Set(m_strFmt, value, scope);
return true; return true;
default: default:
@ -265,9 +265,9 @@ bool EmitterState::SetStringFormat(EMITTER_MANIP value, FmtScope::value scope) {
bool EmitterState::SetBoolFormat(EMITTER_MANIP value, FmtScope::value scope) { bool EmitterState::SetBoolFormat(EMITTER_MANIP value, FmtScope::value scope) {
switch (value) { switch (value) {
case OnOffBool: case EMITTER_MANIP::OnOffBool:
case TrueFalseBool: case EMITTER_MANIP::TrueFalseBool:
case YesNoBool: case EMITTER_MANIP::YesNoBool:
_Set(m_boolFmt, value, scope); _Set(m_boolFmt, value, scope);
return true; return true;
default: default:
@ -278,8 +278,8 @@ bool EmitterState::SetBoolFormat(EMITTER_MANIP value, FmtScope::value scope) {
bool EmitterState::SetBoolLengthFormat(EMITTER_MANIP value, bool EmitterState::SetBoolLengthFormat(EMITTER_MANIP value,
FmtScope::value scope) { FmtScope::value scope) {
switch (value) { switch (value) {
case LongBool: case EMITTER_MANIP::LongBool:
case ShortBool: case EMITTER_MANIP::ShortBool:
_Set(m_boolLengthFmt, value, scope); _Set(m_boolLengthFmt, value, scope);
return true; return true;
default: default:
@ -290,9 +290,9 @@ bool EmitterState::SetBoolLengthFormat(EMITTER_MANIP value,
bool EmitterState::SetBoolCaseFormat(EMITTER_MANIP value, bool EmitterState::SetBoolCaseFormat(EMITTER_MANIP value,
FmtScope::value scope) { FmtScope::value scope) {
switch (value) { switch (value) {
case UpperCase: case EMITTER_MANIP::UpperCase:
case LowerCase: case EMITTER_MANIP::LowerCase:
case CamelCase: case EMITTER_MANIP::CamelCase:
_Set(m_boolCaseFmt, value, scope); _Set(m_boolCaseFmt, value, scope);
return true; return true;
default: default:
@ -302,10 +302,10 @@ bool EmitterState::SetBoolCaseFormat(EMITTER_MANIP value,
bool EmitterState::SetNullFormat(EMITTER_MANIP value, FmtScope::value scope) { bool EmitterState::SetNullFormat(EMITTER_MANIP value, FmtScope::value scope) {
switch (value) { switch (value) {
case LowerNull: case EMITTER_MANIP::LowerNull:
case UpperNull: case EMITTER_MANIP::UpperNull:
case CamelNull: case EMITTER_MANIP::CamelNull:
case TildeNull: case EMITTER_MANIP::TildeNull:
_Set(m_nullFmt, value, scope); _Set(m_nullFmt, value, scope);
return true; return true;
default: default:
@ -315,9 +315,9 @@ bool EmitterState::SetNullFormat(EMITTER_MANIP value, FmtScope::value scope) {
bool EmitterState::SetIntFormat(EMITTER_MANIP value, FmtScope::value scope) { bool EmitterState::SetIntFormat(EMITTER_MANIP value, FmtScope::value scope) {
switch (value) { switch (value) {
case Dec: case EMITTER_MANIP::Dec:
case Hex: case EMITTER_MANIP::Hex:
case Oct: case EMITTER_MANIP::Oct:
_Set(m_intFmt, value, scope); _Set(m_intFmt, value, scope);
return true; return true;
default: default:
@ -354,8 +354,8 @@ bool EmitterState::SetPostCommentIndent(std::size_t value,
bool EmitterState::SetFlowType(GroupType::value groupType, EMITTER_MANIP value, bool EmitterState::SetFlowType(GroupType::value groupType, EMITTER_MANIP value,
FmtScope::value scope) { FmtScope::value scope) {
switch (value) { switch (value) {
case Block: case EMITTER_MANIP::Block:
case Flow: case EMITTER_MANIP::Flow:
_Set(groupType == GroupType::Seq ? m_seqFmt : m_mapFmt, value, scope); _Set(groupType == GroupType::Seq ? m_seqFmt : m_mapFmt, value, scope);
return true; return true;
default: default:
@ -366,7 +366,7 @@ bool EmitterState::SetFlowType(GroupType::value groupType, EMITTER_MANIP value,
EMITTER_MANIP EmitterState::GetFlowType(GroupType::value groupType) const { EMITTER_MANIP EmitterState::GetFlowType(GroupType::value groupType) const {
// force flow style if we're currently in a flow // force flow style if we're currently in a flow
if (CurGroupFlowType() == FlowType::Flow) if (CurGroupFlowType() == FlowType::Flow)
return Flow; return EMITTER_MANIP::Flow;
// otherwise, go with what's asked of us // otherwise, go with what's asked of us
return (groupType == GroupType::Seq ? m_seqFmt.get() : m_mapFmt.get()); return (groupType == GroupType::Seq ? m_seqFmt.get() : m_mapFmt.get());
@ -374,8 +374,8 @@ EMITTER_MANIP EmitterState::GetFlowType(GroupType::value groupType) const {
bool EmitterState::SetMapKeyFormat(EMITTER_MANIP value, FmtScope::value scope) { bool EmitterState::SetMapKeyFormat(EMITTER_MANIP value, FmtScope::value scope) {
switch (value) { switch (value) {
case Auto: case EMITTER_MANIP::Auto:
case LongKey: case EMITTER_MANIP::LongKey:
_Set(m_mapKeyFmt, value, scope); _Set(m_mapKeyFmt, value, scope);
return true; return true;
default: default:

View File

@ -272,19 +272,19 @@ StringFormat::value ComputeStringFormat(const std::string& str,
FlowType::value flowType, FlowType::value flowType,
bool escapeNonAscii) { bool escapeNonAscii) {
switch (strFormat) { switch (strFormat) {
case Auto: case EMITTER_MANIP::Auto:
if (IsValidPlainScalar(str, flowType, escapeNonAscii)) { if (IsValidPlainScalar(str, flowType, escapeNonAscii)) {
return StringFormat::Plain; return StringFormat::Plain;
} }
return StringFormat::DoubleQuoted; return StringFormat::DoubleQuoted;
case SingleQuoted: case EMITTER_MANIP::SingleQuoted:
if (IsValidSingleQuotedScalar(str, escapeNonAscii)) { if (IsValidSingleQuotedScalar(str, escapeNonAscii)) {
return StringFormat::SingleQuoted; return StringFormat::SingleQuoted;
} }
return StringFormat::DoubleQuoted; return StringFormat::DoubleQuoted;
case DoubleQuoted: case EMITTER_MANIP::DoubleQuoted:
return StringFormat::DoubleQuoted; return StringFormat::DoubleQuoted;
case Literal: case EMITTER_MANIP::Literal:
if (IsValidLiteralScalar(str, flowType, escapeNonAscii)) { if (IsValidLiteralScalar(str, flowType, escapeNonAscii)) {
return StringFormat::Literal; return StringFormat::Literal;
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff