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

Issue 1783003004: Using "override" to explicitly annotate overrides of virtual functions. (Closed)

Created:
4 years, 9 months ago by Łukasz Anforowicz
Modified:
4 years, 9 months ago
CC:
chromium-reviews, dcheng, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Using "override" to explicitly annotate overrides of virtual functions. This CL improves compliance with Google C++ Style Guide: https://google.github.io/styleguide/cppguide.html: 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. Rationale: A function or destructor marked override or final that is not an override of a base class virtual function will not compile, and this helps catch common errors. The specifiers serve as documentation; if no specifier is present, the reader has to check all ancestors of the class in question to determine if the function or destructor is virtual or not. BUG= Committed: https://crrev.com/264b0e5be5267ddd0cbf4ea6bc62df961e492697 Cr-Commit-Position: refs/heads/master@{#380658}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -104 lines) Patch
M components/test_runner/web_frame_test_proxy.h View 7 chunks +73 lines, -72 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 1 chunk +35 lines, -32 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Łukasz Anforowicz
jochen@, can you rubberstamp this one please? This CL mechanically changes virtual -> override (+ ...
4 years, 9 months ago (2016-03-11 00:25:29 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783003004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783003004/1
4 years, 9 months ago (2016-03-11 00:26:08 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-11 01:26:37 UTC) #6
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-11 14:26:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783003004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783003004/1
4 years, 9 months ago (2016-03-11 17:13:36 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-11 17:19:19 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 17:20:30 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/264b0e5be5267ddd0cbf4ea6bc62df961e492697
Cr-Commit-Position: refs/heads/master@{#380658}

Powered by Google App Engine
This is Rietveld 408576698