Standardize usage of virtual/override/final specifiers.
commit974fdd8404080d3864ef352e5da771bc504642af
authordcheng <dcheng@chromium.org>
Tue, 28 Oct 2014 19:00:31 +0000 (28 12:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Oct 2014 19:00:49 +0000 (28 19:00 +0000)
treeace3257697740f70de739de0d2cc83fecb1cd51d
parent895c141e1b81e166100775bae4fcca0128c41618
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=jennyz@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#301673}
38 files changed:
ash/system/audio/tray_audio.h
ash/system/audio/volume_view.cc
ash/system/audio/volume_view.h
ash/system/bluetooth/tray_bluetooth.cc
ash/system/bluetooth/tray_bluetooth.h
ash/system/chromeos/tray_tracing.h
ash/system/date/date_default_view.h
ash/system/date/date_view.h
ash/system/date/date_view_unittest.cc
ash/system/date/tray_date.h
ash/system/ime/tray_ime.cc
ash/system/ime/tray_ime.h
ash/system/locale/locale_notification_controller.cc
ash/system/locale/locale_notification_controller.h
ash/system/overview/overview_button_tray.h
ash/system/overview/overview_button_tray_unittest.cc
ash/system/status_area_widget.h
ash/system/status_area_widget_delegate.cc
ash/system/status_area_widget_delegate.h
ash/system/tray_accessibility.cc
ash/system/tray_accessibility.h
ash/system/tray_update.cc
ash/system/tray_update.h
ash/system/user/accounts_detailed_view.h
ash/system/user/button_from_view.h
ash/system/user/rounded_image_view.h
ash/system/user/tray_user.h
ash/system/user/tray_user_separator.h
ash/system/user/tray_user_unittest.cc
ash/system/user/user_card_view.cc
ash/system/user/user_card_view.h
ash/system/user/user_view.cc
ash/system/user/user_view.h
ash/system/web_notification/ash_popup_alignment_delegate.h
ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
ash/system/web_notification/web_notification_tray.cc
ash/system/web_notification/web_notification_tray.h
ash/system/web_notification/web_notification_tray_unittest.cc