Skip to content
Snippets Groups Projects
Commit 6ac02033 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

[CLANG-TIDY] modernize-use-override

parent f2746c04
No related merge requests found
......@@ -85,7 +85,7 @@ namespace python_coupling {
public:
PythonMultipleConfigGenerator( bp::stl_input_iterator< bp::dict > iterator ) : iter_( iterator ), firstTime_(true) {}
virtual shared_ptr<Config> next()
shared_ptr<Config> next() override
{
// this seemingly unnecessary complicated firstTime variable is used
// since in alternative version where (++iter_) is at the end of the function
......@@ -119,7 +119,7 @@ namespace python_coupling {
public:
PythonSingleConfigGenerator( const shared_ptr<Config> & config ): config_ ( config ) {}
virtual shared_ptr<Config> next()
shared_ptr<Config> next() override
{
auto res = config_;
config_.reset();
......
......@@ -42,13 +42,13 @@ namespace timeloop {
#endif
struct ITimeloopWrap : public ITimeloop, public wrapper<ITimeloop>
{
void run() { this->get_override( "run" )(); }
void singleStep() { this->get_override( "singleStep" )(); }
void stop() { this->get_override( "stop" )(); }
void synchronizedStop( bool s ) { this->get_override( "synchronizedStop" )(s); }
void setCurrentTimeStep( uint_t ts) { this->get_override( "setCurrentTimeStep" )(ts); }
uint_t getCurrentTimeStep() const { return this->get_override( "getCurrentTimeStep" )(); }
uint_t getNrOfTimeSteps() const { return this->get_override( "getNrOfTimeSteps" )(); }
void run() override { this->get_override( "run" )(); }
void singleStep() override { this->get_override( "singleStep" )(); }
void stop() override { this->get_override( "stop" )(); }
void synchronizedStop( bool s ) override { this->get_override( "synchronizedStop" )(s); }
void setCurrentTimeStep( uint_t ts) override { this->get_override( "setCurrentTimeStep" )(ts); }
uint_t getCurrentTimeStep() const override { return this->get_override( "getCurrentTimeStep" )(); }
uint_t getNrOfTimeSteps() const override { return this->get_override( "getNrOfTimeSteps" )(); }
};
#ifdef WALBERLA_CXX_COMPILER_IS_GNU
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment