Chromium Code Reviews
DescriptionUsing "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 #
Messages
Total messages: 12 (5 generated)
|
||||||||||||||||||||||||||||