Fixed clang-tidy warnings

This commit is contained in:
Bartek Kryza
2023-09-13 17:17:48 +02:00
parent a99e987d3b
commit 70e7088823
2 changed files with 6 additions and 6 deletions

View File

@@ -240,16 +240,16 @@ void generator::generate_method(
std::vector<std::string> method_mods;
if (m.is_defaulted()) {
method_mods.push_back("default");
method_mods.emplace_back("default");
}
if (m.is_const()) {
method_mods.push_back("const");
method_mods.emplace_back("const");
}
if (m.is_constexpr()) {
method_mods.push_back("constexpr");
method_mods.emplace_back("constexpr");
}
if (m.is_consteval()) {
method_mods.push_back("consteval");
method_mods.emplace_back("consteval");
}
if (!method_mods.empty()) {

View File

@@ -74,8 +74,8 @@ std::string to_mermaid(message_t r)
std::string indent(const unsigned level)
{
const auto kIndentWidth = 4U;
return std::string(level * kIndentWidth, ' ');
const auto kIndentWidth = 4UL;
return std::string(level * kIndentWidth, ' '); // NOLINT
}
std::string render_name(std::string name)