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/libpldmresponder/base.cpp b/libpldmresponder/base.cpp
index f72e8dc..640fe65 100644
--- a/libpldmresponder/base.cpp
+++ b/libpldmresponder/base.cpp
@@ -1,5 +1,9 @@
 #include "libpldm/base.h"
 
+#include "libpldm/bios.h"
+#include "libpldm/fru.h"
+#include "libpldm/platform.h"
+
 #include "base.hpp"
 
 #include <array>
@@ -8,10 +12,6 @@
 #include <stdexcept>
 #include <vector>
 
-#include "libpldm/bios.h"
-#include "libpldm/fru.h"
-#include "libpldm/platform.h"
-
 #ifdef OEM_IBM
 #include "libpldm/file_io.h"
 #include "libpldm/host.h"
diff --git a/libpldmresponder/base.hpp b/libpldmresponder/base.hpp
index 519bff2..67cf9d9 100644
--- a/libpldmresponder/base.hpp
+++ b/libpldmresponder/base.hpp
@@ -1,13 +1,13 @@
 #pragma once
 
+#include "libpldm/base.h"
+
 #include "handler.hpp"
 
 #include <stdint.h>
 
 #include <vector>
 
-#include "libpldm/base.h"
-
 namespace pldm
 {
 namespace responder
diff --git a/libpldmresponder/bios.hpp b/libpldmresponder/bios.hpp
index be0d403..269d5a1 100644
--- a/libpldmresponder/bios.hpp
+++ b/libpldmresponder/bios.hpp
@@ -2,6 +2,9 @@
 
 #include "config.h"
 
+#include "libpldm/bios.h"
+#include "libpldm/bios_table.h"
+
 #include "bios_config.hpp"
 #include "bios_table.hpp"
 #include "handler.hpp"
@@ -13,9 +16,6 @@
 #include <map>
 #include <vector>
 
-#include "libpldm/bios.h"
-#include "libpldm/bios_table.h"
-
 namespace pldm
 {
 
diff --git a/libpldmresponder/bios_attribute.hpp b/libpldmresponder/bios_attribute.hpp
index 3f3ab4d..effc733 100644
--- a/libpldmresponder/bios_attribute.hpp
+++ b/libpldmresponder/bios_attribute.hpp
@@ -1,18 +1,19 @@
 #pragma once
 
+#include "bios_table.h"
+
 #include "bios_table.hpp"
 #include "utils.hpp"
 
+#include <nlohmann/json.hpp>
+
 #include <cstdint>
 #include <filesystem>
 #include <memory>
-#include <nlohmann/json.hpp>
 #include <optional>
 #include <string>
 #include <vector>
 
-#include "bios_table.h"
-
 namespace pldm
 {
 namespace responder
diff --git a/libpldmresponder/bios_config.hpp b/libpldmresponder/bios_config.hpp
index 98734ba..430798f 100644
--- a/libpldmresponder/bios_config.hpp
+++ b/libpldmresponder/bios_config.hpp
@@ -1,19 +1,20 @@
 #pragma once
 
+#include "bios_table.h"
+
 #include "bios_attribute.hpp"
 #include "bios_table.hpp"
 
+#include <nlohmann/json.hpp>
+
 #include <functional>
 #include <iostream>
 #include <memory>
-#include <nlohmann/json.hpp>
 #include <optional>
 #include <set>
 #include <string>
 #include <vector>
 
-#include "bios_table.h"
-
 namespace pldm
 {
 namespace responder
diff --git a/libpldmresponder/bios_table.cpp b/libpldmresponder/bios_table.cpp
index b8fa713..a618f52 100644
--- a/libpldmresponder/bios_table.cpp
+++ b/libpldmresponder/bios_table.cpp
@@ -1,9 +1,9 @@
 #include "bios_table.hpp"
 
-#include <fstream>
-
 #include "bios_table.h"
 
+#include <fstream>
+
 namespace pldm
 {
 
@@ -14,8 +14,7 @@
 {
 
 BIOSTable::BIOSTable(const char* filePath) : filePath(filePath)
-{
-}
+{}
 
 bool BIOSTable::isEmpty() const noexcept
 {
@@ -48,8 +47,7 @@
 
 BIOSStringTable::BIOSStringTable(const Table& stringTable) :
     stringTable(stringTable)
-{
-}
+{}
 
 BIOSStringTable::BIOSStringTable(const BIOSTable& biosTable)
 {
diff --git a/libpldmresponder/bios_table.hpp b/libpldmresponder/bios_table.hpp
index 52385e5..5d4b069 100644
--- a/libpldmresponder/bios_table.hpp
+++ b/libpldmresponder/bios_table.hpp
@@ -1,5 +1,8 @@
 #pragma once
 
+#include "libpldm/bios.h"
+#include "libpldm/bios_table.h"
+
 #include <stdint.h>
 
 #include <filesystem>
@@ -7,9 +10,6 @@
 #include <string>
 #include <vector>
 
-#include "libpldm/bios.h"
-#include "libpldm/bios_table.h"
-
 namespace pldm
 {
 
diff --git a/libpldmresponder/event_parser.cpp b/libpldmresponder/event_parser.cpp
index 0a0000c..894c0aa 100644
--- a/libpldmresponder/event_parser.cpp
+++ b/libpldmresponder/event_parser.cpp
@@ -1,10 +1,11 @@
 #include "event_parser.hpp"

 

+#include <xyz/openbmc_project/Common/error.hpp>

+

 #include <filesystem>

 #include <fstream>

 #include <iostream>

 #include <set>

-#include <xyz/openbmc_project/Common/error.hpp>

 

 namespace pldm::responder::events

 {

diff --git a/libpldmresponder/event_parser.hpp b/libpldmresponder/event_parser.hpp
index 1139c71..19004a7 100644
--- a/libpldmresponder/event_parser.hpp
+++ b/libpldmresponder/event_parser.hpp
@@ -3,9 +3,10 @@
 #include "types.hpp"

 #include "utils.hpp"

 

+#include <nlohmann/json.hpp>

+

 #include <filesystem>

 #include <map>

-#include <nlohmann/json.hpp>

 #include <string>

 #include <tuple>

 #include <vector>

diff --git a/libpldmresponder/fru.cpp b/libpldmresponder/fru.cpp
index 50e46d8..b3dc73b 100644
--- a/libpldmresponder/fru.cpp
+++ b/libpldmresponder/fru.cpp
@@ -1,14 +1,15 @@
 #include "fru.hpp"
 
+#include "libpldm/utils.h"
+
 #include "utils.hpp"
 
 #include <systemd/sd-journal.h>
 
-#include <iostream>
 #include <sdbusplus/bus.hpp>
-#include <set>
 
-#include "libpldm/utils.h"
+#include <iostream>
+#include <set>
 
 namespace pldm
 {
diff --git a/libpldmresponder/fru.hpp b/libpldmresponder/fru.hpp
index d4a647a..afa6b1c 100644
--- a/libpldmresponder/fru.hpp
+++ b/libpldmresponder/fru.hpp
@@ -2,18 +2,19 @@
 
 #include "config.h"
 
+#include "libpldm/fru.h"
+#include "libpldm/pdr.h"
+
 #include "fru_parser.hpp"
 #include "handler.hpp"
 
-#include <map>
 #include <sdbusplus/message.hpp>
+
+#include <map>
 #include <string>
 #include <variant>
 #include <vector>
 
-#include "libpldm/fru.h"
-#include "libpldm/pdr.h"
-
 namespace pldm
 {
 
diff --git a/libpldmresponder/fru_parser.cpp b/libpldmresponder/fru_parser.cpp
index 84d3898..a500a00 100644
--- a/libpldmresponder/fru_parser.cpp
+++ b/libpldmresponder/fru_parser.cpp
@@ -1,10 +1,11 @@
 #include "fru_parser.hpp"
 
+#include <nlohmann/json.hpp>
+#include <xyz/openbmc_project/Common/error.hpp>
+
 #include <filesystem>
 #include <fstream>
 #include <iostream>
-#include <nlohmann/json.hpp>
-#include <xyz/openbmc_project/Common/error.hpp>
 
 namespace pldm
 {
diff --git a/libpldmresponder/pdr_numeric_effecter.hpp b/libpldmresponder/pdr_numeric_effecter.hpp
index 63a4c26..1aa525b 100644
--- a/libpldmresponder/pdr_numeric_effecter.hpp
+++ b/libpldmresponder/pdr_numeric_effecter.hpp
@@ -1,9 +1,9 @@
 #pragma once
 
-#include "libpldmresponder/pdr_utils.hpp"
-
 #include "libpldm/platform.h"
 
+#include "libpldmresponder/pdr_utils.hpp"
+
 namespace pldm
 {
 
diff --git a/libpldmresponder/pdr_state_effecter.hpp b/libpldmresponder/pdr_state_effecter.hpp
index 25f3198..5b49a46 100644
--- a/libpldmresponder/pdr_state_effecter.hpp
+++ b/libpldmresponder/pdr_state_effecter.hpp
@@ -1,9 +1,9 @@
 #pragma once
 
-#include "libpldmresponder/pdr_utils.hpp"
-
 #include "libpldm/platform.h"
 
+#include "libpldmresponder/pdr_utils.hpp"
+
 namespace pldm
 {
 
diff --git a/libpldmresponder/pdr_utils.cpp b/libpldmresponder/pdr_utils.cpp
index 8819e67..0769ace 100644
--- a/libpldmresponder/pdr_utils.cpp
+++ b/libpldmresponder/pdr_utils.cpp
@@ -1,9 +1,9 @@
+#include "libpldm/platform.h"
+
 #include "pdr.hpp"
 
 #include <climits>
 
-#include "libpldm/platform.h"
-
 namespace pldm
 {
 
diff --git a/libpldmresponder/pdr_utils.hpp b/libpldmresponder/pdr_utils.hpp
index 8f4f825..e644534 100644
--- a/libpldmresponder/pdr_utils.hpp
+++ b/libpldmresponder/pdr_utils.hpp
@@ -1,19 +1,20 @@
 #pragma once
 
+#include "libpldm/pdr.h"
+
 #include "types.hpp"
 #include "utils.hpp"
 
 #include <stdint.h>
 
+#include <nlohmann/json.hpp>
+#include <xyz/openbmc_project/Common/error.hpp>
+
 #include <filesystem>
 #include <fstream>
 #include <functional>
 #include <iostream>
-#include <nlohmann/json.hpp>
 #include <string>
-#include <xyz/openbmc_project/Common/error.hpp>
-
-#include "libpldm/pdr.h"
 
 using InternalFailure =
     sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure;
@@ -101,8 +102,7 @@
 {
   public:
     RepoInterface(pldm_pdr* repo) : repo(repo)
-    {
-    }
+    {}
 
     virtual ~RepoInterface() = default;
 
@@ -177,8 +177,7 @@
 {
   public:
     Repo(pldm_pdr* repo) : RepoInterface(repo)
-    {
-    }
+    {}
 
     pldm_pdr* getPdr() const override;
 
diff --git a/libpldmresponder/platform.hpp b/libpldmresponder/platform.hpp
index a21502e..10d0b27 100644
--- a/libpldmresponder/platform.hpp
+++ b/libpldmresponder/platform.hpp
@@ -2,6 +2,9 @@
 
 #include "config.h"
 
+#include "libpldm/platform.h"
+#include "libpldm/states.h"
+
 #include "event_parser.hpp"
 #include "handler.hpp"
 #include "host_pdr_handler.hpp"
@@ -13,9 +16,6 @@
 
 #include <map>
 
-#include "libpldm/platform.h"
-#include "libpldm/states.h"
-
 namespace pldm
 {
 namespace responder
diff --git a/libpldmresponder/platform_numeric_effecter.hpp b/libpldmresponder/platform_numeric_effecter.hpp
index b5d8ef5..76c2267 100644
--- a/libpldmresponder/platform_numeric_effecter.hpp
+++ b/libpldmresponder/platform_numeric_effecter.hpp
@@ -2,6 +2,9 @@
 
 #include "config.h"
 
+#include "libpldm/platform.h"
+#include "libpldm/states.h"
+
 #include "handler.hpp"
 #include "libpldmresponder/pdr.hpp"
 #include "pdr_utils.hpp"
@@ -13,9 +16,6 @@
 #include <map>
 #include <optional>
 
-#include "libpldm/platform.h"
-#include "libpldm/states.h"
-
 using namespace pldm::responder::pdr;
 using namespace pldm::utils;
 
diff --git a/libpldmresponder/platform_state_effecter.hpp b/libpldmresponder/platform_state_effecter.hpp
index 7584a67..1f665be 100644
--- a/libpldmresponder/platform_state_effecter.hpp
+++ b/libpldmresponder/platform_state_effecter.hpp
@@ -2,6 +2,9 @@
 
 #include "config.h"
 
+#include "libpldm/platform.h"
+#include "libpldm/states.h"
+
 #include "handler.hpp"
 #include "libpldmresponder/pdr.hpp"
 #include "pdr_utils.hpp"
@@ -10,9 +13,6 @@
 #include <cstdint>
 #include <map>
 
-#include "libpldm/platform.h"
-#include "libpldm/states.h"
-
 using namespace pldm::responder::pdr;
 
 namespace pldm