Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2244)

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
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 R=harrym@chromium.org Committed: https://crrev.com/419957cf1d7ef4804f7222fee32179a3d8cb6a9d Cr-Commit-Position: refs/heads/master@{#302180}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -336 lines) Patch
M ash/shelf/app_list_button.h View 2 chunks +11 lines, -11 lines 0 comments Download
M ash/shelf/app_list_shelf_item_delegate.h View 1 chunk +8 lines, -8 lines 0 comments Download
M ash/shelf/background_animator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/overflow_bubble.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ash/shelf/overflow_bubble_view.h View 2 chunks +7 lines, -7 lines 0 comments Download
M ash/shelf/overflow_button.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_alignment_menu.h View 1 chunk +6 lines, -7 lines 0 comments Download
M ash/shelf/shelf_bezel_event_filter.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_button.h View 4 chunks +19 lines, -19 lines 0 comments Download
M ash/shelf/shelf_button.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M ash/shelf/shelf_item_delegate_manager.h View 2 chunks +6 lines, -7 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 3 chunks +11 lines, -12 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 7 chunks +15 lines, -28 lines 0 comments Download
M ash/shelf/shelf_model_unittest.cc View 3 chunks +8 lines, -14 lines 0 comments Download
M ash/shelf/shelf_navigator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_tooltip_manager.h View 2 chunks +8 lines, -9 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/shelf/shelf_unittest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M ash/shelf/shelf_view.h View 5 chunks +44 lines, -49 lines 0 comments Download
M ash/shelf/shelf_view.cc View 5 chunks +32 lines, -34 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 9 chunks +21 lines, -31 lines 0 comments Download
M ash/shelf/shelf_widget.h View 3 chunks +3 lines, -4 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 7 chunks +23 lines, -34 lines 0 comments Download
M ash/shelf/shelf_window_watcher.h View 3 chunks +19 lines, -19 lines 0 comments Download
M ash/shelf/shelf_window_watcher_item_delegate.h View 1 chunk +8 lines, -8 lines 0 comments Download
M ash/shelf/shelf_window_watcher_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
dcheng
6 years, 1 month ago (2014-10-27 21:42:48 UTC) #1
dcheng
+davemoore, mind taking a look at this?
6 years, 1 month ago (2014-10-29 17:57:20 UTC) #3
DaveMoore
On 2014/10/29 17:57:20, dcheng wrote: > +davemoore, mind taking a look at this? Sorry, I'm ...
6 years, 1 month ago (2014-10-30 17:31:11 UTC) #4
dcheng
+skuhne, mind taking a look?
6 years, 1 month ago (2014-10-30 17:34:12 UTC) #6
Mr4D (OOO till 08-26)
lgtm
6 years, 1 month ago (2014-10-30 21:45:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684643002/1
6 years, 1 month ago (2014-10-30 21:47:57 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/28122) android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/28485) chromium_presubmit ...
6 years, 1 month ago (2014-10-30 21:53:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684643002/20001
6 years, 1 month ago (2014-10-30 22:03:44 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-30 22:51:49 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 22:52:32 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/419957cf1d7ef4804f7222fee32179a3d8cb6a9d
Cr-Commit-Position: refs/heads/master@{#302180}

Powered by Google App Engine
This is Rietveld 408576698