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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
no sievers
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, piman+watch_chromium.org
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=sievers@chromium.org Committed: https://crrev.com/62e71797ea280c15fe2822cdb2d46a8f3f826f4f Cr-Commit-Position: refs/heads/master@{#301454}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -300 lines) Patch
M gpu/command_buffer/client/buffer_tracker_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/fenced_allocator_test.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/mapped_memory_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/client/program_info_manager_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/query_tracker_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/ring_buffer_test.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/transfer_buffer_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/vertex_array_object_manager_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M gpu/command_buffer/common/command_buffer_shared_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M gpu/command_buffer/common/debug_marker_manager_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M gpu/command_buffer/common/id_allocator_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/async_pixel_transfer_manager_egl.h View 2 chunks +9 lines, -9 lines 0 comments Download
M gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc View 3 chunks +11 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager_unittest.cc View 3 chunks +4 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/command_buffer_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/common_decoder_unittest.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/context_group_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 3 chunks +5 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.h View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_attribs.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 2 chunks +4 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gpu_scheduler_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gpu_service_test.h View 1 chunk +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/id_manager_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/mailbox_manager_unittest.cc View 4 chunks +6 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/memory_program_cache_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/program_manager_unittest.cc View 4 chunks +5 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/query_manager_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/renderbuffer_manager_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/shader_manager_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/texture_definition.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 9 chunks +12 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/transfer_buffer_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/vertex_array_manager_unittest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M gpu/command_buffer/tests/compressed_texture_test.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/tests/gl_chromium_path_rendering_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/gl_depth_texture_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/gl_lose_context_chromium_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/gl_pointcoord_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_program_unittest.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/tests/gl_query_unittest.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/tests/gl_readback_unittest.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/tests/gl_shared_resources_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/gl_stream_draw_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_texture_mailbox_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/gl_texture_storage_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_unittest.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/tests/gl_virtual_contexts_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/occlusion_query_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M gpu/config/gpu_blacklist_unittest.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M gpu/config/gpu_control_list_entry_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M gpu/config/gpu_control_list_number_info_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/config/gpu_control_list_os_info_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/config/gpu_control_list_unittest.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M gpu/config/gpu_control_list_version_info_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_list_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M gpu/config/gpu_info_collector_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M gpu/config/gpu_test_config_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M gpu/config/gpu_test_expectations_parser_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M gpu/tools/compositor_model_bench/forward_render_model.h View 1 chunk +3 lines, -3 lines 0 comments Download
M gpu/tools/compositor_model_bench/forward_render_model.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M gpu/tools/compositor_model_bench/render_model_utils.h View 1 chunk +3 lines, -3 lines 0 comments Download
M gpu/tools/compositor_model_bench/render_tree.h View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
dcheng
6 years, 1 month ago (2014-10-27 20:20:37 UTC) #1
no sievers
lgtm
6 years, 1 month ago (2014-10-27 20:41:11 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/682743002/1
6 years, 1 month ago (2014-10-27 20:46:16 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-27 21:52:42 UTC) #5
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 21:53:05 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/62e71797ea280c15fe2822cdb2d46a8f3f826f4f
Cr-Commit-Position: refs/heads/master@{#301454}

Powered by Google App Engine
This is Rietveld 408576698