Open
Bug 1553495
Opened 6 years ago
Updated 3 years ago
[clang-tidy] Investigate the possibility of enabling: readability-magic-numbers
Categories
(Developer Infrastructure :: Source Code Analysis, task)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
NEW
People
(Reporter: andi, Unassigned)
References
Details
Since in Bug 1551842 we've added new checkers from clang-tidy 8.0
we've also seen this new checkers readability-magic-numbers
that in the above mentioned bug has been added but it's disabled since we must see first it's impact on our code and later on, if it confirms it's feasibility, we should enable it.
A good start would be to have a rough estimation on how many issues it finds on Gecko.
Reporter | ||
Updated•6 years ago
|
Component: Lint and Formatting → Source Code Analysis
Comment 1•6 years ago
|
||
it founds 18461 defects on the tree (includes thirdparties)
but there are some dumb false positives which should be reported upstream.
For example, the position in the array is reported:
https://searchfox.org/mozilla-central/source/parser/html/nsHtml5AttributeName.cpp#2302
But it finds other things which would be useful for readability
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•