Skip to content

Commit 3f9bc7f

Browse files
author
Dorian Eikenberg
committed
VmiCore: code reformat
1 parent e5fb17a commit 3f9bc7f

File tree

12 files changed

+12
-15
lines changed

12 files changed

+12
-15
lines changed

.github/workflows/cpp-apitracing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
format:
3434
runs-on: ubuntu-latest
3535
container:
36-
image: gdatacyberdefense/clang-format:16
36+
image: gdatacyberdefense/clang-format:19
3737

3838
steps:
3939
- uses: actions/checkout@v4

.github/workflows/cpp-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
format:
3030
runs-on: ubuntu-latest
3131
container:
32-
image: gdatacyberdefense/clang-format:16
32+
image: gdatacyberdefense/clang-format:19
3333

3434
steps:
3535
- uses: actions/checkout@v4

.github/workflows/cpp-inmemory.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
format:
3434
runs-on: ubuntu-latest
3535
container:
36-
image: gdatacyberdefense/clang-format:16
36+
image: gdatacyberdefense/clang-format:19
3737

3838
steps:
3939
- uses: actions/checkout@v4

.github/workflows/cpp-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
format:
3434
runs-on: ubuntu-latest
3535
container:
36-
image: gdatacyberdefense/clang-format:16
36+
image: gdatacyberdefense/clang-format:19
3737

3838
steps:
3939
- uses: actions/checkout@v4

vmicore/src/Cmdline.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
std::istream& operator>>(std::istream& is, std::pair<std::string, std::string>& p)
66
{
7-
87
std::string paramValue;
98
std::getline(is, paramValue, {});
109
auto index = paramValue.find(':');

vmicore/src/lib/VmiHub.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ namespace VmiCore
108108

109109
void setupSignalHandling()
110110
{
111-
struct sigaction sigactionStruct
112-
{
113-
};
111+
struct sigaction sigactionStruct{};
114112
sigactionStruct.sa_handler = &externalInterruptHandler;
115113
auto status = sigaction(SIGINT, &sigactionStruct, nullptr);
116114
if (status != 0)

vmicore/src/lib/vmi/Breakpoint.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ namespace VmiCore
4747
fmt::format("{}: {} Target physical address = {:#x}", __func__, e.what(), targetPA));
4848
}
4949
}
50+
5051
BPStateResponse Breakpoint::getNewBreakpointState(uint64_t newDtb) const
5152
{
5253
using enum VmiCore::BPStateResponse;

vmicore/src/lib/vmi/InterruptEventSupervisor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
namespace VmiCore
1111
{
12-
1312
namespace
1413
{
1514
InterruptEventSupervisor* interruptEventSupervisor = nullptr;

vmicore/src/lib/vmi/SingleStepSupervisor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ namespace VmiCore
9797
vmiInterface->registerEvent(singleStepEvents[vcpuId]);
9898
}
9999

100-
event_response_t SingleStepSupervisor::_defaultSingleStepCallback(__attribute__((unused))
101-
vmi_instance_t vmiInstance,
102-
vmi_event_t* event)
100+
event_response_t
101+
SingleStepSupervisor::_defaultSingleStepCallback(__attribute__((unused)) vmi_instance_t vmiInstance,
102+
vmi_event_t* event)
103103
{
104104
auto eventResponse = VMI_EVENT_RESPONSE_NONE;
105105
try

vmicore/src/lib/vmi/VmiInitError.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef VMICORE_VMIINITERROR_H
22
#define VMICORE_VMIINITERROR_H
33

4-
#include <vmicore/vmi/VmiException.h>
54
#include <libvmi/events.h>
5+
#include <vmicore/vmi/VmiException.h>
66

77
namespace VmiCore
88
{

0 commit comments

Comments
 (0)