You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4530: toCppCode() method for ParseTree and TreeNode (#2777)
* toCppCode for ParseTree and TreeNode * generated tree is compiling * Put tree constructors into tests * Minor fixes * Fixed parse + some constructors * Fixed includes, removed debug and old data * Hopefully fix clang errors * Forgot an override * More overrides
This commit is contained in:
@ -64,7 +64,17 @@ const string TreeNodeImpl::toString() const
|
||||
return string(">TreeNodeImpl<");
|
||||
}
|
||||
|
||||
bool TreeNodeImpl::operator==(const TreeNodeImpl& t) const
|
||||
std::string TreeNodeImpl::toCppCode(IncludeSet& includes) const
|
||||
{
|
||||
includes.insert("treenodeimpl.h");
|
||||
stringstream ss;
|
||||
|
||||
ss << "TreeNodeImpl(" << std::quoted(fData) << ")";
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
bool TreeNodeImpl::operator==(const TreeNodeImpl& t) const
|
||||
{
|
||||
if (data() == t.data())
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user