Fixup readabilty/inheritance warnings (#1805)
This CL removes the un-needed virtual qualifiers from methods already marked as override.
This commit is contained in:
Родитель
9991d661f8
Коммит
05057c9846
|
@ -22,7 +22,6 @@ LINT_FILTERS = [
|
|||
"-build/storage_class",
|
||||
"-readability/casting",
|
||||
"-readability/fn_size",
|
||||
"-readability/inheritance",
|
||||
"-readability/todo",
|
||||
"-runtime/explicit",
|
||||
"-runtime/int",
|
||||
|
|
|
@ -26,7 +26,7 @@ class EntryPointsAmountTest : public spvtest::LinkerTest {
|
|||
public:
|
||||
EntryPointsAmountTest() { binaries.reserve(0xFFFF); }
|
||||
|
||||
virtual void SetUp() override {
|
||||
void SetUp() override {
|
||||
binaries.push_back({SpvMagicNumber,
|
||||
SpvVersion,
|
||||
SPV_GENERATOR_CODEPLAY,
|
||||
|
@ -103,7 +103,7 @@ class EntryPointsAmountTest : public spvtest::LinkerTest {
|
|||
binaries.push_back(binary);
|
||||
}
|
||||
}
|
||||
virtual void TearDown() override { binaries.clear(); }
|
||||
void TearDown() override { binaries.clear(); }
|
||||
|
||||
spvtest::Binaries binaries;
|
||||
};
|
||||
|
|
|
@ -61,7 +61,7 @@ class LinkerTest : public ::testing::Test {
|
|||
tools_.SetMessageConsumer(consumer);
|
||||
}
|
||||
|
||||
virtual void TearDown() override { error_message_.clear(); }
|
||||
void TearDown() override { error_message_.clear(); }
|
||||
|
||||
// Assembles each of the given strings into SPIR-V binaries before linking
|
||||
// them together. SPV_ERROR_INVALID_TEXT is returned if the assembling failed
|
||||
|
|
|
@ -63,7 +63,7 @@ class DecorationManagerTest : public ::testing::Test {
|
|||
tools_.SetMessageConsumer(consumer_);
|
||||
}
|
||||
|
||||
virtual void TearDown() override { error_message_.clear(); }
|
||||
void TearDown() override { error_message_.clear(); }
|
||||
|
||||
DecorationManager* GetDecorationManager(const std::string& text) {
|
||||
context_ = BuildModule(SPV_ENV_UNIVERSAL_1_2, consumer_, text);
|
||||
|
|
|
@ -61,7 +61,7 @@ class RemoveDuplicatesTest : public ::testing::Test {
|
|||
tools_.SetMessageConsumer(consumer_);
|
||||
}
|
||||
|
||||
virtual void TearDown() override { error_message_.clear(); }
|
||||
void TearDown() override { error_message_.clear(); }
|
||||
|
||||
std::string RunPass(const std::string& text) {
|
||||
context_ = spvtools::BuildModule(SPV_ENV_UNIVERSAL_1_2, consumer_, text);
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace {
|
|||
// Fixture class providing some element types.
|
||||
class SameTypeTest : public ::testing::Test {
|
||||
protected:
|
||||
virtual void SetUp() override {
|
||||
void SetUp() override {
|
||||
void_t_.reset(new Void());
|
||||
u32_t_.reset(new Integer(32, false));
|
||||
f64_t_.reset(new Float(64));
|
||||
|
|
Загрузка…
Ссылка в новой задаче