Fix .clang-tidy
camelLower is not a type, camelBack is.
Changes were made automatically with clang-tidy --fix-errors
To be able to apply changes automatically, the only way I've found that
works was to build the version of clang/clang-tidy that yocto has, and
run the fix script within bitbake -c devshell bmcweb. Unfortunately,
yocto has clang-tidy 11, which can apparently find a couple extra errors
in tests we already had enabled. As such, a couple of those are also
included.
Tested:
Ran clang-tidy-11 and got a clean result.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: I9d1080b67f0342229c2f267160849445c065ca51
diff --git a/http/http_response.hpp b/http/http_response.hpp
index 7b8b5d9..cd00ec8 100644
--- a/http/http_response.hpp
+++ b/http/http_response.hpp
@@ -102,9 +102,9 @@
completed = false;
}
- void write(std::string_view body_part)
+ void write(std::string_view bodyPart)
{
- stringResponse->body() += std::string(body_part);
+ stringResponse->body() += std::string(bodyPart);
}
void end()
@@ -123,9 +123,9 @@
}
}
- void end(std::string_view body_part)
+ void end(std::string_view bodyPart)
{
- write(body_part);
+ write(bodyPart);
end();
}