From bda4ffef921386b101ff74dc3ff2d62bf8f33754 Mon Sep 17 00:00:00 2001 From: Neelamagam Date: Tue, 30 Jan 2024 09:33:32 -0500 Subject: [PATCH] Fixing formatting to pass clang-format test --- src/sst/core/configGraphOutput.h | 14 +++++++------- src/sst/core/cputimer.h | 2 +- src/sst/core/exit.h | 12 ++++++------ src/sst/core/linkPair.h | 16 ++++++++-------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/sst/core/configGraphOutput.h b/src/sst/core/configGraphOutput.h index fb42bf6a0..754e971ca 100644 --- a/src/sst/core/configGraphOutput.h +++ b/src/sst/core/configGraphOutput.h @@ -26,7 +26,7 @@ namespace Core { /** * Exception handler class for graph configuration. * Provides the interface to handle errors through the throw exception. -*/ + */ class ConfigGraphOutputException : public std::exception { public: @@ -38,19 +38,19 @@ class ConfigGraphOutputException : public std::exception /** * @return Exception Message - */ + */ virtual const char* what() const noexcept override { return exMsg; } -/** - * Exception message generated on call. -*/ + /** + * Exception message generated on call. + */ protected: char* exMsg; }; /** * Outputs configuration data to a specified file path. -*/ + */ class ConfigGraphOutput { public: @@ -62,7 +62,7 @@ class ConfigGraphOutput * @param cfg Constant pointer to SST configuration * @param graph Constant pointer to SST configuration graph * @return void - */ + */ virtual void generate(const Config* cfg, ConfigGraph* graph) = 0; protected: diff --git a/src/sst/core/cputimer.h b/src/sst/core/cputimer.h index 9ca7e025d..bd6f9a260 100644 --- a/src/sst/core/cputimer.h +++ b/src/sst/core/cputimer.h @@ -16,7 +16,7 @@ /** * @return Current CPU time using the time of day. Timezone information is not filled. -*/ + */ double sst_get_cpu_time(); #endif // SST_CORE_CPU_TIMER_H diff --git a/src/sst/core/exit.h b/src/sst/core/exit.h index 52e5bfdfa..11942e0fc 100644 --- a/src/sst/core/exit.h +++ b/src/sst/core/exit.h @@ -59,18 +59,18 @@ class Exit : public Action /** Gets the end time of the simulation * @return Time when simulation ends - */ - SimTime_t getEndTime() { return end_time; } + */ + SimTime_t getEndTime() { return end_time; } /** Stores the time the simulation has ended * @param time Current simulation time * @return void - */ - void setEndTime(SimTime_t time) { end_time = time; } + */ + void setEndTime(SimTime_t time) { end_time = time; } /** Computes the end time of the simulation * @return End time of the simulation - */ + */ SimTime_t computeEndTime(); void execute(void) override; void check(); @@ -79,7 +79,7 @@ class Exit : public Action * @param header String to preface the exit action log * @param out SST Output logger object * @return void - */ + */ void print(const std::string& header, Output& out) const override { out.output( diff --git a/src/sst/core/linkPair.h b/src/sst/core/linkPair.h index 8a7b164bb..ca761bb5b 100644 --- a/src/sst/core/linkPair.h +++ b/src/sst/core/linkPair.h @@ -23,9 +23,9 @@ namespace SST { class LinkPair { public: - /** Create a new LinkPair. This is used when the endpoints are in the same partition. + /** Create a new LinkPair. This is used when the endpoints are in the same partition. * @param order Value used to enforce the link order. - */ + */ LinkPair(LinkId_t order) : left(new Link(order)), right(new Link(order)) { my_id = order; @@ -34,10 +34,10 @@ class LinkPair right->pair_link = left; } - /** Create a new LinkPair. This is used when the endpoints are in different partitions. + /** Create a new LinkPair. This is used when the endpoints are in different partitions. * @param order Value used to enforce the link order. * @param remote_tag Used to look up the correct link on the other side. - */ + */ LinkPair(LinkId_t order, LinkId_t remote_tag) : left(new Link(remote_tag)), right(new Link(order)) { my_id = order; @@ -48,14 +48,14 @@ class LinkPair virtual ~LinkPair() {} - /** Return the Left Link + /** Return the Left Link * @return Left link - */ + */ inline Link* getLeft() { return left; } - /** Return the Right Link + /** Return the Right Link * @return Right link - */ + */ inline Link* getRight() { return right; } private: