Fix missing include in public headers
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file, 1 obsolete file)
bug 1768634 is caused by missing include in the SpiderMonkey public header.
we'd better verifying each header can be included alone.
I'm thinking about adding autospider variant that automatically generates cpp files for each public header and build them, in the same way as nonunified
variant modifies moz.build
.
Assignee | ||
Comment 1•2 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #0)
bug 1768634 is caused by missing include in the SpiderMonkey public header.
maybe something different, or it's more complex case.
#include "js/ProtoKey.h"
compiles without modifying the file.
anyway, it found 4 public header files that needs more #include
.
Assignee | ||
Comment 2•2 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #1)
(In reply to Tooru Fujisawa [:arai] from comment #0)
bug 1768634 is caused by missing include in the SpiderMonkey public header.
maybe something different, or it's more complex case.
#include "js/ProtoKey.h"
compiles without modifying the file.
ProtoKey.h
defines the macro, so it needs consumer to hit the issue.
in bug 1768634, it's jspubtd.h
, but #include "jspubtd.h"
compiles here.
maybe there's behavior difference between clang and MSVC?
Assignee | ||
Comment 3•2 years ago
|
||
bug 1768634 is caused by the preprocessor behavior difference, so not related to #include.
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Assignee | ||
Comment 5•2 years ago
|
||
Depends on D146611
Assignee | ||
Comment 6•2 years ago
|
||
IWYU isn't actually enforced by the script. what it verifies is that there's no missing include.
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/00441393b32f Part 1: Fix missing include in js/public. r=sfink
Comment 8•2 years ago
|
||
bugherder |
Comment 9•2 years ago
•
|
||
Only part 1 has been pushed.
leave-open?
Assignee | ||
Comment 10•2 years ago
|
||
There's ongoing effort to enforce IWYU. that covers what the abandoned patch was going to cover.
Description
•