Standardize usage of virtual/override/final in device/
commitb5aaf402eb4783b9f62de3ae8485edec343866cc
authordcheng <dcheng@chromium.org>
Wed, 22 Oct 2014 23:07:52 +0000 (22 16:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Oct 2014 23:08:15 +0000 (22 23:08 +0000)
treee9f30bd26479007ce31da6833f81743109eba9b4
parent9cee6105930e94ad2abf2c004efb1d65c0759a0f
Standardize usage of virtual/override/final in device/

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
TBR=keybuk@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#300790}
32 files changed:
device/bluetooth/bluetooth_adapter_mac.h
device/bluetooth/bluetooth_adapter_unittest.cc
device/bluetooth/bluetooth_device_mac.h
device/bluetooth/bluetooth_discovery_manager_mac.mm
device/bluetooth/bluetooth_l2cap_channel_mac.h
device/bluetooth/bluetooth_rfcomm_channel_mac.h
device/bluetooth/bluetooth_socket_mac.h
device/bluetooth/bluetooth_socket_net.h
device/hid/hid_connection_mac.h
device/hid/hid_service.cc
device/hid/hid_service_mac.h
device/nfc/nfc_tag_technology.h
device/serial/data_receiver.cc
device/serial/data_receiver.h
device/serial/data_sender.h
device/serial/data_sink_receiver.cc
device/serial/data_sink_receiver.h
device/serial/data_source_sender.cc
device/serial/data_source_sender.h
device/serial/serial_connection.h
device/serial/serial_connection_unittest.cc
device/serial/serial_device_enumerator_mac.h
device/serial/serial_io_handler_posix.h
device/serial/serial_service_impl.h
device/serial/serial_service_unittest.cc
device/serial/test_serial_io_handler.h
device/test/usb_test_gadget_impl.cc
device/usb/usb_context.cc
device/usb/usb_context_unittest.cc
device/usb/usb_device_handle_impl.h
device/usb/usb_device_impl.h
device/usb/usb_service_impl.cc