Skip to content

Commit 7a50d10

Browse files
committed
formatting fixes
1 parent 8884520 commit 7a50d10

File tree

11 files changed

+35
-17
lines changed

11 files changed

+35
-17
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ before_script:
77
- chmod +x llvm.sh
88
- ./llvm.sh 20
99
- apt install clang-format-20
10-
- clang-20 --version
11-
- clang-format-20 --version
1210

1311
build:
1412
tags:
@@ -28,6 +26,5 @@ format:
2826
tags:
2927
- Ubuntu2004-64bit
3028
script:
31-
- clang-format-20 --version
3229
- clang-format-20 --dry-run --Werror `find ./ -type f -name "*.h" -o -name "*.cc" -o -name "*.cpp"`
3330

include/maxplus/base/fsm/iofsm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace MaxPlus::FSM::Labeled {
2323

2424
class IOAutomaton : public ::MaxPlus::FSM::Labeled::FiniteStateMachine<CId, IOAEdgeLabel> {
2525
public:
26-
virtual ~IOAutomaton(){};
26+
virtual ~IOAutomaton() {};
2727
};
2828

2929
} // namespace MaxPlus::FSM::Labeled

include/maxplus/graph/mpautomaton.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ using MPASetOfEdgeRefs = ::MaxPlus::FSM::Labeled::SetOfEdgeRefs<MPAStateLabel, M
156156
/**
157157
* A max-plus automaton
158158
*/
159-
class MaxPlusAutomaton: public ::MaxPlus::FSM::Labeled::FiniteStateMachine<MPAStateLabel, MPAEdgeLabel> {
159+
class MaxPlusAutomaton
160+
: public ::MaxPlus::FSM::Labeled::FiniteStateMachine<MPAStateLabel, MPAEdgeLabel> {
160161
public:
161162
// Destructor.
162163
~MaxPlusAutomaton() override = default;

src/testbench/algebra/matrixtest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class MatrixTest : public ::testing::Test {
1212
public:
1313
MatrixTest() {}
1414

15-
virtual void SetUp(){};
16-
virtual void TearDown(){};
15+
virtual void SetUp() {};
16+
virtual void TearDown() {};
1717
int test_SetMPTimeInMatrix();
1818
int test_PasteMatrix();
1919
int test_SubMatrix();

src/testbench/algebra/sparsematrixtest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class SparseMatrixTest : public ::testing::Test {
1010
public:
1111
SparseMatrixTest() = default;
1212

13-
void SetUp() override{};
14-
void TearDown() override{};
13+
void SetUp() override {};
14+
void TearDown() override {};
1515
void Run() override;
1616

1717
int test_Vectors();

src/testbench/algebra/valuetest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class ValueTest : public ::testing::Test {
1212
public:
1313
ValueTest() {}
1414
virtual void Run();
15-
virtual void SetUp(){};
16-
virtual void TearDown(){};
15+
virtual void SetUp() {};
16+
virtual void TearDown() {};
1717

1818
void test_mpTime();
1919
void test_Max();

src/testbench/algebra/vectortest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class VectorTest : public ::testing::Test {
1010
VectorTest() {}
1111

1212
virtual void Run();
13-
virtual void SetUp(){};
14-
virtual void TearDown(){};
13+
virtual void SetUp() {};
14+
virtual void TearDown() {};
1515
void test_Infinity();
1616
};

src/testbench/base/mcmtest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class MCMTest : public ::testing::Test {
1010
public:
1111
MCMTest() {}
1212
virtual void Run();
13-
virtual void SetUp(){};
14-
virtual void TearDown(){};
13+
virtual void SetUp() {};
14+
virtual void TearDown() {};
1515

1616
void test_dg();
1717
void test_howard();

src/testbench/game/policyiterationtest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ void PolicyIterationTest::Run() {
1818
testInvalidInputGraphTest();
1919
};
2020

21-
void PolicyIterationTest::SetUp(){};
21+
void PolicyIterationTest::SetUp() {};
2222

23-
void PolicyIterationTest::TearDown(){};
23+
void PolicyIterationTest::TearDown() {};
2424

2525
void PolicyIterationTest::testPlayer1CycleTest() {
2626

utils/format.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
param(
2+
[string]$FilePath
3+
)
4+
5+
if (-not $FilePath) {
6+
Write-Host "Usage: .\format.ps1 <filename>"
7+
exit 1
8+
}
9+
10+
if (-Not (Test-Path $FilePath)) {
11+
Write-Error "File not found: $FilePath"
12+
exit 1
13+
}
14+
15+
clang-format -i $FilePath
16+
Write-Host "Formatted: $FilePath"

0 commit comments

Comments
 (0)