summaryrefslogtreecommitdiff
path: root/include/ibm
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2023-05-10 15:51:34 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-05-11 00:18:24 +0300
commit89492a157c9cf972b342421e24d41fd382510251 (patch)
tree64ed25f427f1ab1981f8c2bdcbfbc7fde5db80e9 /include/ibm
parentcddbf3df0ea0b78521b62f30f2ce764c6619018a (diff)
downloadbmcweb-89492a157c9cf972b342421e24d41fd382510251.tar.xz
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository. Change-Id: I75f89d2959b0f1338c20d72ad669fbdc1d720835 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'include/ibm')
-rw-r--r--include/ibm/locks.hpp5
-rw-r--r--include/ibm/management_console_rest.hpp11
2 files changed, 5 insertions, 11 deletions
diff --git a/include/ibm/locks.hpp b/include/ibm/locks.hpp
index fd27ef91cb..99b9cc3fba 100644
--- a/include/ibm/locks.hpp
+++ b/include/ibm/locks.hpp
@@ -187,7 +187,6 @@ class Lock
inline RcGetLockList Lock::getLockList(const ListOfSessionIds& listSessionId)
{
-
std::vector<std::pair<uint32_t, LockRequests>> lockList;
if (!lockTable.empty())
@@ -241,7 +240,6 @@ inline RcReleaseLockApi Lock::releaseLock(const ListOfTransactionIds& p,
inline RcAcquireLock Lock::acquireLock(const LockRequests& lockRequestStructure)
{
-
// validate the lock request
for (const auto& lockRecord : lockRequestStructure)
@@ -363,7 +361,6 @@ inline bool Lock::validateRids(const ListOfTransactionIds& refRids)
inline bool Lock::isValidLockRequest(const LockRequest& refLockRecord)
{
-
// validate the locktype
if (!((boost::equals(std::get<2>(refLockRecord), "Read") ||
@@ -392,7 +389,6 @@ inline bool Lock::isValidLockRequest(const LockRequest& refLockRecord)
for (const auto& p : std::get<4>(refLockRecord))
{
-
// validate the lock flags
// Allowed lockflags are locksame,lockall & dontlock
@@ -552,7 +548,6 @@ inline bool Lock::isConflictRecord(const LockRequest& refLockRecord1,
uint32_t i = 0;
for (const auto& p : std::get<4>(refLockRecord1))
{
-
// return conflict when any of them is try to lock all resources
// under the current resource level.
if (boost::equals(p.first, "LockAll") ||
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp
index e1b7f83949..51f5298b38 100644
--- a/include/ibm/management_console_rest.hpp
+++ b/include/ibm/management_console_rest.hpp
@@ -36,11 +36,11 @@ constexpr const char* internalServerError = "Internal Server Error";
constexpr size_t maxSaveareaDirSize =
25000000; // Allow save area dir size to be max 25MB
constexpr size_t minSaveareaFileSize =
- 100; // Allow save area file size of minimum 100B
+ 100; // Allow save area file size of minimum 100B
constexpr size_t maxSaveareaFileSize =
- 500000; // Allow save area file size upto 500KB
+ 500000; // Allow save area file size upto 500KB
constexpr size_t maxBroadcastMsgSize =
- 1000; // Allow Broadcast message size upto 1KB
+ 1000; // Allow Broadcast message size upto 1KB
inline void handleFilePut(const crow::Request& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
@@ -323,8 +323,8 @@ inline void handleFileGet(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
return;
}
- std::string contentDispositionParam =
- "attachment; filename=\"" + fileID + "\"";
+ std::string contentDispositionParam = "attachment; filename=\"" + fileID +
+ "\"";
asyncResp->res.addHeader(boost::beast::http::field::content_disposition,
contentDispositionParam);
std::string fileData;
@@ -685,7 +685,6 @@ inline bool isValidConfigFileName(const std::string& fileName,
inline void requestRoutes(App& app)
{
-
// allowed only for admin
BMCWEB_ROUTE(app, "/ibm/v1/")
.privileges({{"ConfigureComponents", "ConfigureManager"}})