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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: Waldo, Assigned: Waldo)

References

Details

Attachments

(1 file)

      No description provided.
Attached patch PatchSplinter Review
Attachment #9029465 - Flags: review?(jdemooij)
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
https://hg.mozilla.org/mozilla-central/rev/a3e95cb56799
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
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|
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.

Attachment

General

Created:
Updated:
Size: