Skip to content

Commit 103c826

Browse files
committed
Remove (void) parameter lists
1 parent 959eb59 commit 103c826

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+59
-59
lines changed

src/sst/core/activity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class Activity : public SST::Core::MemPoolItem
136136

137137

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

141141
/** Set the time for which this Activity should be delivered */
142142
inline void setDeliveryTime(SimTime_t time) { delivery_time = time; }

src/sst/core/baseComponent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class BaseComponent : public SST::Core::Serialization::serializable_base
9292
/** Called when SIGINT or SIGTERM has been seen.
9393
* Allows components opportunity to clean up external state.
9494
*/
95-
virtual void emergencyShutdown(void) {}
95+
virtual void emergencyShutdown() {}
9696

9797
/** Returns Component/SubComponent Name */
9898
inline const std::string& getName() const { return my_info->getName(); }

src/sst/core/checkpointAction.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ CheckpointAction::~CheckpointAction() {}
7373

7474
// Generate checkpoint on simulation time period
7575
void
76-
CheckpointAction::execute(void)
76+
CheckpointAction::execute()
7777
{
7878
Simulation_impl* sim = Simulation_impl::getSimulation();
7979
createCheckpoint(sim);

src/sst/core/checkpointAction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class CheckpointAction : public Action
7070
void setCheckpoint();
7171

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

7575
/** Called by SyncManager to check whether a checkpoint should be generated */
7676
SimTime_t check(SimTime_t current_time);

src/sst/core/clock.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Clock::getNextCycle()
8282
}
8383

8484
void
85-
Clock::execute(void)
85+
Clock::execute()
8686
{
8787
Simulation_impl* sim = Simulation_impl::getSimulation();
8888

src/sst/core/clock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class Clock : public Action
107107

108108
Clock() {}
109109

110-
void execute(void) override;
110+
void execute() override;
111111

112112
Cycle_t currentCycle;
113113
TimeConverter* period;

src/sst/core/configBase.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ ConfigBase::parseWallTimeToSeconds(const std::string& arg, bool& success, const
9595
void
9696
ConfigBase::addOption(
9797
struct option opt, const char* argname, const char* desc, std::function<int(const char* arg)> callback,
98-
std::vector<bool> annotations, std::function<std::string(void)> ext_help)
98+
std::vector<bool> annotations, std::function<std::string()> ext_help)
9999
{
100100
// Put this into the options vector
101101
options.emplace_back(opt, argname, desc, callback, false, annotations, ext_help, false);
@@ -143,7 +143,7 @@ ConfigBase::addHeading(const char* desc)
143143
struct option opt = { "", optional_argument, 0, 0 };
144144
std::vector<bool> vec;
145145
options.emplace_back(
146-
opt, "", desc, std::function<int(const char* arg)>(), true, vec, std::function<std::string(void)>(), false);
146+
opt, "", desc, std::function<int(const char* arg)>(), true, vec, std::function<std::string()>(), false);
147147
}
148148

149149
std::string
@@ -287,7 +287,7 @@ ConfigBase::printExtHelp(const std::string& option)
287287
else {
288288
Util::SmartTextFormatter formatter({ 2, 5, 8 }, 1);
289289

290-
std::function<std::string(void)>& func = extra_help_map[option];
290+
std::function<std::string()>& func = extra_help_map[option];
291291
std::string help = func();
292292
formatter.append(help);
293293
fprintf(stderr, "%s\n", formatter.str().c_str());

src/sst/core/configBase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ struct LongOption
3838
std::function<int(const char* arg)> callback;
3939
bool header; // if true, desc is actually the header
4040
std::vector<bool> annotations;
41-
std::function<std::string(void)> ext_help;
41+
std::function<std::string()> ext_help;
4242
mutable bool set_cmdline;
4343

4444
LongOption(
4545
struct option opt, const char* argname, const char* desc, const std::function<int(const char* arg)>& callback,
46-
bool header, std::vector<bool> annotations, std::function<std::string(void)> ext_help, bool set_cmdline) :
46+
bool header, std::vector<bool> annotations, std::function<std::string()> ext_help, bool set_cmdline) :
4747
opt(opt),
4848
argname(argname),
4949
desc(desc),
@@ -148,7 +148,7 @@ class ConfigBase
148148
*/
149149
void addOption(
150150
struct option opt, const char* argname, const char* desc, std::function<int(const char* arg)> callback,
151-
std::vector<bool> annotations, std::function<std::string(void)> ext_help = std::function<std::string(void)>());
151+
std::vector<bool> annotations, std::function<std::string()> ext_help = std::function<std::string()>());
152152

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

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

227227
// Annotations
228228
std::vector<AnnotationInfo> annotations_;

src/sst/core/configShared.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ConfigShared::addVerboseOptions(bool sdl_avail)
8383
8484
*/
8585
std::string
86-
ConfigShared::getLibPath(void) const
86+
ConfigShared::getLibPath() const
8787
{
8888
std::string fullLibPath;
8989

src/sst/core/configShared.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class ConfigShared : public ConfigBase
141141
std::string libpath() const { return libpath_; }
142142
std::string addLibPath() const { return addlibpath_; }
143143

144-
std::string getLibPath(void) const;
144+
std::string getLibPath() const;
145145
};
146146

147147
} // namespace SST

0 commit comments

Comments
 (0)