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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
pauljensen, eroman
CC:
cbentzel+watch_chromium.org, chromium-reviews, erikwright (departed), eroman, gavinp+disk_chromium.org, mmenke, Paweł Hajdan Jr.
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=pauljensen@chromium.org Committed: https://crrev.com/67be2b1f8dbb8fe664365ce33cd6ccf2832e0663 Cr-Commit-Position: refs/heads/master@{#301452}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -446 lines) Patch
M net/base/address_tracker_linux.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/directory_lister_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/base/dns_reloader.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/elements_upload_data_stream_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/file_stream_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/ip_endpoint_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/keygen_handler_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M net/base/net_log_logger_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/network_change_notifier_linux.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/base/network_change_notifier_linux.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/priority_queue_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/sdch_dictionary_fetcher_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/sdch_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/trace_net_log_observer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/upload_bytes_element_reader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/upload_file_element_reader_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/cert_verify_proc_nss.h View 2 chunks +8 lines, -8 lines 0 comments Download
M net/cert/cert_verify_proc_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/ct_log_verifier_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/ct_objects_extractor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/ct_serialization_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/ev_root_ca_metadata_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/cert/multi_log_ct_verifier_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/multi_threaded_cert_verifier_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/nss_cert_database.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M net/cert/nss_cert_database_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/signed_certificate_timestamp_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/x509_cert_types_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/cert/x509_certificate_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M net/cookies/cookie_monster.h View 1 chunk +1 line, -1 line 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/cache_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/disk_cache_test_base.h View 4 chunks +4 lines, -4 lines 0 comments Download
M net/disk_cache/simple/simple_index_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_config_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_transaction_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M net/dns/mdns_client_impl.h View 6 chunks +24 lines, -25 lines 0 comments Download
M net/dns/mdns_client_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M net/dns/record_rdata.h View 7 chunks +21 lines, -21 lines 0 comments Download
M net/dns/serial_worker_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/extras/sqlite/sqlite_channel_id_store_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/filter/gzip_filter_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_auth_handler_negotiate_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_transaction_ssl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_response_body_drainer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/transport_security_persister_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/ocsp/nss_ocsp.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M net/ocsp/nss_ocsp_unittest.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M net/proxy/proxy_config_service_linux.h View 2 chunks +4 lines, -4 lines 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 24 chunks +47 lines, -60 lines 0 comments Download
M net/proxy/proxy_config_service_linux_unittest.cc View 7 chunks +21 lines, -26 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_script_decider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/quic/congestion_control/hybrid_slow_start_test.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/quic/congestion_control/leaky_bucket_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/quic/congestion_control/pacing_sender_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/quic/congestion_control/tcp_receiver_test.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_decrypter.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_encrypter.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/quic/crypto/chacha20_poly1305_decrypter.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/quic/crypto/chacha20_poly1305_encrypter.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/quic/crypto/crypto_server_test.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/quic/crypto/local_strike_register_client_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/quic/crypto/quic_crypto_server_config_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/quic/quic_ack_notifier_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/quic/quic_client_session_test.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/quic/quic_end_to_end_unittest.cc View 3 chunks +7 lines, -10 lines 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils_nss.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M net/server/http_server_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/deterministic_socket_data_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks5_client_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket_pool_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 chunk +34 lines, -36 lines 0 comments Download
M net/socket/ssl_server_socket_nss.h View 1 chunk +30 lines, -28 lines 0 comments Download
M net/socket/tcp_listen_socket_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/transport_client_socket_pool_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/transport_client_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/unix_domain_listen_socket_posix.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/unix_domain_listen_socket_posix_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/websocket_endpoint_lock_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/websocket_transport_client_socket_pool_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket_stream/socket_stream_unittest.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M net/spdy/hpack_encoder_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/hpack_input_stream_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/hpack_round_trip_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_frame_builder_test.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/spdy/spdy_framer_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_headers_block_parser_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_http_stream_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_protocol_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/spdy/spdy_stream_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/spdy/spdy_websocket_stream_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M net/ssl/client_cert_store_nss.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_response_writer_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M net/websockets/websocket_basic_stream_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/websockets/websocket_channel_test.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/websockets/websocket_deflate_stream_test.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M net/websockets/websocket_job_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/websockets/websocket_stream_test.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
dcheng
6 years, 1 month ago (2014-10-27 20:15:42 UTC) #1
eroman
rslgtm. Does the clang-format plugin now suggest these as well?
6 years, 1 month ago (2014-10-27 20:22:32 UTC) #3
eroman
lgtm
6 years, 1 month ago (2014-10-27 20:22:53 UTC) #4
dcheng
It doesn't autosuggest these, because it would cause compile errors on the clang bots. The ...
6 years, 1 month ago (2014-10-27 20:25:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663043004/1
6 years, 1 month ago (2014-10-27 20:27:48 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-27 21:48:06 UTC) #8
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 21:48:51 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/67be2b1f8dbb8fe664365ce33cd6ccf2832e0663
Cr-Commit-Position: refs/heads/master@{#301452}

Powered by Google App Engine
This is Rietveld 408576698