mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 21:39:54 +00:00
[clang-format] apply v14 changes (#8490)
This commit is contained in:
+13
-13
@@ -118,8 +118,8 @@ class Connection : public Dso::Connection
|
||||
friend void otPlatDsoSend(otPlatDsoConnection *aConnection, otMessage *aMessage);
|
||||
|
||||
public:
|
||||
explicit Connection(Instance & aInstance,
|
||||
const char * aName,
|
||||
explicit Connection(Instance &aInstance,
|
||||
const char *aName,
|
||||
const Ip6::SockAddr &aLocalSockAddr,
|
||||
const Ip6::SockAddr &aPeerSockAddr)
|
||||
: Dso::Connection(aInstance, aPeerSockAddr, sCallbacks)
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
ClearTestFlags();
|
||||
}
|
||||
|
||||
const char * GetName(void) const { return mName; }
|
||||
const char *GetName(void) const { return mName; }
|
||||
const Ip6::SockAddr &GetLocalSockAddr(void) const { return mLocalSockAddr; }
|
||||
|
||||
void ClearTestFlags(void)
|
||||
@@ -247,7 +247,7 @@ private:
|
||||
}
|
||||
|
||||
Error ProcessResponseMessage(const Dns::Header &aHeader,
|
||||
const Message & aMessage,
|
||||
const Message &aMessage,
|
||||
Dso::Tlv::Type aResponseTlvType,
|
||||
Dso::Tlv::Type aRequestTlvType)
|
||||
{
|
||||
@@ -289,22 +289,22 @@ private:
|
||||
|
||||
static Error ProcessRequestMessage(Dso::Connection &aConnection,
|
||||
MessageId aMessageId,
|
||||
const Message & aMessage,
|
||||
const Message &aMessage,
|
||||
Dso::Tlv::Type aPrimaryTlvType)
|
||||
{
|
||||
return static_cast<Connection &>(aConnection).ProcessRequestMessage(aMessageId, aMessage, aPrimaryTlvType);
|
||||
}
|
||||
|
||||
static Error ProcessUnidirectionalMessage(Dso::Connection &aConnection,
|
||||
const Message & aMessage,
|
||||
const Message &aMessage,
|
||||
Dso::Tlv::Type aPrimaryTlvType)
|
||||
{
|
||||
return static_cast<Connection &>(aConnection).ProcessUnidirectionalMessage(aMessage, aPrimaryTlvType);
|
||||
}
|
||||
|
||||
static Error ProcessResponseMessage(Dso::Connection & aConnection,
|
||||
static Error ProcessResponseMessage(Dso::Connection &aConnection,
|
||||
const Dns::Header &aHeader,
|
||||
const Message & aMessage,
|
||||
const Message &aMessage,
|
||||
Dso::Tlv::Type aResponseTlvType,
|
||||
Dso::Tlv::Type aRequestTlvType)
|
||||
{
|
||||
@@ -312,7 +312,7 @@ private:
|
||||
.ProcessResponseMessage(aHeader, aMessage, aResponseTlvType, aRequestTlvType);
|
||||
}
|
||||
|
||||
const char * mName;
|
||||
const char *mName;
|
||||
Ip6::SockAddr mLocalSockAddr;
|
||||
bool mDidGetConnectedSignal;
|
||||
bool mDidGetSessionEstablishedSignal;
|
||||
@@ -380,8 +380,8 @@ void otPlatDsoEnableListening(otInstance *, bool aEnable)
|
||||
|
||||
void otPlatDsoConnect(otPlatDsoConnection *aConnection, const otSockAddr *aPeerSockAddr)
|
||||
{
|
||||
Connection & conn = *static_cast<Connection *>(aConnection);
|
||||
Connection * peerConn = nullptr;
|
||||
Connection &conn = *static_cast<Connection *>(aConnection);
|
||||
Connection *peerConn = nullptr;
|
||||
const Ip6::SockAddr &peerSockAddr = AsCoreType(aPeerSockAddr);
|
||||
|
||||
Log(" otPlatDsoConnect(%s, aPeer:0x%04x)", conn.GetName(), peerSockAddr.GetPort());
|
||||
@@ -545,12 +545,12 @@ void TestDso(void)
|
||||
static constexpr uint32_t kRetryDelayInterval = TimeMilli::SecToMsec(3600);
|
||||
static constexpr uint32_t kLongResponseTimeout = Dso::kResponseTimeout + TimeMilli::SecToMsec(17);
|
||||
|
||||
Instance & instance = *static_cast<Instance *>(testInitInstance());
|
||||
Instance &instance = *static_cast<Instance *>(testInitInstance());
|
||||
Ip6::SockAddr serverSockAddr(kPortA);
|
||||
Ip6::SockAddr clientSockAddr(kPortB);
|
||||
Connection serverConn(instance, "serverConn", serverSockAddr, clientSockAddr);
|
||||
Connection clientConn(instance, "clinetConn", clientSockAddr, serverSockAddr);
|
||||
Message * message;
|
||||
Message *message;
|
||||
Dso::Tlv tlv;
|
||||
Connection::MessageId messageId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user