ClickHouse/dbms/src/Parsers/formatAST.cpp

17 lines
259 B
C++
Raw Normal View History

#include <Parsers/formatAST.h>
2010-06-28 13:44:42 +00:00
#include <sstream>
2010-06-28 13:44:42 +00:00
namespace DB
{
2017-12-01 18:36:55 +00:00
void formatAST(const IAST & ast, std::ostream & s, bool hilite, bool one_line)
{
IAST::FormatSettings settings(s, one_line);
settings.hilite = hilite;
ast.format(settings);
}
2010-06-28 13:44:42 +00:00
}