Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sst/core/activity.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Activity : public SST::Core::MemPoolItem


/** Function which will be called when the time for this Activity comes to pass. */
virtual void execute(void) = 0;
virtual void execute() = 0;

/** Set the time for which this Activity should be delivered */
inline void setDeliveryTime(SimTime_t time) { delivery_time = time; }
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/baseComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class BaseComponent : public SST::Core::Serialization::serializable_base
/** Called when SIGINT or SIGTERM has been seen.
* Allows components opportunity to clean up external state.
*/
virtual void emergencyShutdown(void) {}
virtual void emergencyShutdown() {}

/** Returns Component/SubComponent Name */
inline const std::string& getName() const { return my_info->getName(); }
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/checkpointAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CheckpointAction::~CheckpointAction() {}

// Generate checkpoint on simulation time period
void
CheckpointAction::execute(void)
CheckpointAction::execute()
{
Simulation_impl* sim = Simulation_impl::getSimulation();
createCheckpoint(sim);
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/checkpointAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CheckpointAction : public Action
void setCheckpoint();

/** Called by TimeVortex to trigger checkpoint on simulation clock interval - not used in parallel simulation */
void execute(void) override;
void execute() override;

/** Called by SyncManager to check whether a checkpoint should be generated */
SimTime_t check(SimTime_t current_time);
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/clock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Clock::getNextCycle()
}

void
Clock::execute(void)
Clock::execute()
{
Simulation_impl* sim = Simulation_impl::getSimulation();

Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class Clock : public Action

Clock() {}

void execute(void) override;
void execute() override;

Cycle_t currentCycle;
TimeConverter* period;
Expand Down
8 changes: 4 additions & 4 deletions src/sst/core/configBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ConfigBase::parseWallTimeToSeconds(const std::string& arg, bool& success, const
void
ConfigBase::addOption(
struct option opt, const char* argname, const char* desc, std::function<int(const char* arg)> callback,
std::vector<bool> annotations, std::function<std::string(void)> ext_help)
std::vector<bool> annotations, std::function<std::string()> ext_help)
{
// Put this into the options vector
options.emplace_back(opt, argname, desc, callback, false, annotations, ext_help, false);
Expand Down Expand Up @@ -143,7 +143,7 @@ ConfigBase::addHeading(const char* desc)
struct option opt = { "", optional_argument, 0, 0 };
std::vector<bool> vec;
options.emplace_back(
opt, "", desc, std::function<int(const char* arg)>(), true, vec, std::function<std::string(void)>(), false);
opt, "", desc, std::function<int(const char* arg)>(), true, vec, std::function<std::string()>(), false);
}

std::string
Expand Down Expand Up @@ -287,8 +287,8 @@ ConfigBase::printExtHelp(const std::string& option)
else {
Util::SmartTextFormatter formatter({ 2, 5, 8 }, 1);

std::function<std::string(void)>& func = extra_help_map[option];
std::string help = func();
std::function<std::string()>& func = extra_help_map[option];
std::string help = func();
formatter.append(help);
fprintf(stderr, "%s\n", formatter.str().c_str());
}
Expand Down
8 changes: 4 additions & 4 deletions src/sst/core/configBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ struct LongOption
std::function<int(const char* arg)> callback;
bool header; // if true, desc is actually the header
std::vector<bool> annotations;
std::function<std::string(void)> ext_help;
std::function<std::string()> ext_help;
mutable bool set_cmdline;

LongOption(
struct option opt, const char* argname, const char* desc, const std::function<int(const char* arg)>& callback,
bool header, std::vector<bool> annotations, std::function<std::string(void)> ext_help, bool set_cmdline) :
bool header, std::vector<bool> annotations, std::function<std::string()> ext_help, bool set_cmdline) :
opt(opt),
argname(argname),
desc(desc),
Expand Down Expand Up @@ -148,7 +148,7 @@ class ConfigBase
*/
void addOption(
struct option opt, const char* argname, const char* desc, std::function<int(const char* arg)> callback,
std::vector<bool> annotations, std::function<std::string(void)> ext_help = std::function<std::string(void)>());
std::vector<bool> annotations, std::function<std::string()> ext_help = std::function<std::string()>());

