Commit 2a7922f8 authored by Niklas Eiling's avatar Niklas Eiling Committed by Markus Mirz
Browse files

make DPsim support clang for compilation

Add the override keyword to all overridden methods. Add implementation for original function when overloading a virtual function. Add minor other tweaks to make clang happy
parent 7ef30fea
...@@ -56,7 +56,7 @@ void RealTimeSimulation::run(const Timer::StartClock::time_point &startAt) { ...@@ -56,7 +56,7 @@ void RealTimeSimulation::run(const Timer::StartClock::time_point &startAt) {
#endif #endif
auto now_time = std::chrono::system_clock::to_time_t(startAt); auto now_time = std::chrono::system_clock::to_time_t(startAt);
mLog->info("Starting simulation at {} (delta_T = {} seconds)", log->info("Starting simulation at {} (delta_T = {} seconds)",
std::put_time(std::localtime(&now_time), "%F %T"), std::put_time(std::localtime(&now_time), "%F %T"),
std::chrono::duration_cast<std::chrono::seconds>(startAt - Timer::StartClock::now()).count()); std::chrono::duration_cast<std::chrono::seconds>(startAt - Timer::StartClock::now()).count());
Supports Markdown
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