apply clang format to unittest folder as well
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2022-03-01 15:06:59 +01:00
parent be122038ed
commit 9e03f9babe
14 changed files with 69 additions and 67 deletions

View File

@ -1,4 +1,5 @@
#include "event.h"
#include <queue>
std::queue<EventInfo> EVENT_QUEUE = {};
@ -13,7 +14,7 @@ void triggerEvent(Event event, uint32_t p1, uint32_t p2) {
void eventWasCalled(EventInfo& eventInfo, uint32_t& numEvents) {
numEvents = EVENT_QUEUE.size();
if(not EVENT_QUEUE.empty()) {
if (not EVENT_QUEUE.empty()) {
eventInfo = std::move(EVENT_QUEUE.back());
EVENT_QUEUE.pop();
}