Closed
Bug 453343
Opened 16 years ago
Closed 16 years ago
Provide better error message for the stack-only checker
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: benjamin, Assigned: benjamin)
Details
Attachments
(1 file)
4.81 KB,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
The current stack-only checker gives you the location of the call to "operator new" and the type of the thing being created, but it doesn't tell you why that thing isn't allowed on the stack. In many cases, it's a complicated reason such as "it inherits from class Y, which has member Y::mFoo which inherits from Bar which has member Bar::mFoo which is of type nsAutoString which is marked NS_STACK_CLASS". This patch provides all that information in a form that emacs compile mode can link you to each location along the way.
Attachment #336522 -
Flags: review?(dmandelin)
Updated•16 years ago
|
Attachment #336522 -
Flags: review?(dmandelin) → review+
Comment 1•16 years ago
|
||
Comment on attachment 336522 [details] [diff] [review] Better stack-checker errors, rev. 1 Very nice. Historically a lot of static checkers have fallen down on error message usability. I like the string-format module too, I've wanted that.
Assignee | ||
Comment 2•16 years ago
|
||
Pushed to m-c: http://hg.mozilla.org/mozilla-central/rev/53f922f0a153
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Target Milestone: --- → mozilla1.9.1b1
Version: unspecified → Trunk
Updated•6 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•