Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/48925 )

Change subject: dev: Fix style in pktfifo.hh.
......................................................................

dev: Fix style in pktfifo.hh.

Put return types of multi-line functions on their own line.

Change-Id: I6c9cade720bd1c7aaa09c42b838c9bd83da7bc8f
---
M src/dev/net/pktfifo.hh
1 file changed, 16 insertions(+), 8 deletions(-)



diff --git a/src/dev/net/pktfifo.hh b/src/dev/net/pktfifo.hh
index 6fa2952..4d6e94b 100644
--- a/src/dev/net/pktfifo.hh
+++ b/src/dev/net/pktfifo.hh
@@ -64,7 +64,8 @@
     {
     }

-    void clear()
+    void
+    clear()
     {
         packet = NULL;
         number = 0;
@@ -120,7 +121,8 @@

     EthPacketPtr front() { return fifo.begin()->packet; }

-    bool push(EthPacketPtr ptr)
+    bool
+    push(EthPacketPtr ptr)
     {
         assert(ptr->length);
         assert(_reserved <= ptr->length);
@@ -137,7 +139,8 @@
         return true;
     }

-    void pop()
+    void
+    pop()
     {
         if (empty())
             return;
@@ -149,7 +152,8 @@
         fifo.pop_front();
     }

-    void clear()
+    void
+    clear()
     {
         for (iterator i = begin(); i != end(); ++i)
             i->clear();
@@ -158,7 +162,8 @@
         _reserved = 0;
     }

-    void remove(iterator i)
+    void
+    remove(iterator i)
     {
         if (i != fifo.begin()) {
             iterator prev = i;
@@ -177,14 +182,16 @@

     bool copyout(void *dest, unsigned offset, unsigned len);

-    int countPacketsBefore(const_iterator i) const
+    int
+    countPacketsBefore(const_iterator i) const
     {
         if (i == fifo.end())
             return 0;
         return i->number - fifo.begin()->number;
     }

-    int countPacketsAfter(const_iterator i) const
+    int
+    countPacketsAfter(const_iterator i) const
     {
         auto end = fifo.end();
         if (i == end)
@@ -192,7 +199,8 @@
         return (--end)->number - i->number;
     }

-    void check() const
+    void
+    check() const
     {
         unsigned total = 0;
         for (auto i = begin(); i != end(); ++i)

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48925
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I6c9cade720bd1c7aaa09c42b838c9bd83da7bc8f
Gerrit-Change-Number: 48925
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to