Commit Graph

41 Commits

Author SHA1 Message Date
Benjamin Smedberg
50d59bbf8a Bug 500870 - NS_OVERRIDE indicates that a method must override a base-class method, r=taras
--HG--
extra : rebase_source : 3dc3327030dc2cdf45bdd9170c5e9d02908c0d0c
2009-09-04 11:21:31 -04:00
Taras Glek
9b788e903b Bug 512726 - Add NS_MUST_OVERRIDE static annotation. r=bsmedberg
--HG--
extra : rebase_source : 4f3034c93cc76c7504d1cfb21953c495c35d068f
2009-09-18 10:26:13 -07:00
Benjamin Smedberg
2e9438fd2f Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted 2009-08-25 08:59:31 -07:00
Benjamin Smedberg
f781ac7771 Resolve the static-analysis bustage from bug 498938 by recognizing COND_EXPR. 2009-07-27 10:47:22 -04:00
Benjamin Smedberg
e01f5a8eda Bug 496969 - The stack analysis is broken when compiling with -O3 -fstrict-aliasing. 2009-06-08 18:03:23 -04:00
Benjamin Smedberg
893f114acb Bug 468717 - enable static analysis for js/src, r=jorendorff
--HG--
rename : xpcom/analysis/static-checking.js => config/static-checking.js
rename : xpcom/analysis/string-format.js => config/string-format.js
rename : xpcom/analysis/static-checking.js => js/src/config/static-checking.js
rename : xpcom/analysis/string-format.js => js/src/config/string-format.js
rename : xpcom/analysis/jsstack.js => js/src/jsstack.js
2008-12-11 11:40:04 -05:00
Benjamin Smedberg
e8ea9cf02d Merge mozilla-central into tracemonkey, specifically to pick up bug 467579. 2008-12-09 21:37:35 -05:00
Benjamin Smedberg
829d712e59 Disable the outparams warning "written on NS_FAILED"... we should focus first on the "not written on NS_SUCCEEDED" warnings, which are generally more serious. No bug, NPODB, CLOSED TREE a=johnath 2008-12-09 17:34:48 -05:00
Benjamin Smedberg
cfb7d3a3c4 When operator new is used on a class with no constructor it generates an AGGR_INIT_EXPR, not a CALL_EXPR... with testcase. NPODB, static-checking only. 2008-12-03 11:49:54 -05:00
Benjamin Smedberg
9263d3fc6f Change the stack-class analysis to a warning instead of an error, at least temporarily: the analysis was buggy when originally landed, and there are some heap-allocated autostrings outstanding through the tree. 2008-12-01 13:59:58 -05:00
Benjamin Smedberg
1de5c15668 Bug 460999 - Generate inheritance graphs for the base of the string hierarchy and upload them to MDC with image maps r=jorendorff 2008-10-24 16:29:33 -04:00
Jason Orendorff
b7fb9bc849 Bug 460865 - Read barrier for cx->fp. r=mrbkap, r=dmandelin.
--HG--
extra : rebase_source : 19963188b2f9f96336ce6ca28dbaefccf3a639b7
2008-12-09 10:38:32 -06:00
Benjamin Smedberg
db0bdeafc2 Bug 458755 - Automated documentation of string classes on MDC using static analysis, r=taras 2008-10-09 12:34:33 -04:00
Taras Glek
30aa910a7e bug 432917: MUST_FLOW_THROUGH static check. r=bsmedberg 2008-09-08 11:01:22 -07:00
Benjamin Smedberg
71120220a3 Bug 453349 - stack-only checker skips conditional blocks, r=dmandelin 2008-09-03 13:00:13 -04:00
Benjamin Smedberg
9bd2bab8dd Bug 453343 - Print more complete error messages that trace the base classes and members that cause a particular class to be stack-only, r=dmandelin 2008-09-03 13:00:13 -04:00
Benjamin Smedberg
89e10926d5 Bug 453341 - Allow stack checking to be suppressed per-function, r=dmandelin sr=jst 2008-09-03 13:00:12 -04:00
Vlad Sukhoy
6092d34ccf bug 449463: make outparams more gcc42-compatible. r=dmandelin 2008-09-02 12:24:34 -05:00
Benjamin Smedberg
a28cb29d53 Bug 445570 - Mark CSSToken::mIdent heap autostring as we-know-what-we're-doing, r=dbaron 2008-08-27 10:58:50 -04:00
David Mandelin
8c7d60a450 Bug 451079: allow setting outparams to null on failure 2008-08-19 11:17:13 -07:00
Benjamin Smedberg
d73764a61e Bug 451079 - Setting an outparam to NULL is just too common to consider an actionable warning. Disable it, probably permanently, r=dmandelin 2008-08-18 15:41:31 -04:00
Benjamin Smedberg
16d48cecb4 mozilla-central followup for bug 449075 - bases.type intead of bases to match the new schema 2008-08-07 16:12:49 -04:00
David Mandelin
555c5a736a Bug 444565: fix scalability of outparams.js with new treehydra 2008-07-10 15:47:25 -07:00
David Mandelin
86d7eb2610 Bug 444409: outparams.js was trying to analyze 'this' as an outparam for strings, r=bsmedberg 2008-07-09 18:24:57 -07:00
David Mandelin
b0ead79f2e Bug 443205: fix for bug in error reporter in outparams.js, r=bsmedberg via irc 2008-07-09 11:48:59 -07:00
David Mandelin
1ebc6e6f68 Bug 443205: outparams.js needs to consider void-return funcs as nofail, r=bsmedberg 2008-07-09 10:35:29 -07:00
David Mandelin
45ce356864 Bug 433939: update outparams.js for Treehydra update, r=bsmedberg 2008-07-09 10:33:43 -07:00
David Mandelin
cd55c6b951 Bug 442968: fix small bug with void returns in outparams.js, r=bsmedberg 2008-07-01 15:31:10 -07:00
David Mandelin
f6af06076a Bug 442982: outparams.js now understands func ptr typedef attributes, r=bsmedberg 2008-07-01 14:24:58 -07:00
David Mandelin
3dac3ac31c Bug 442829: outparams.js handling nsresults returned as &rv, r=bsmedberg 2008-07-01 14:22:49 -07:00
Benjamin Smedberg
661d482695 Bug 442968 - Format outparams warnings in a more standard GCC way, so that things like compilation-mode can linkify the locations, r=dmandelin 2008-07-01 14:26:28 -04:00
Benjamin Smedberg
c0155dfb6a Fix whitespace (hard tabs) 2008-06-30 15:35:11 -04:00
Benjamin Smedberg
b9a9e3d81f Bug 425454 - whitelist placement-new for stack classes. Also uses treehydra analysis so we don't have to require a constructor for stack classes any more. r=taras 2008-06-30 12:44:06 -04:00
Benjamin Smedberg
e7ec955d4f Bug 437647 - Dispatch outparams and other analyses explicitly, so it's easier to add various analyses, r=dmandelin 2008-06-06 15:31:11 -04:00
David Mandelin
490129ee06 Bug 433939: updating outparams check for latest Treehydra, r=bsmedberg 2008-06-05 11:21:29 -07:00
David Mandelin
786fbfba8a Bug 434839: outparams state explosion on functions with many outparams, r+a=bsmedberg 2008-05-22 10:59:02 -07:00
David Mandelin
7364d5d950 Bug 433939: update outparams for latest Treehydra revision 2008-05-20 11:28:00 -07:00
David Mandelin
d591c8c92c Bug 431832: check outparams for PRBool or void return, r+a=bsmedberg 2008-05-20 11:26:03 -07:00
David Mandelin
dbe96cfe58 Bug 431832: NS_inparams attr for outparams checker, r=bsmedberg, a=bsmedberg 2008-05-02 18:03:38 -07:00
Benjamin Smedberg
2a99c5e4ae Bug 431677 - outparam errors in netwerk/cookie, r=dmandelin 2008-05-01 15:12:33 -04:00
David Mandelin
e2ac3c1005 Bug 420933: outparams checker, r=bsmedberg, a=bsmedberg 2008-04-30 17:47:27 -07:00