Closed Bug 1488687 Opened 6 years ago Closed 6 years ago

Enable braces around statements clang-tidy checker

Categories

(Developer Infrastructure :: Source Code Analysis, enhancement)

enhancement
Not set
normal

Tracking

(firefox64 fixed)

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Of course, this will be enabled only at review phase.
If the warning is ignored in phabricator, nothing will happen.
This will be enabled only at review phase.
If the warning is ignored in phabricator, nothing will happen.
Seems fair, since it's mandated by our coding style.

> Of course, this will be enabled only at review phase.

Note: This checker will also be active when you run `./mach static-analysis check` locally.

Also, FYI, there are about 32K pre-existing violations of this rule in our tree (including ignored paths like third-party dependencies):

https://github.com/jankeromnes/gecko-dev/commit/5dcb2201de8dd075f3c65c120c5157ec8133f883 (autofix run from 4 months ago)
Assignee: nobody → sledru
(In reply to Jan Keromnes [:janx] from comment #3)
> 
> Also, FYI, there are about 32K pre-existing violations of this rule in our
> tree (including ignored paths like third-party dependencies):
Interesting, codechecker is finding 16270 occurrences including thirdparty...
Comment on attachment 9006485 [details]
Bug 1488687 - Enable braces around statements clang-tidy checker r?ehsan

:Ehsan Akhgari has approved the revision.
Attachment #9006485 - Flags: review+
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/19bac49e4951
Enable braces around statements clang-tidy checker r=Ehsan
Is this going to complain for stuff in the js/ dir or is that ignored? IIRC they don't like braces.
https://hg.mozilla.org/mozilla-central/rev/19bac49e4951
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Eric, they are discussing about using the braces too:
https://groups.google.com/forum/#!topic/mozilla.dev.tech.js-engine.internals/koX9Yu0uFRw
(this is what triggered this commits ;)
(In reply to Sylvestre Ledru [:sylvestre] from comment #9)
> Eric, they are discussing about using the braces too:
> https://groups.google.com/forum/#!topic/mozilla.dev.tech.js-engine.internals/
> koX9Yu0uFRw
> (this is what triggered this commits ;)

Oh that's great!
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: