refactor: Enable more clang-tidy readability checks (#6595)

Co-authored-by: Sergey Kuznetsov <kuzzz99@gmail.com>
This commit is contained in:
Alex Kremer
2026-03-24 15:42:12 +00:00
committed by GitHub
parent 8b986e4ab0
commit 0eedefbf45
248 changed files with 948 additions and 935 deletions

View File

@@ -1075,20 +1075,20 @@ parseArray(
// TODO: There doesn't seem to be a nice way to get just the
// first/only key in an object without copying all keys into
// a vector
std::string const objectName(json[i].getMemberNames()[0]);
std::string const memberName(json[i].getMemberNames()[0]);
;
auto const& nameField(SField::getField(objectName));
auto const& nameField(SField::getField(memberName));
if (nameField == sfInvalid)
{
error = unknown_field(json_name, objectName);
error = unknown_field(json_name, memberName);
return std::nullopt;
}
Json::Value const objectFields(json[i][objectName]);
Json::Value const objectFields(json[i][memberName]);
std::stringstream ss;
ss << json_name << "." << "[" << i << "]." << objectName;
ss << json_name << "." << "[" << i << "]." << memberName;
auto ret = parseObject(ss.str(), objectFields, nameField, depth + 1, error);
if (!ret)