Closed Bug 1624237 Opened 5 years ago Closed 5 years ago

Evaluate misc-unused-using-decls and potentially run it on the code base

Categories

(Developer Infrastructure :: Source Code Analysis, task)

task
Not set
minor

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

http://clang.llvm.org/extra/clang-tidy/checks/misc-unused-using-decls.html

Seems that we have 200+ occurrences in the code base.

$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>

I am surprised by the only few number it fixed...
Should have been much bigger.
Maybe because/thanks to unified?

Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ffbed74e25fd Run misc-unused-using-decls - Remove useless declarations r=andi
Pushed by malexandru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1d4295c1435b Bring back using declaration - unified are broken. a=bustage-fix
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: