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)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.1b1

People

(Reporter: benjamin, Assigned: benjamin)

Details

Attachments

(1 file)

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)
Attachment #336522 - Flags: review?(dmandelin) → review+
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.
Pushed to m-c: http://hg.mozilla.org/mozilla-central/rev/53f922f0a153
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
Version: unspecified → Trunk
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: