Make IAST::FormatSettings more regular, pt. II

This commit is contained in:
Robert Schulze 2023-07-19 17:21:03 +00:00
parent 35a4fabc2d
commit e5ec6a1523
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -191,8 +191,8 @@ public:
struct FormatSettings
{
WriteBuffer & ostr;
bool hilite = false;
bool one_line;
bool hilite = false;
bool always_quote_identifiers = false;
IdentifierQuotingStyle identifier_quoting_style = IdentifierQuotingStyle::Backticks;
bool show_secrets = true; /// Show secret parts of the AST (e.g. passwords, encryption keys).
@ -207,13 +207,13 @@ public:
FormatSettings(WriteBuffer & ostr_, const FormatSettings & other)
: ostr(ostr_)
, hilite(other.hilite)
, one_line(other.one_line)
, hilite(other.hilite)
, always_quote_identifiers(other.always_quote_identifiers)
, identifier_quoting_style(other.identifier_quoting_style)
, show_secrets(other.show_secrets)
, nl_or_ws(other.nl_or_ws)
{
nl_or_ws = one_line ? ' ' : '\n';
}
void writeIdentifier(const String & name) const;