Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Issue 680153002: Standardize usage of virtual/override/final specifiers. (Closed)

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
Daniel Erat
CC:
ben+ash_chromium.org, chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 [email protected] Committed: https://crrev.com/1f4538e02ae35659abf7f9468639a1045924af50 Cr-Commit-Position: refs/heads/master@{#301490}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -477 lines) Patch
M ash/accelerators/accelerator_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 8 chunks +19 lines, -23 lines 0 comments Download
M ash/accelerators/accelerator_delegate.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ash/accelerators/exit_warning_handler.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/accelerators/focus_manager_factory.h View 1 chunk +5 lines, -7 lines 0 comments Download
M ash/accelerators/key_hold_detector.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/accelerators/magnifier_key_scroller.h View 1 chunk +5 lines, -5 lines 0 comments Download
M ash/accelerators/magnifier_key_scroller_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/accelerators/nested_accelerator_delegate.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ash/accelerators/spoken_feedback_toggler.h View 1 chunk +5 lines, -5 lines 0 comments Download
M ash/autoclick/autoclick_controller.cc View 1 chunk +10 lines, -10 lines 0 comments Download
M ash/content_support/gpu_support_impl.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ash/default_accessibility_delegate.h View 1 chunk +25 lines, -25 lines 0 comments Download
M ash/default_user_wallpaper_delegate.h View 1 chunk +11 lines, -12 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/desktop_background/desktop_background_controller_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/desktop_background/desktop_background_view.h View 1 chunk +6 lines, -6 lines 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M ash/desktop_background/desktop_background_widget_controller.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/desktop_background/desktop_background_widget_controller.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M ash/desktop_background/wallpaper_resizer_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M ash/extended_desktop_unittest.cc View 5 chunks +9 lines, -13 lines 0 comments Download
M ash/first_run/desktop_cleaner.cc View 1 3 chunks +5 lines, -7 lines 0 comments Download
M ash/first_run/first_run_helper_impl.h View 1 chunk +15 lines, -15 lines 0 comments Download
M ash/gpu_support_stub.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ash/high_contrast/high_contrast_controller.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/host/ash_window_tree_host_x11.h View 1 chunk +20 lines, -21 lines 0 comments Download
M ash/host/ash_window_tree_host_x11_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M ash/host/transformer_helper.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M ash/ime/candidate_view.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ash/ime/candidate_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/ime/candidate_view_unittest.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M ash/ime/candidate_window_view.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ash/ime/candidate_window_view.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M ash/ime/candidate_window_view_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/ime/infolist_window.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/ime/infolist_window.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ash/ime/input_method_menu_manager_unittest.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M ash/ime/mode_indicator_view.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ash/ime/mode_indicator_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/keyboard_overlay/keyboard_overlay_delegate.h View 1 chunk +12 lines, -13 lines 0 comments Download
M ash/keyboard_overlay/keyboard_overlay_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/keyboard_overlay/keyboard_overlay_view.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ash/keyboard_uma_event_filter.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/magnifier/magnification_controller.cc View 3 chunks +25 lines, -28 lines 0 comments Download
M ash/magnifier/partial_magnification_controller.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ash/popup_message.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/root_window_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/root_window_controller.cc View 1 chunk +17 lines, -34 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 8 chunks +14 lines, -20 lines 0 comments Download
M ash/rotator/screen_rotation.h View 2 chunks +5 lines, -6 lines 0 comments Download
M ash/screensaver/screensaver_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ash/screensaver/screensaver_view_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell.h View 2 chunks +9 lines, -9 lines 0 comments Download
M ash/shell.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M ash/shell_unittest.cc View 4 chunks +13 lines, -27 lines 0 comments Download
M ash/snap_to_pixel_layout_manager.h View 1 chunk +9 lines, -9 lines 0 comments Download
M ash/sticky_keys/sticky_keys_overlay.h View 2 chunks +4 lines, -7 lines 0 comments Download
M ash/sticky_keys/sticky_keys_overlay.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/tooltips/tooltip_controller_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/touch/touch_hud_debug.h View 1 chunk +7 lines, -8 lines 0 comments Download
M ash/touch/touch_hud_debug.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/touch/touch_hud_projection.h View 1 chunk +5 lines, -6 lines 0 comments Download
M ash/touch/touch_hud_projection.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ash/touch/touch_observer_hud.h View 3 chunks +10 lines, -10 lines 0 comments Download
M ash/touch/touch_observer_hud_unittest.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M ash/virtual_keyboard_controller.h View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
dcheng
6 years, 1 month ago (2014-10-27 21:42:20 UTC) #1
Daniel Erat
lgtm https://codereview.chromium.org/680153002/diff/1/ash/first_run/desktop_cleaner.cc File ash/first_run/desktop_cleaner.cc (right): https://codereview.chromium.org/680153002/diff/1/ash/first_run/desktop_cleaner.cc#newcode82 ash/first_run/desktop_cleaner.cc:82: ~NotificationBlocker() override{}; i feel like the following, with ...
6 years, 1 month ago (2014-10-27 21:55:49 UTC) #2
dcheng
https://codereview.chromium.org/680153002/diff/1/ash/first_run/desktop_cleaner.cc File ash/first_run/desktop_cleaner.cc (right): https://codereview.chromium.org/680153002/diff/1/ash/first_run/desktop_cleaner.cc#newcode82 ash/first_run/desktop_cleaner.cc:82: ~NotificationBlocker() override{}; On 2014/10/27 21:55:49, Daniel Erat wrote: > ...
6 years, 1 month ago (2014-10-27 22:03:42 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680153002/20001
6 years, 1 month ago (2014-10-27 22:06:31 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-27 23:57:34 UTC) #6
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 23:58:35 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1f4538e02ae35659abf7f9468639a1045924af50
Cr-Commit-Position: refs/heads/master@{#301490}

Powered by Google App Engine
This is Rietveld 408576698