Closed
Bug 1471285
Opened 5 years ago
Closed 5 years ago
[Clang-Tidy 5.0.1] Checker misc-suspicious-missing-comma has faulty test case
Categories
(Developer Infrastructure :: Source Code Analysis, enhancement)
Developer Infrastructure
Source Code Analysis
Tracking
(firefox63 fixed)
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: andi, Assigned: andi)
Details
Attachments
(1 file)
According to the official test cases: https://github.com/llvm-mirror/clang-tools-extra/blob/release_50/test/clang-tidy/misc-suspicious-missing-comma.cpp Looking in the implementation of the checker https://github.com/llvm-mirror/clang-tools-extra/blob/release_50/clang-tidy/misc/SuspiciousMissingCommaCheck.cpp we should use the official test cases because we use the default values for: SizeThreshold, RatioThreshold and MaxConcatenatedTokens.
Comment hidden (mozreview-request) |
Comment 2•5 years ago
|
||
what was wrong?
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #2) > what was wrong? The reasoning behind this checker was that it could trigger a lot of false positives, in order to mitigate this the developer added some flags for configuration. One of them is: SizeThreshold, the default value of this is 5, so our initialiser string should have more than 5 entries in order to be valid: https://github.com/llvm-mirror/clang-tools-extra/blob/release_50/clang-tidy/misc/SuspiciousMissingCommaCheck.cpp#L105
Assignee | ||
Comment 4•5 years ago
|
||
One note here, we should add in the future .clang-tidy to our root and customise as much as we can from the checkers that have this option.
Comment 5•5 years ago
|
||
mozreview-review |
Comment on attachment 8987884 [details] Bug 1471285 - [Clang-Tidy 5.0.1] Checker misc-suspicious-missing-comma has faulty test case. https://reviewboard.mozilla.org/r/253174/#review260350 Oh wow, we really had an expected result that is empty in our tests. That's bad. Thank you for fixing it!
Attachment #8987884 -
Flags: review?(janx) → review+
Comment 6•5 years ago
|
||
Please send a try push with the job "static-analysis-autotest-linux64-st-autotest/debug" (or just "autotest" with `./mach try fuzzy`).
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Jan Keromnes [:janx] from comment #6) > Please send a try push with the job > "static-analysis-autotest-linux64-st-autotest/debug" (or just "autotest" > with `./mach try fuzzy`). already did this before submitting it for review ;), a couple of day back.
Pushed by bpostelnicu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/77cadf8638c6 [Clang-Tidy 5.0.1] Checker misc-suspicious-missing-comma has faulty test case. r=janx
Assignee | ||
Comment 9•5 years ago
|
||
Everything is green: https://treeherder.mozilla.org/#/jobs?repo=try&revision=bf5f4cd6162a523eed06c3592948b5b230b23f3e
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/77cadf8638c6
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Updated•1 year ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•