diff options
author | dcheng <dcheng@chromium.org> | 2014-10-27 14:43:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-27 21:43:44 +0000 |
commit | f9afb370f94e325015aa8633135474f87aa5eb76 (patch) | |
tree | 4688f718dc5af753297b11f3e765c08e248a3098 /extensions/renderer/api_test_base_unittest.cc | |
parent | 1d5884e1c15b36604a9c9f9376d18cb91f345f47 (diff) | |
download | chromium_src-f9afb370f94e325015aa8633135474f87aa5eb76.zip chromium_src-f9afb370f94e325015aa8633135474f87aa5eb76.tar.gz chromium_src-f9afb370f94e325015aa8633135474f87aa5eb76.tar.bz2 |
Standardize usage of virtual/override/final specifiers.
The Google C++ style guide states:
Explicitly annotate overrides of virtual functions or virtual
destructors with an override or (less frequently) final specifier.
Older (pre-C++11) code will use the virtual keyword as an inferior
alternative annotation. For clarity, use exactly one of override,
final, or virtual when declaring an override.
To better conform to these guidelines, the following constructs have
been rewritten:
- if a base class has a virtual destructor, then:
virtual ~Foo(); -> ~Foo() override;
- virtual void Foo() override; -> void Foo() override;
- virtual void Foo() override final; -> void Foo() final;
This patch was automatically generated. The clang plugin can generate
fixit hints, which are suggested edits when it is 100% sure it knows how
to fix a problem. The hints from the clang plugin were applied to the
source tree using the tool in https://codereview.chromium.org/598073004.
BUG=417463
R=jyasskin@chromium.org
Review URL: https://codereview.chromium.org/685503002
Cr-Commit-Position: refs/heads/master@{#301450}
Diffstat (limited to 'extensions/renderer/api_test_base_unittest.cc')
-rw-r--r-- | extensions/renderer/api_test_base_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/renderer/api_test_base_unittest.cc b/extensions/renderer/api_test_base_unittest.cc index 5b52fd73..149e34e 100644 --- a/extensions/renderer/api_test_base_unittest.cc +++ b/extensions/renderer/api_test_base_unittest.cc @@ -8,7 +8,7 @@ namespace extensions { class ApiTestBaseTest : public ApiTestBase { public: - virtual void SetUp() override { ApiTestBase::SetUp(); } + void SetUp() override { ApiTestBase::SetUp(); } }; TEST_F(ApiTestBaseTest, TestEnvironment) { |