1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

chore(codestyle): mark virtual methods as override

This commit is contained in:
Aleksei Antipovskii
2024-09-12 12:27:02 +02:00
committed by Leonid Fedorov
parent 6001db44ab
commit 5556d818f8
303 changed files with 4091 additions and 4894 deletions

View File

@ -26,7 +26,7 @@
#pragma once
//#undef LOG_INFO
// #undef LOG_INFO
#include <my_config.h>
#include "idb_mysql.h"
#include "ha_mcs_impl_if.h"
@ -48,9 +48,7 @@ class SubQuery
next = *gwip.subQueriesChain;
*gwip.subQueriesChain = this;
}
virtual ~SubQuery()
{
}
virtual ~SubQuery() = default;
virtual gp_walk_info& gwip() const
{
return fGwip;
@ -111,9 +109,7 @@ class WhereSubQuery : public SubQuery
WhereSubQuery(gp_walk_info& gwip, Item_subselect* sub) : SubQuery(gwip), fSub(sub)
{
} // for exists
virtual ~WhereSubQuery()
{
}
~WhereSubQuery() override = default;
/** Accessors and mutators */
virtual Item_subselect* sub() const
@ -150,8 +146,8 @@ class ScalarSub : public WhereSubQuery
ScalarSub(gp_walk_info& gwip, Item_func* func);
ScalarSub(gp_walk_info& gwip, const execplan::SRCP& column, Item_subselect* sub, Item_func* func);
ScalarSub(const ScalarSub& rhs);
~ScalarSub();
execplan::ParseTree* transform();
~ScalarSub() override;
execplan::ParseTree* transform() override;
execplan::ParseTree* transform_between();
execplan::ParseTree* transform_in();
execplan::ParseTree* buildParseTree(execplan::PredicateOperator* op);
@ -177,10 +173,10 @@ class InSub : public WhereSubQuery
InSub(gp_walk_info& gwip);
InSub(gp_walk_info& gwip, Item_func* func);
InSub(const InSub& rhs);
~InSub();
execplan::ParseTree* transform();
~InSub() override;
execplan::ParseTree* transform() override;
void handleFunc(gp_walk_info* gwip, Item_func* func);
void handleNot();
void handleNot() override;
};
/**
@ -191,9 +187,9 @@ class ExistsSub : public WhereSubQuery
public:
ExistsSub(gp_walk_info&); // not complete. just for compile
ExistsSub(gp_walk_info&, Item_subselect* sub);
~ExistsSub();
execplan::ParseTree* transform();
void handleNot();
~ExistsSub() override;
execplan::ParseTree* transform() override;
void handleNot() override;
};
/**
@ -211,7 +207,7 @@ class FromSubQuery : public SubQuery
public:
FromSubQuery(gp_walk_info&);
FromSubQuery(gp_walk_info&, SELECT_LEX* fromSub);
~FromSubQuery();
~FromSubQuery() override;
const SELECT_LEX* fromSub() const
{
return fFromSub;
@ -240,7 +236,7 @@ class SelectSubQuery : public SubQuery
public:
SelectSubQuery(gp_walk_info&);
SelectSubQuery(gp_walk_info&, Item_subselect* sel);
~SelectSubQuery();
~SelectSubQuery() override;
execplan::SCSEP transform();
Item_subselect* selSub()
{