Closed
Bug 1311669
Opened 8 years ago
Closed 8 years ago
Run clang-tidy on netwerk/ module
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(firefox52 fixed)
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: andi, Assigned: andi)
References
Details
Attachments
(6 files, 2 obsolete files)
58 bytes,
text/x-review-board-request
|
valentin
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
valentin
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
valentin
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
valentin
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
valentin
:
review+
|
Details |
3.35 KB,
patch
|
valentin
:
review+
|
Details | Diff | Splinter Review |
This bug is based on the work of Sylvestre that started: https://bugzilla.mozilla.org/show_bug.cgi?id=1302401
Using the checkers provided by clang-tidy we can refresh the code to make it use the features of C++11 like:
- auto variables declarations
- default CTORS and DTORS
- using new range loop operators
Updated•8 years ago
|
Blocks: clang-based-analysis
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8803287 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8803287 -
Attachment is obsolete: false
Assignee | ||
Updated•8 years ago
|
Attachment #8803287 -
Flags: review?(valentin.gosu)
Attachment #8805922 -
Flags: review?(valentin.gosu)
Attachment #8805924 -
Flags: review?(valentin.gosu)
Attachment #8805925 -
Flags: review?(valentin.gosu)
Comment 7•8 years ago
|
||
mozreview-review |
Comment on attachment 8803287 [details]
Bug 1311669 - convert loops to range-based loops in C++11.
https://reviewboard.mozilla.org/r/87592/#review89210
::: netwerk/wifi/osx_corewlan.mm:62
(Diff revision 2)
>
> // [CWInterface bssidData] is deprecated on OS X 10.7 and up. Which is
> // is a pain, so we'll use it for as long as it's available.
> unsigned char macData[6] = {0};
> if ([anObject respondsToSelector:@selector(bssidData)]) {
> - NSData* data = [anObject bssidData];
> + NSData* data = [anObject ssidData];
Is this a typo? If it's intentional, please explain the reason for it, as I'm not very familiar with the OSX APIs.
Attachment #8803287 -
Flags: review?(valentin.gosu) → review+
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8805925 [details]
Bug 1311669 - Replace integer literals which are cast to bool.
https://reviewboard.mozilla.org/r/89538/#review89216
Attachment #8805925 -
Flags: review?(valentin.gosu) → review+
Comment 9•8 years ago
|
||
mozreview-review |
Comment on attachment 8805924 [details]
Bug 1311669 - replace string literals containing escaped characters with raw string literals.
https://reviewboard.mozilla.org/r/89536/#review89222
Attachment #8805924 -
Flags: review?(valentin.gosu) → review+
Comment 10•8 years ago
|
||
mozreview-review |
Comment on attachment 8805922 [details]
Bug 1311669 - use auto type specifier for variable declarations to improve code readability and maintainability.
https://reviewboard.mozilla.org/r/89532/#review89226
Attachment #8805922 -
Flags: review?(valentin.gosu) → review+
Assignee | ||
Updated•8 years ago
|
Keywords: leave-open
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 16•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8803287 [details]
Bug 1311669 - convert loops to range-based loops in C++11.
https://reviewboard.mozilla.org/r/87592/#review89210
> Is this a typo? If it's intentional, please explain the reason for it, as I'm not very familiar with the OSX APIs.
After giving it a bit of more thought i don't think we should mofigy mm files, specially in this case, clang-tidy was smat doing this modification since bssidData is no longer a member of CWNetwork, but still i don't want to break compatibility with osx < 10.7
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8806326 -
Flags: review?(valentin.gosu)
Assignee | ||
Updated•8 years ago
|
Attachment #8806326 -
Flags: review?(valentin.gosu)
Comment 18•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8803287 [details]
Bug 1311669 - convert loops to range-based loops in C++11.
https://reviewboard.mozilla.org/r/87592/#review89210
> After giving it a bit of more thought i don't think we should mofigy mm files, specially in this case, clang-tidy was smat doing this modification since bssidData is no longer a member of CWNetwork, but still i don't want to break compatibility with osx < 10.7
bssidData is the wireless MAC address. ssidData is the human-readable wireless network name. These methods are not interchangeable.
Assignee | ||
Updated•8 years ago
|
Attachment #8805923 -
Flags: review?(valentin.gosu)
Assignee | ||
Updated•8 years ago
|
Attachment #8806326 -
Attachment is obsolete: true
Assignee | ||
Comment 19•8 years ago
|
||
(In reply to Chris Peterson [:cpeterson] from comment #18)
> Comment on attachment 8803287 [details]
> Bug 1311669 - convert loops to range-based loops in C++11.
>
> https://reviewboard.mozilla.org/r/87592/#review89210
>
> > After giving it a bit of more thought i don't think we should mofigy mm files, specially in this case, clang-tidy was smat doing this modification since bssidData is no longer a member of CWNetwork, but still i don't want to break compatibility with osx < 10.7
>
> bssidData is the wireless MAC address. ssidData is the human-readable
> wireless network name. These methods are not interchangeable.
Thanks Chris for clearing this out.
Comment 20•8 years ago
|
||
mozreview-review |
Comment on attachment 8805923 [details]
Bug 1311669 - replace default bodies of special member functions with = default;
https://reviewboard.mozilla.org/r/89534/#review89576
Attachment #8805923 -
Flags: review?(valentin.gosu) → review+
Comment 21•8 years ago
|
||
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81e30b16d0a1
convert loops to range-based loops in C++11. r=valentin
https://hg.mozilla.org/integration/autoland/rev/9c3a2156b10a
use auto type specifier for variable declarations to improve code readability and maintainability. r=valentin
https://hg.mozilla.org/integration/autoland/rev/fa0e219113ac
replace default bodies of special member functions with = default; r=valentin
https://hg.mozilla.org/integration/autoland/rev/4ca246ea07bf
replace string literals containing escaped characters with raw string literals. r=valentin
https://hg.mozilla.org/integration/autoland/rev/8fe3ca1e5bfc
Replace integer literals which are cast to bool. r=valentin
Comment 22•8 years ago
|
||
bugherder |
Assignee | ||
Comment 23•8 years ago
|
||
MozReview-Commit-ID: B0wDHK1mKGN
Attachment #8807059 -
Flags: review?(valentin.gosu)
Assignee | ||
Comment 24•8 years ago
|
||
MozReview-Commit-ID: Ab5BC8NhbIO
Attachment #8807060 -
Flags: review?(valentin.gosu)
Assignee | ||
Updated•8 years ago
|
Attachment #8807059 -
Attachment is obsolete: true
Attachment #8807059 -
Flags: review?(valentin.gosu)
Assignee | ||
Comment 25•8 years ago
|
||
Comment on attachment 8807059 [details] [diff] [review]
Use C++11's override and remove virtual where applicable
also passed try job
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0b79250c91058c719d454453adb112c284e9fd7b&selectedJob=30383711
Updated•8 years ago
|
Attachment #8807060 -
Flags: review?(valentin.gosu) → review+
Comment 26•8 years ago
|
||
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/73a97f8ffeba
Use C++11's override and remove virtual where applicable. r=valentin
Assignee | ||
Updated•8 years ago
|
Keywords: leave-open
Comment 27•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Updated•8 years ago
|
Blocks: c++11-migration
Updated•8 years ago
|
No longer blocks: clang-based-analysis
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•