Closed
Bug 1473453
(clang-bool-pointer-implicit-conversion)
Opened 6 years ago
Closed 6 years ago
Fix and enable clang-tidy's bool-pointer-implicit-conversion warnings
Categories
(Core :: General, enhancement, P3)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla63
People
(Reporter: cpeterson, Assigned: cpeterson)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
clang-tidy's bool-pointer-implicit-conversion checks for conditions based on implicit conversion from a bool pointer to bool. bool* pointer_to_bool; if (pointer_to_bool) { // warning: did you mean *pointer_to_bool? } https://clang.llvm.org/extra/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.html
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Updated•6 years ago
|
Attachment #8989896 -
Flags: review?(surkov.alexander) → review?(mzehe)
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8989896 [details] Bug 1473453 - Part 1: a11y: assert `hitregion` property is always null or true. https://reviewboard.mozilla.org/r/254890/#review261750 Stealing review from Surkov since he's on PTO until end of next week. r=marcoz.
Attachment #8989896 -
Flags: review?(mzehe) → review+
Comment 5•6 years ago
|
||
thank you for the patch, let's make sure we don't regress: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9d00ee276ad624a0b06741afa6ad3485a3e288d8
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8989898 [details] Bug 1473453 - Part 3: Enable clang-tidy's misc-bool-pointer-implicit-conversion warning. https://reviewboard.mozilla.org/r/254894/#review261762
Attachment #8989898 -
Flags: review?(bpostelnicu) → review+
Assignee | ||
Comment 7•6 years ago
|
||
(In reply to Marco Zehe (:MarcoZ) from comment #4) > Stealing review from Surkov since he's on PTO until end of next week. > r=marcoz. Thanks! :)
Comment 8•6 years ago
|
||
mozreview-review |
Comment on attachment 8989897 [details] Bug 1473453 - Part 2: QuotaManager: disambiguate null check of bool pointer. https://reviewboard.mozilla.org/r/254892/#review262874 Ok.
Attachment #8989897 -
Flags: review?(jvarga) → review+
Pushed by cpeterson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f496f2f11ef Part 1: a11y: assert `hitregion` property is always null or true. r=MarcoZ https://hg.mozilla.org/integration/autoland/rev/fb7269b3d9b2 Part 2: QuotaManager: disambiguate null check of bool pointer. r=janv https://hg.mozilla.org/integration/autoland/rev/146466f1d08a Part 3: Enable clang-tidy's misc-bool-pointer-implicit-conversion warning. r=andi
Comment 10•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7f496f2f11ef https://hg.mozilla.org/mozilla-central/rev/fb7269b3d9b2 https://hg.mozilla.org/mozilla-central/rev/146466f1d08a
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 11•6 years ago
|
||
Bravo, thanks for doing that!
You need to log in
before you can comment on or make changes to this bug.
Description
•