Standardize usage of virtual/override/final specifiers.
commit7d4328f4fa95550f23f70f8246cab834fe109c55
authordcheng <dcheng@chromium.org>
Tue, 28 Oct 2014 00:50:37 +0000 (27 17:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Oct 2014 00:50:59 +0000 (28 00:50 +0000)
tree27ffc354a66c1acf4f4973431706ff7e1829db55
parentc71b15e5882e4e089c2276742e83bd0ea9112709
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=derat@chromium.org

Review URL: https://codereview.chromium.org/685543003

Cr-Commit-Position: refs/heads/master@{#301523}
18 files changed:
ash/display/cursor_window_controller.cc
ash/display/display_controller.h
ash/display/display_controller_unittest.cc
ash/display/display_manager_unittest.cc
ash/display/event_transformation_handler.h
ash/display/mirror_window_controller.cc
ash/display/mirror_window_controller.h
ash/display/mirror_window_controller_unittest.cc
ash/display/mouse_cursor_event_filter.h
ash/display/mouse_cursor_event_filter_unittest.cc
ash/display/root_window_transformers.cc
ash/display/root_window_transformers_unittest.cc
ash/display/screen_ash.cc
ash/display/screen_ash.h
ash/display/screen_position_controller.h
ash/display/screen_position_controller_unittest.cc
ash/display/shared_display_edge_indicator.cc
ash/display/shared_display_edge_indicator.h