/**
Adds a heading to the usage output
Expand Down Expand Up @@ -222,7 +222,7 @@ class ConfigBase
std::function<int(int num, const char* arg)> positional_args;

// Map to hold extended help function calls
std::map<std::string, std::function<std::string(void)>> extra_help_map;
std::map<std::string, std::function<std::string()>> extra_help_map;

// Annotations
std::vector<AnnotationInfo> annotations_;
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/configShared.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ConfigShared::addVerboseOptions(bool sdl_avail)

*/
std::string
ConfigShared::getLibPath(void) const
ConfigShared::getLibPath() const
{
std::string fullLibPath;

Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/configShared.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class ConfigShared : public ConfigBase
std::string libpath() const { return libpath_; }
std::string addLibPath() const { return addlibpath_; }

std::string getLibPath(void) const;
std::string getLibPath() const;
};

} // namespace SST
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const SST::Event::id_type SST::Event::NO_ID = std::make_pair(0, -1);
Event::~Event() {}

void
Event::execute(void)
Event::execute()
{
(*reinterpret_cast<HandlerBase*>(delivery_info))(this);
}
Expand Down
4 changes: 2 additions & 2 deletions src/sst/core/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class Event : public Activity


/** Cause this event to fire */
void execute(void) override;
void execute() override;

/**
This sets the information needed to get the event properly
Expand All @@ -184,7 +184,7 @@ class Event : public Activity
inline Link* getDeliveryLink() { return reinterpret_cast<Link*>(delivery_info); }

/** Gets the link id associated with this event. For use by SST Core only */
inline LinkId_t getTag(void) const { return getOrderTag(); }
inline LinkId_t getTag() const { return getOrderTag(); }


/** Holds the delivery information. This is stored as a
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/exit.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Exit : public Action
* @return End time of the simulation
*/
SimTime_t computeEndTime();
void execute(void) override;
void execute() override;
void check();

/**
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/heartbeat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ SimulatorHeartbeat::schedule()
}

void
SimulatorHeartbeat::execute(void)
SimulatorHeartbeat::execute()
{
Simulation_impl* sim = Simulation_impl::getSimulation();
const double now = sst_get_cpu_time();
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/heartbeat.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class SimulatorHeartbeat : public Action
SimulatorHeartbeat(const SimulatorHeartbeat&);

void operator=(SimulatorHeartbeat const&);
void execute(void) override;
void execute() override;
int rank;
TimeConverter* m_period;
double lastTime;
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interfaces/simpleNetwork.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class SimpleNetwork : public SubComponent
// /**
// * Returns a handle to the underlying SST::Link
// */
// virtual Link* getLink(void) const = 0;
// virtual Link* getLink() const = 0;

/**
* Send a Request to the network.
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interfaces/stdMem.h
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ class StandardMem : public SubComponent
* @return Pointer to a Request response
* Upon receipt, the receiver takes responsibility for deleting the event
*/
virtual Request* poll(void) = 0;
virtual Request* poll() = 0;

/**
* Get cache/memory line size (in bytes) from the memory system
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interfaces/stringEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class StringEvent : public SST::Event
virtual Event* clone() override { return new StringEvent(*this); }

/** Returns the contents of this Event */
const std::string& getString(void) { return str; }
const std::string& getString() { return str; }

private:
std::string str;
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interprocess/ipctunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class IPCTunnel
}
}

const std::string& getRegionName(void) const { return filename; }
const std::string& getRegionName() const { return filename; }

/** return a pointer to the ShareDataType region */
ShareDataType* getSharedData() { return sharedData; }
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interprocess/mmapchild_pin3.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class MMAPChild_Pin3
TunnelType* getTunnel() { return tunnel; }

/** Return the name of the mmap'd file */
const std::string& getRegionName(void) const { return filename; }
const std::string& getRegionName() const { return filename; }

private:
void* shmPtr;
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interprocess/mmapparent.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class MMAPParent
}

/** returns name of the mmap'd file */
const std::string& getRegionName(void) const { return filename; }
const std::string& getRegionName() const { return filename; }

/** return the created tunnel pointer */
TunnelType* getTunnel() { return tunnel; }
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interprocess/shmchild.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class SHMChild
TunnelType* getTunnel() { return tunnel; }

/** return the name of the shared memory region */
const std::string& getRegionName(void) const { return filename; }
const std::string& getRegionName() const { return filename; }

private:
void* shmPtr;
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/interprocess/shmparent.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class SHMParent
}

/** returns name of the mmap'd region */
const std::string& getRegionName(void) const { return filename; }
const std::string& getRegionName() const { return filename; }

/** return the created tunnel pointer */
TunnelType* getTunnel() { return tunnel; }
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/link.cc
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ class NullEvent : public Event
NullEvent() : Event() {}
~NullEvent() {}

