Closed Bug 1410938 Opened 8 years ago Closed 8 years ago

Split the clang-format calls

Categories

(Developer Infrastructure :: Source Code Analysis, enhancement, P3)

enhancement

Tracking

(firefox58 fixed)

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(2 files)

./mach clang-format -p . will reformat the whole source code. However, we can probably reach the max command line size. Instead, I propose that we split the call to clang-format per batch of XXX files.
Assignee: nobody → sledru
Comment on attachment 8921128 [details] Bug 1410938 - Split the clang-format calls into batches of 200 files https://reviewboard.mozilla.org/r/192118/#review197302 I'm pretty sure there's an `itertools` helper to do the chunking. But this is fine.
Attachment #8921128 - Flags: review?(gps) → review+
Comment on attachment 8921129 [details] Bug 1410938 - Make mach_commands.py flake8/pep8 compatible and add it the list of flake8 files https://reviewboard.mozilla.org/r/192120/#review197304
Attachment #8921129 - Flags: review?(gps) → review+
Priority: -- → P3
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bac298708923 Split the clang-format calls into batches of 200 files r=gps https://hg.mozilla.org/integration/autoland/rev/7b07d5488288 Make mach_commands.py flake8/pep8 compatible and add it the list of flake8 files r=gps
Product: Core → Firefox Build System
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: