misc: Fix coding style for struct's opening braces
The systemc dir was not included in this fix.
First it was identified that there were only occurrences
at 0, 1, 2 and 3 levels of indentation (and a single
occurrence of 2 and 3 spaces), using:
grep -nrE --exclude-dir=systemc \
"^ *struct [A-Za-z].* {$" src/
Then the following commands were run to replace:
<indent level>struct X ... {
by:
<indent level>struct X ...
<indent level>{
Level 0:
grep -nrl --exclude-dir=systemc
"^struct [A-Za-z].* {$" src/ | \
xargs sed -Ei \
's/^struct ([A-Za-z].*) \{$/struct \1\n\{/g'
Level 1:
grep -nrl --exclude-dir=systemc \
"^ struct [A-Za-z].* {$" src/ | \
xargs sed -Ei \
's/^ struct ([A-Za-z].*) \{$/ struct \1\n \{/g'
and so on.
Change-Id: I362ef58c86912dabdd272c7debb8d25d587cd455
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39017
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
f96de41fcf
commit
2922f763e1
@@ -223,7 +223,8 @@ class DVFSHandler : public SimObject
|
||||
* Update performance level event, encapsulates all the required information
|
||||
* for a future call to change a domain's performance level.
|
||||
*/
|
||||
struct UpdateEvent : public Event {
|
||||
struct UpdateEvent : public Event
|
||||
{
|
||||
UpdateEvent() : Event(DVFS_Update_Pri), domainIDToSet(0),
|
||||
perfLevelToSet(0) {}
|
||||
|
||||
|
||||
@@ -92,7 +92,8 @@ class MathExpr
|
||||
// Match operators
|
||||
const int MAX_PRIO = 4;
|
||||
typedef double (*binOp)(double, double);
|
||||
struct OpSearch {
|
||||
struct OpSearch
|
||||
{
|
||||
bool binary;
|
||||
Operator op;
|
||||
int priority;
|
||||
|
||||
@@ -50,7 +50,8 @@ namespace ProbePoints {
|
||||
* the packet and underlying request can be safely passed on, and
|
||||
* consequently modified or even deleted.
|
||||
*/
|
||||
struct PacketInfo {
|
||||
struct PacketInfo
|
||||
{
|
||||
MemCmd cmd;
|
||||
Addr addr;
|
||||
uint32_t size;
|
||||
|
||||
Reference in New Issue
Block a user