Closed Bug 1123145 Opened 9 years ago Closed 9 years ago

Add an analysis to detect unneeded copies in ranged for loops

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1126813

People

(Reporter: jrmuizel, Unassigned)

Details

class LargeClass {
...
}

vector<LargeClass> list;

we want to do detect:

for (auto l : list) {
   ...
}

and suggest:

for (const auto l& : list) {
   ...
}

----

This maybe be tricky to get right and avoid any false positives.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.