Code reformatting broke the IPDL unit test build
Categories
(Core :: IPC, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: jld, Assigned: jld)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The IPDL unit tests (which are, regrettably, not built by default; see discussion in bug 1236717 and bug 1236635) have a file, IPDLUnitTests.template.cpp
, with placeholders ${LIKE_THIS}
that are substituted with autogenerated code by a Python script. The clang-format
pass broke some of them with whitespace changes; for example:
- ${INCLUDES}
+ $ { INCLUDES }
The fix is simple (bracket them in // clang-format off
/ //clang-format on
), and I have a patch.
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Wow, I'm so sorry about this. :-( I wish there was a way we could have found out about this through some failures on try...
Assignee | ||
Comment 2•5 years ago
|
||
(In reply to :Ehsan Akhgari from comment #1)
Wow, I'm so sorry about this. :-( I wish there was a way we could have found out about this through some failures on try...
This code being dead in normal builds is a long-standing problem for IPC (see the bugs linked in comment #0), and it's bit-rotted before as a result; this time was at least fairly straightforward to fix.
Assignee | ||
Comment 3•5 years ago
|
||
This file has text-substitution placeholders that aren't part of normal
C++ syntax; they were broken by auto-inserted whitespace. This patch
restores the original formatting and protects them from further change.
Assignee | ||
Updated•5 years ago
|
Pushed by jedavis@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d73d61bac7d Fix the IPDL unit test build after auto-reformatting broke it. r=Ehsan
![]() |
||
Comment 5•5 years ago
|
||
bugherder |
Description
•