void execute(void) override
void execute() override
{
(*reinterpret_cast<HandlerBase*>(delivery_info))(nullptr);
delete this;
Expand Down
4 changes: 2 additions & 2 deletions src/sst/core/model/python/pymodel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ static struct PyModuleDef sstModuleDef
#endif

static PyObject*
PyInit_sst(void)
PyInit_sst()
{
// Initialize our types
PyModel_ComponentType.tp_new = PyType_GenericNew;
Expand Down Expand Up @@ -1347,7 +1347,7 @@ SSTPythonModelDefinition::pushNamePrefix(const char* name)
}

void
SSTPythonModelDefinition::popNamePrefix(void)
SSTPythonModelDefinition::popNamePrefix()
{
if ( nameStack.empty() ) return;
size_t off = nameStack.back();
Expand Down
6 changes: 3 additions & 3 deletions src/sst/core/model/python/pymodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ class SSTPythonModelDefinition : public SSTModelDescription
#endif

public: /* Public, but private. Called only from Python functions */
Config* getConfig(void) const { return config; }
Config* getConfig() const { return config; }

bool setConfigEntryFromModel(const std::string& entryName, const std::string& value)
{
return setOptionFromModel(entryName, value);
}

ConfigGraph* getGraph(void) const { return graph; }
ConfigGraph* getGraph() const { return graph; }

Output* getOutput() const { return output; }

Expand All @@ -110,7 +110,7 @@ class SSTPythonModelDefinition : public SSTModelDescription
void setLinkNoCut(const char* link_name) const { graph->setLinkNoCut(link_name); }

void pushNamePrefix(const char* name);
void popNamePrefix(void);
void popNamePrefix();
char* addNamePrefix(const char* name) const;

void setStatisticOutput(const char* Name) { graph->setStatisticOutput(Name); }
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/oneshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ OneShot::scheduleOneShot()
}

void
OneShot::execute(void)
OneShot::execute()
{
// Execute the OneShot when the TimeVortex tells us to go.
// This will call all registered callbacks.
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/oneshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class OneShot : public Action
OneShot() {}

// Called by the Simulation (Activity Queue) when delay time as elapsed
void execute(void) override;
void execute() override;

// Activates this OneShot object, by inserting into the simulation's
// timeVortex for future execution.
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/serialization/serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class serializer
}
}

// For void*, we get sizeof(void), which errors.
// For void*, we get sizeof(), which errors.
// Create a wrapper that casts to char* and uses above
template <typename Int>
void binary(void*& buffer, Int& size)
Expand Down
4 changes: 2 additions & 2 deletions src/sst/core/simulation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ Simulation_impl::signalShutdown(bool abnormal)
// If this version is called, we need to set the end time in the exit
// object as well
void
Simulation_impl::endSimulation(void)
Simulation_impl::endSimulation()
{
m_exit->setEndTime(currentSimCycle);
endSimulation(currentSimCycle);
Expand Down Expand Up @@ -1232,7 +1232,7 @@ Simulation_impl::getSyncQueueDataSize() const
}

Statistics::StatisticProcessingEngine*
Simulation_impl::getStatisticsProcessingEngine(void)
Simulation_impl::getStatisticsProcessingEngine()
{
return &stat_engine;
}
Expand Down
8 changes: 4 additions & 4 deletions src/sst/core/simulation_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Simulation_impl
static Simulation_impl* getSimulation() { return instanceMap.at(std::this_thread::get_id()); }

/** Return the TimeLord associated with this Simulation */
static TimeLord* getTimeLord(void) { return &timeLord; }
static TimeLord* getTimeLord() { return &timeLord; }

/** Return the base simulation Output class instance */
static Output& getSimulationOutput() { return sim_output; }
Expand Down Expand Up @@ -237,7 +237,7 @@ class Simulation_impl
}

/** Returns reference to the Component Info Map */
const ComponentInfoMap& getComponentInfoMap(void) { return compInfoMap; }
const ComponentInfoMap& getComponentInfoMap() { return compInfoMap; }

/** returns the component with the given ID */
BaseComponent* getComponent(const ComponentId_t& id) const
Expand Down Expand Up @@ -323,7 +323,7 @@ class Simulation_impl
SimTime_t getClockForHandler(Clock::HandlerBase* handler);

/** Return the Statistic Processing Engine associated with this Simulation */
Statistics::StatisticProcessingEngine* getStatisticsProcessingEngine(void);
Statistics::StatisticProcessingEngine* getStatisticsProcessingEngine();


friend class Link;
Expand Down Expand Up @@ -400,7 +400,7 @@ class Simulation_impl

/** Normal Shutdown
*/
void endSimulation(void);
void endSimulation();
void endSimulation(SimTime_t end);

typedef enum {
Expand Down
Loading
Loading