Fixed clang-tidy warnings
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user