[Webkit-unassigned] [Bug 202096] New: clang-tidy: Fix unnecessary copy/ref churn of for loop variables in WebKit
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Sep 22 20:33:03 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=202096
Bug ID: 202096
Summary: clang-tidy: Fix unnecessary copy/ref churn of for loop
variables in WebKit
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ddkilzer at webkit.org
Running clang-tidy on WebKit resulted in these potential performance improvements to prevent object copies or reference churn in for loop variables:
Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:514:15: warning: loop variable is copied but only used as const reference; consider making it a const reference [performance-for-range-copy]
for (auto domainName : domains) {
^
const &
--
Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:215:15: warning: loop variable is copied but only used as const reference; consider making it a const reference [performance-for-range-copy]
for (auto path : WebCore::PathUtilities::pathsWithShrinkWrappedRects(indicatedRects, 0)) {
^
const &
--
Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm:172:15: warning: loop variable is copied but only used as const reference; consider making it a const reference [performance-for-range-copy]
for (auto suggestion : _suggestions) {
^
const &
--
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:2491:15: warning: loop variable is copied but only used as const reference; consider making it a const reference [performance-for-range-copy]
for (auto action : actionsToPerform)
^
const &
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190923/c1ffd35f/attachment.html>
More information about the webkit-unassigned
mailing list