chore: Enable most clang-tidy bugprone checks (#6929)

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
Alex Kremer
2026-04-14 21:24:21 +01:00
committed by GitHub
parent 2f029a2120
commit 6a0ce46755
38 changed files with 120 additions and 105 deletions

View File

@@ -1188,6 +1188,7 @@ STObject::getFieldByConstRef(SField const& field, V const& empty) const
SerializedTypeID const id = rf->getSType();
if (id == STI_NOTPRESENT)
// NOLINTNEXTLINE(bugprone-return-const-ref-from-parameter)
return empty; // optional field not present
T const* cf = dynamic_cast<T const*>(rf);