chore: enable modernize-use-override and fix existing violations (#419)

Add modernize-use-override to .clang-tidy and apply fixes across
src/ and tests/: replace redundant virtual with override, annotate
missing override on derived methods, and drop redundant virtual on
already-overridden methods.
This commit is contained in:
egolearner
2026-05-21 19:05:32 +08:00
committed by GitHub
parent bae0e1b763
commit 9aae7494ad
40 changed files with 224 additions and 234 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ using namespace std;
class IVFBuilderTest : public testing::Test {
protected:
void SetUp();
void TearDown();
void SetUp() override;
void TearDown() override;
void prepare_index_holder(uint32_t base_key, uint32_t num);
@@ -31,8 +31,8 @@ using namespace std;
class IVFSearcherTest : public testing::Test {
public:
protected:
void SetUp();
void TearDown();
void SetUp() override;
void TearDown() override;
void prepare_index_holder(uint32_t base_key, uint32_t num);
void prepare_rand_index_holder(uint32_t base_key, uint32_t num);