Standardize usage of virtual/override/final specifiers.
commit1f4538e02ae35659abf7f9468639a1045924af50
authordcheng <dcheng@chromium.org>
Mon, 27 Oct 2014 23:57:05 +0000 (27 16:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Oct 2014 23:58:04 +0000 (27 23:58 +0000)
tree1e076638bbebe64689099c5ea5bd82bfa9c6b9aa
parente19d49ab07f57c16eb6685e7394ac4902e53382c
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/680153002

Cr-Commit-Position: refs/heads/master@{#301490}
67 files changed:
ash/accelerators/accelerator_controller.h
ash/accelerators/accelerator_controller_unittest.cc
ash/accelerators/accelerator_delegate.h
ash/accelerators/exit_warning_handler.cc
ash/accelerators/focus_manager_factory.h
ash/accelerators/key_hold_detector.h
ash/accelerators/magnifier_key_scroller.h
ash/accelerators/magnifier_key_scroller_unittest.cc
ash/accelerators/nested_accelerator_delegate.h
ash/accelerators/spoken_feedback_toggler.h
ash/autoclick/autoclick_controller.cc
ash/content_support/gpu_support_impl.h
ash/default_accessibility_delegate.h
ash/default_user_wallpaper_delegate.h
ash/desktop_background/desktop_background_controller.h
ash/desktop_background/desktop_background_controller_unittest.cc
ash/desktop_background/desktop_background_view.cc
ash/desktop_background/desktop_background_view.h
ash/desktop_background/desktop_background_widget_controller.cc
ash/desktop_background/desktop_background_widget_controller.h
ash/desktop_background/wallpaper_resizer_unittest.cc
ash/extended_desktop_unittest.cc
ash/first_run/desktop_cleaner.cc
ash/first_run/first_run_helper_impl.h
ash/gpu_support_stub.h
ash/high_contrast/high_contrast_controller.h
ash/host/ash_window_tree_host_x11.h
ash/host/ash_window_tree_host_x11_unittest.cc
ash/host/transformer_helper.cc
ash/ime/candidate_view.cc
ash/ime/candidate_view.h
ash/ime/candidate_view_unittest.cc
ash/ime/candidate_window_view.cc
ash/ime/candidate_window_view.h
ash/ime/candidate_window_view_unittest.cc
ash/ime/infolist_window.cc
ash/ime/infolist_window.h
ash/ime/input_method_menu_manager_unittest.cc
ash/ime/mode_indicator_view.cc
ash/ime/mode_indicator_view.h
ash/keyboard_overlay/keyboard_overlay_delegate.cc
ash/keyboard_overlay/keyboard_overlay_delegate.h
ash/keyboard_overlay/keyboard_overlay_view.h
ash/keyboard_uma_event_filter.h
ash/magnifier/magnification_controller.cc
ash/magnifier/partial_magnification_controller.h
ash/popup_message.cc
ash/root_window_controller.cc
ash/root_window_controller.h
ash/root_window_controller_unittest.cc
ash/rotator/screen_rotation.h
ash/screensaver/screensaver_view.h
ash/screensaver/screensaver_view_unittest.cc
ash/shell.cc
ash/shell.h
ash/shell_unittest.cc
ash/snap_to_pixel_layout_manager.h
ash/sticky_keys/sticky_keys_overlay.cc
ash/sticky_keys/sticky_keys_overlay.h
ash/tooltips/tooltip_controller_unittest.cc
ash/touch/touch_hud_debug.cc
ash/touch/touch_hud_debug.h
ash/touch/touch_hud_projection.cc
ash/touch/touch_hud_projection.h
ash/touch/touch_observer_hud.h
ash/touch/touch_observer_hud_unittest.cc
ash/virtual_keyboard_controller.h