Closed
Bug 1142181
Opened 10 years ago
Closed 10 years ago
ProfilerBacktrace.cpp should #include its own .h file first
Categories
(Core :: Gecko Profiler, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
| Tracking | Status | |
|---|---|---|
| firefox39 | --- | fixed |
People
(Reporter: dholbert, Assigned: chiajung)
References
Details
Attachments
(1 file, 2 obsolete files)
|
1.29 KB,
patch
|
chiajung
:
review+
|
Details | Diff | Splinter Review |
As noted in bug 1129249 comment 38, ProfilerBacktrace.h currently is missing a forward-decl for "JSStreamWriter".
We should make ProfilerBacktrace.h be the first #include in its .cpp file (as is convention in gecko), to catch issues like this proactively.
| Reporter | ||
Comment 1•10 years ago
|
||
(Right now ProfilerBacktrace.cpp has:
> #include "JSStreamWriter.h"
> #include "ProfilerBacktrace.h"
> #include "SyncProfile.h"
which masks the missing forward-decl, because it sees the JSStreamWriter class-definition before it sees its .h file with the missing forward decl. If we put the "ProfilerBacktrace.h" include first, then we would've hit this error when compiling ProfilerBacktrace.cpp and caught it sooner.)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → chung
| Assignee | ||
Comment 2•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8576456 -
Flags: review?(aklotz)
Comment 3•10 years ago
|
||
Comment on attachment 8576456 [details] [diff] [review]
v1
Review of attachment 8576456 [details] [diff] [review]:
-----------------------------------------------------------------
::: tools/profiler/ProfilerBacktrace.cpp
@@ +7,1 @@
> #include "ProfilerBacktrace.h"
Please add a blank line between the ProfilerBacktrace.h and the JSStreamWriter.h includes.
Attachment #8576456 -
Flags: review?(aklotz) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
Comment addressed
Attachment #8576456 -
Attachment is obsolete: true
Attachment #8577819 -
Flags: review+
| Assignee | ||
Comment 5•10 years ago
|
||
Add reviewer info,
Try ticket:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=649ee64c216c
Attachment #8577819 -
Attachment is obsolete: true
Attachment #8578444 -
Flags: review+
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 6•10 years ago
|
||
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•