clang-format: update to latest from docs repo
Since `Cpp11` is an alias for `Latest` and we should tend towards using the
latest C++ standard, update the C++ standard to Latest.
https://github.com/llvm/llvm-project/commit/e5032567903de19962333c4bf7d2edceaf4f9824#diff-b49a097415dff2837d9626d422c58ba8R82
https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format
Also, other OpenBMC repos are doing the same.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I449e88bb4e1e262060110e1a8f3e8db3ddfc74cf
diff --git a/pldmd.cpp b/pldmd.cpp
index 4bc8943..1361429 100644
--- a/pldmd.cpp
+++ b/pldmd.cpp
@@ -1,3 +1,8 @@
+#include "libpldm/base.h"
+#include "libpldm/bios.h"
+#include "libpldm/pdr.h"
+#include "libpldm/platform.h"
+
#include "dbus_impl_pdr.hpp"
#include "dbus_impl_requester.hpp"
#include "host_pdr_handler.hpp"
@@ -17,6 +22,9 @@
#include <sys/un.h>
#include <unistd.h>
+#include <sdeventplus/event.hpp>
+#include <sdeventplus/source/io.hpp>
+
#include <cstdio>
#include <cstring>
#include <fstream>
@@ -24,18 +32,11 @@
#include <iostream>
#include <iterator>
#include <memory>
-#include <sdeventplus/event.hpp>
-#include <sdeventplus/source/io.hpp>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
-#include "libpldm/base.h"
-#include "libpldm/bios.h"
-#include "libpldm/pdr.h"
-#include "libpldm/platform.h"
-
#ifdef OEM_IBM
#include "libpldmresponder/file_io.hpp"
#endif
@@ -195,8 +196,7 @@
pldm::utils::CustomFD socketFd(sockfd);
struct sockaddr_un addr
- {
- };
+ {};
addr.sun_family = AF_UNIX;
const char path[] = "\0mctp-mux";
memcpy(addr.sun_path, path, sizeof(path) - 1);
@@ -233,8 +233,7 @@
// This structure contains the parameter information for the response
// message.
struct msghdr msg
- {
- };
+ {};
int returnCode = 0;
ssize_t peekedLength = recv(fd, nullptr, 0, MSG_PEEK | MSG_TRUNC);