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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
James Cook
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=jamescook@chromium.org Committed: https://crrev.com/f59635116303ce62fcc95a647df72c77e0129eee Cr-Commit-Position: refs/heads/master@{#301535}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -266 lines) Patch
M ash/shell/app_list.cc View 4 chunks +31 lines, -51 lines 2 comments Download
M ash/shell/bubble.cc View 1 chunk +1 line, -1 line 2 comments Download
M ash/shell/content_client/shell_browser_main_parts.h View 1 chunk +7 lines, -7 lines 0 comments Download
M ash/shell/content_client/shell_browser_main_parts.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ash/shell/content_client/shell_content_browser_client.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ash/shell/content_client/shell_main_delegate.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ash/shell/context_menu.h View 1 chunk +6 lines, -7 lines 0 comments Download
M ash/shell/keyboard_controller_proxy_stub.h View 1 chunk +9 lines, -8 lines 0 comments Download
M ash/shell/lock_view.cc View 3 chunks +7 lines, -10 lines 0 comments Download
M ash/shell/panel_window.h View 2 chunks +9 lines, -9 lines 0 comments Download
M ash/shell/shelf_delegate_impl.h View 1 chunk +9 lines, -9 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 chunk +27 lines, -29 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 3 chunks +35 lines, -38 lines 0 comments Download
M ash/shell/toplevel_window.h View 1 chunk +12 lines, -14 lines 0 comments Download
M ash/shell/widgets.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M ash/shell/window_type_launcher.h View 2 chunks +13 lines, -14 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 5 chunks +16 lines, -33 lines 0 comments Download
M ash/shell/window_watcher.h View 1 chunk +7 lines, -7 lines 0 comments Download
M ash/shell/window_watcher.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.h View 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
dcheng
6 years, 1 month ago (2014-10-27 21:42:52 UTC) #1
James Cook
LGTM but two questions https://codereview.chromium.org/679283002/diff/1/ash/shell/app_list.cc File ash/shell/app_list.cc (right): https://codereview.chromium.org/679283002/diff/1/ash/shell/app_list.cc#newcode58 ash/shell/app_list.cc:58: } Do you think this ...
6 years, 1 month ago (2014-10-27 23:45:35 UTC) #2
dcheng
https://codereview.chromium.org/679283002/diff/1/ash/shell/app_list.cc File ash/shell/app_list.cc (right): https://codereview.chromium.org/679283002/diff/1/ash/shell/app_list.cc#newcode58 ash/shell/app_list.cc:58: } On 2014/10/27 23:45:34, James Cook wrote: > Do ...
6 years, 1 month ago (2014-10-27 23:47:56 UTC) #3
James Cook
Please add them. A followup patch is fine, TBR is fine. Still LGTM Thanks for ...
6 years, 1 month ago (2014-10-27 23:50:14 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679283002/1
6 years, 1 month ago (2014-10-27 23:57:15 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-28 01:14:22 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 01:15:10 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f59635116303ce62fcc95a647df72c77e0129eee
Cr-Commit-Position: refs/heads/master@{#301535}

Powered by Google App Engine
This is Rietveld 408576698