cfdp: apply clang-format to the class 2 handler changes

origin/main is clang-format clean, this branch was not: the class 2 work left
six violations across four files. Purely mechanical reflowing, no behaviour
change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RZpKfWUzvTkBMXEv9NEoTM
This commit is contained in:
Tobias BaumgartlandClaude Opus 5 committed 2026-09-15 01:08:30 +02:00
1 parent 30965ed058
commit 892fdff164
4 files changed
+6 -9

No files matched your search

+2 -2
View File
@@ -368,8 +368,8 @@ ReturnValue_t cfdp::DestHandler::startTransaction(const MetadataPduReader& reade
// A metadata PDU received while busy is normally a duplicate and is discarded per the standard.
// The one exception is an acknowledged transaction which was started from a file data or EOF
// PDU because the metadata was lost: this is the retransmission our NAK of scope 0..0 asked for.
const bool lateMetadata = fsmRes.state == CfdpState::BUSY_CLASS_2_ACKED and
not transactionParams.metadataReceived;
const bool lateMetadata =
fsmRes.state == CfdpState::BUSY_CLASS_2_ACKED and not transactionParams.metadataReceived;
if (fsmRes.state != CfdpState::IDLE and not lateMetadata) {
return OK;
}
+1 -2
View File
@@ -222,8 +222,7 @@ class DestHandler {
[[nodiscard]] bool pduBelongsToTransaction(const PduPacketIF& pduPacket) const;
ReturnValue_t handleTransferCompletion();
//! Class 2 substates, driven from stateMachine().
void fsmAcked(std::optional<std::reference_wrapper<PduPacketIF>> optPduPacket,
uint8_t& errorIdx);
void fsmAcked(std::optional<std::reference_wrapper<PduPacketIF>> optPduPacket, uint8_t& errorIdx);
ReturnValue_t handleSendingAckPdu();
ReturnValue_t handleWaitingForMissingData();
ReturnValue_t handleWaitingForFinishedAck();
+1 -3
View File
@@ -127,9 +127,7 @@ class SourceHandler {
cursor = 0;
metadataPending = false;
}
[[nodiscard]] bool empty() const {
return not metadataPending and currentIdx >= numSegments;
}
[[nodiscard]] bool empty() const { return not metadataPending and currentIdx >= numSegments; }
} retransmitState;
PduSenderIF& pduSender;
+2 -2
View File
@@ -11,11 +11,11 @@
#include "fsfw/cfdp.h"
#include "fsfw/cfdp/handler/PutRequest.h"
#include "fsfw/cfdp/handler/SourceHandler.h"
#include "fsfw/cfdp/pdu/AckPduCreator.h"
#include "fsfw/cfdp/pdu/AckPduReader.h"
#include "fsfw/cfdp/pdu/EofPduCreator.h"
#include "fsfw/cfdp/pdu/EofPduReader.h"
#include "fsfw/cfdp/pdu/FileDataReader.h"
#include "fsfw/cfdp/pdu/AckPduCreator.h"
#include "fsfw/cfdp/pdu/AckPduReader.h"
#include "fsfw/cfdp/pdu/FinishedPduCreator.h"
#include "fsfw/cfdp/pdu/MetadataPduCreator.h"
#include "fsfw/cfdp/pdu/MetadataPduReader.h"