Skip to content

Commit dfc274a

Browse files
author
Dorian Eikenberg
committed
VmiCore: code reformat
1 parent 72b6f23 commit dfc274a

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

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/test/lib/vmi/InterruptEventSupervisor_UnitTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include "../os/windows/mock_ActiveProcessesSupervisor.h"
44
#include "mock_LibvmiInterface.h"
55
#include "mock_SingleStepSupervisor.h"
6-
#include <gtest/gtest.h>
76
#include <GlobalControl.h>
7+
#include <gtest/gtest.h>
88
#include <plugins/PluginSystem.h>
99
#include <vmicore/os/PagingDefinitions.h>
1010
#include <vmicore/vmi/IBreakpoint.h>

vmicore/test/lib/vmi/SingleStepSupervisor_UnitTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include "../io/mock_EventStream.h"
22
#include "../io/mock_Logging.h"
33
#include "mock_LibvmiInterface.h"
4-
#include <gtest/gtest.h>
54
#include <GlobalControl.h>
5+
#include <gtest/gtest.h>
66
#include <vmi/SingleStepSupervisor.h>
77
#include <vmicore/vmi/VmiException.h>
88
#include <vmicore_test/io/mock_Logger.h>

0 commit comments

Comments
 (0)