Closed
Bug 1512036
Opened 6 years ago
Closed 5 years ago
Turn off clang formatting when defining JIT_COMPILER_OPTIONS, because the Google-approved autoformatting is outright barbarous
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: Waldo, Assigned: Waldo)
References
Details
Attachments
(1 file)
5.05 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #9029465 -
Flags: review?(jdemooij)
Comment 2•6 years ago
|
||
Comment on attachment 9029465 [details] [diff] [review] Patch Review of attachment 9029465 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsapi.h @@ +4512,5 @@ > bool enabled); > > +// clang-format off > +#define JIT_COMPILER_OPTIONS(Register) \ > + Register(BASELINE_WARMUP_TRIGGER, "baseline.warmup.trigger") \ Another way to fix this is by s/Register/REGISTER/ I think, see https://bugzilla.mozilla.org/show_bug.cgi?id=1508064#c2 This works too though :)
Attachment #9029465 -
Flags: review?(jdemooij) → review+
Pushed by jwalden@mit.edu: https://hg.mozilla.org/integration/mozilla-inbound/rev/a3e95cb56799 Turn off clang formatting when defining JIT_COMPILER_OPTIONS, because the Google-approved autoformatting is outright barbarous. r=jandem
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a3e95cb56799
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Comment 6•5 years ago
|
||
In general, we should prefer |REGISTER| as a solution, but we can a scrub in a few months to reduce uses of |clang-format off|
Comment 7•5 years ago
|
||
Another solution would have been to just add ";" at the end of the lines (I guess)
You need to log in
before you can comment on or make changes to this bug.
Description
•