clang-format: re-format for clang-19
clang-format-19 isn't compatible with the clang-format-18 output, so we
need to reformat the code with the latest version. A few parameters
in clang-tidy have been deprecated, so adjust the style file
accordingly.
See Ie2f6eb3b043f2d655c9df806815afd7971fd0947 for updated style.
See I88192b41ab7a95599a90915013579608af7bc56f for clang-19 enablement.
Change-Id: Ie38f1c94398df0d663d0e27d2e2e1d0d77a47fae
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tests/responder.cpp b/tests/responder.cpp
index 6a0a3fd..9555148 100644
--- a/tests/responder.cpp
+++ b/tests/responder.cpp
@@ -5,9 +5,7 @@
TEST(Responder, track_untrack_one)
{
- struct pldm_responder_cookie jar
- {
- };
+ struct pldm_responder_cookie jar{};
struct pldm_responder_cookie cookie = {
.tid = 1,
.instance_id = 1,
@@ -24,9 +22,7 @@
TEST(Responder, untrack_none)
{
- struct pldm_responder_cookie jar
- {
- };
+ struct pldm_responder_cookie jar{};
ASSERT_EQ(jar.next, nullptr);
ASSERT_EQ(pldm_responder_cookie_untrack(&jar, 1, 1, 0, 0x01), nullptr);
@@ -35,9 +31,7 @@
TEST(Responder, track_one_untrack_bad)
{
- struct pldm_responder_cookie jar
- {
- };
+ struct pldm_responder_cookie jar{};
struct pldm_responder_cookie cookie = {
.tid = 1,
.instance_id = 1,
@@ -59,9 +53,7 @@
TEST(Responder, track_untrack_two)
{
- struct pldm_responder_cookie jar
- {
- };
+ struct pldm_responder_cookie jar{};
struct pldm_responder_cookie cookies[] = {
{
.tid = 1,