]>
granicus.if.org Git - clang/log
Ted Kremenek [Fri, 26 Sep 2008 00:50:00 +0000 (00:50 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56633
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 26 Sep 2008 00:31:16 +0000 (00:31 +0000)]
Have @finally introduce a new scope.
Fixes: <rdar://problem/6248119> @finally doesn't introduce a new scope
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56629
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 25 Sep 2008 21:02:23 +0000 (21:02 +0000)]
Large mechanical patch.
s/ParamAttr/Attribute/g
s/PAList/AttrList/g
s/FnAttributeWithIndex/AttributeWithIndex/g
s/FnAttr/Attribute/g
This sets the stage
- to implement function notes as function attributes and
- to distinguish between function attributes and return value attributes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56623
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 25 Sep 2008 20:17:57 +0000 (20:17 +0000)]
Emulate gcc driver-driver functionality: run analyzer separately for each separate -arch option.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56618
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 25 Sep 2008 19:59:17 +0000 (19:59 +0000)]
Disable report crashes link for the time being.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56617
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 25 Sep 2008 17:13:59 +0000 (17:13 +0000)]
Update Xcode project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56612
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 25 Sep 2008 17:13:40 +0000 (17:13 +0000)]
Added prototype implementation of the DeclGroup, DeclGroupRef, and DeclGroupOwningRef classes.
Documentation and testing are pending.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56611
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 25 Sep 2008 06:05:31 +0000 (06:05 +0000)]
Add link to report analyzer failures (parse errors, asserts, etc).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56606
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 25 Sep 2008 01:10:50 +0000 (01:10 +0000)]
Update scan-build to add markers about crashes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56603
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 25 Sep 2008 00:51:44 +0000 (00:51 +0000)]
Include clang preprocessed sources as well with "crashes" output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56601
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 25 Sep 2008 00:25:16 +0000 (00:25 +0000)]
Use .txt extension for info files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56598
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 24 Sep 2008 23:31:10 +0000 (23:31 +0000)]
Downgrade incompatible block pointer error to a warning (to be consistent with incompatible pointer warnings in general).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56595
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 24 Sep 2008 22:46:45 +0000 (22:46 +0000)]
Fix a couple harmless warnings when compiling optimized with gcc (reported by mrs@apple.com).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56591
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 24 Sep 2008 22:26:48 +0000 (22:26 +0000)]
Fix <rdar://problem/
6243788 > clang: Incorrect return statement for Blocks?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56590
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Sep 2008 18:00:13 +0000 (18:00 +0000)]
Add more testing of Obj-C property synthesis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56564
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Sep 2008 17:59:41 +0000 (17:59 +0000)]
Add scan-view '--allow-all-hosts' option, by default access is now
restricted to 127.0.0.1.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56563
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 24 Sep 2008 17:45:52 +0000 (17:45 +0000)]
Update checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56562
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 24 Sep 2008 17:22:34 +0000 (17:22 +0000)]
Fix some const-ness to keep the VisualStudio C++ compiler happy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56560
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 24 Sep 2008 15:05:44 +0000 (15:05 +0000)]
Extend ASTContext::getTypeInfo() and ASTContext::getObjCEncodingForType() for BlockTypes.
This fixes <rdar://problem/
6240616 > clang: Assertion failed when using typedef and Blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56554
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 24 Sep 2008 06:40:03 +0000 (06:40 +0000)]
Updated test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56548
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Sep 2008 06:32:09 +0000 (06:32 +0000)]
Implement Obj-C synthesized setters for copy / retain.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56547
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Sep 2008 04:04:31 +0000 (04:04 +0000)]
Implement Obj-C getter synthesis for copy and retain.
Also, "simple" getter synthesis no longer uses temporary AST objects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56544
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Sep 2008 04:00:38 +0000 (04:00 +0000)]
Refactor some CodeGen functionality:
- Add CodeGenFunction::{EmitReturnOfRValue, EmitIvarOffset}
- Factor EmitLValueForIvar out of EmitObjCIvarRefLValue.
No non-error functionality change (some unsupported errors are
degraded to asserts for the time being).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56543
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Sep 2008 03:38:44 +0000 (03:38 +0000)]
Add Obj-C runtime methods to get runtime specific functions for
implementing property access.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56542
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 24 Sep 2008 01:03:00 +0000 (01:03 +0000)]
Adjust whitespaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56538
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 24 Sep 2008 01:01:36 +0000 (01:01 +0000)]
s/ParamAttrsWithIndex/FnAttributeWithIndex/g
Rename to match changes done on llvm side.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56537
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 23 Sep 2008 22:34:51 +0000 (22:34 +0000)]
For generated index.html, look for "scan-view.css", not "/scan-view.css"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56510
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 23 Sep 2008 21:53:23 +0000 (21:53 +0000)]
Implement type checking of Objective-C property attributes.
- readonly and readwrite are mutually exclusive.
- assign, copy, and retain are mutually exclusive.
- copy and retain are invalid on non-object types.
- Warn about using default 'assign' property on object types
(attempting to follow gcc behavior).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56507
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 23 Sep 2008 21:28:24 +0000 (21:28 +0000)]
Fix <rdar://problem/
6240065 > clang: __BLOCKS__ should be defined.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56503
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 23 Sep 2008 21:15:53 +0000 (21:15 +0000)]
RewriteBlocks::RewriteBlockPointerDecl(): Handle TypedefDecl's and VarDecl's uniformly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56500
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 23 Sep 2008 19:24:41 +0000 (19:24 +0000)]
Teach block rewriter to replace '^' with '*' in VarDecls.
Since we don't have DeclGroup's and location information for types, there is some fancy footwork to do this fairly reliably.
O.K...it's a kludge. One day, we can use this as motivation to do this more gracefully:-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56499
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 23 Sep 2008 18:05:01 +0000 (18:05 +0000)]
Added test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56493
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 23 Sep 2008 18:02:10 +0000 (18:02 +0000)]
Fix PR 2819: Compute dataflow values for all CFG blocks by not relying on having the "Exit" block being reachable by all (or any) of the blocks in the CFG.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56492
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 23 Sep 2008 17:37:57 +0000 (17:37 +0000)]
Add x86_64 Linux target.
- PR2824
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56491
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 23 Sep 2008 00:30:34 +0000 (00:30 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56484
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 23:53:24 +0000 (23:53 +0000)]
Bug fix, result of isIntegerConstantExpr could be of incorrect width
for type.
- PR2817
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56482
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 21:43:43 +0000 (21:43 +0000)]
scan-view: Add header and "report bug" links to report pages.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56470
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 18:44:46 +0000 (18:44 +0000)]
scan-view: Add links to open files using default file handler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56454
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 18:14:23 +0000 (18:14 +0000)]
Yank out special CSS for button rendering (not very portable or well tested, and we were encountering race conditions with CSS loading).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56449
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 18:05:49 +0000 (18:05 +0000)]
scan-view: Update for "button" class change, drop magic resolution of
"scanview.css", start action for opening files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56448
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 18:05:05 +0000 (18:05 +0000)]
Reintegrate Daniel's changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56447
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 17:55:14 +0000 (17:55 +0000)]
Removed scan-view's version of scanview.css.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56446
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 17:52:58 +0000 (17:52 +0000)]
Add "SUMMARYENDHEAD" tag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56445
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 17:50:47 +0000 (17:50 +0000)]
Don't embed CSS inside scan-build script; use external scanview.css.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56444
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 17:42:31 +0000 (17:42 +0000)]
Don't emit link to source file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56443
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 17:39:18 +0000 (17:39 +0000)]
Make "View Report" just a normal link again.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56442
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 17:38:23 +0000 (17:38 +0000)]
Don't print out the path length.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56441
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 17:33:32 +0000 (17:33 +0000)]
Output "REPORTHEADER" and "REPORTSUMMARYEXTRA" tags for use with scan-view.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56440
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Mon, 22 Sep 2008 17:26:14 +0000 (17:26 +0000)]
not executable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56439
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Mon, 22 Sep 2008 15:31:56 +0000 (15:31 +0000)]
Remove unused slot/reference and update Sema::ActOnIdentifierExpr().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56438
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Mon, 22 Sep 2008 10:28:57 +0000 (10:28 +0000)]
Fix http://llvm.org/bugs/show_bug.cgi?id=2816.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56433
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 06:47:01 +0000 (06:47 +0000)]
Use scan-view to view reports. Opening index.html is deprecated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56431
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 06:11:08 +0000 (06:11 +0000)]
Updated checker build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56430
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 03:08:32 +0000 (03:08 +0000)]
scan-view: Add links from bug reporting forms to report & summary pages.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56427
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 02:53:12 +0000 (02:53 +0000)]
scan-view: Search for available port if default is unavailable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56426
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 02:27:45 +0000 (02:27 +0000)]
scan-view: Store bug reporter defaults in ~/.scanview.cfg
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56424
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 01:42:08 +0000 (01:42 +0000)]
scan-view tweak
- Require index.html in provided results directory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56423
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 01:40:14 +0000 (01:40 +0000)]
scan-view tweaks
- Use more correct HTTP error codes on (unexpected) errors.
- Use onLoad to set ensure bug submission method gets set correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56422
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 22 Sep 2008 01:35:58 +0000 (01:35 +0000)]
Patch from Richard Godbee:
Improve scan-build results to include the user's host name, the working
directory of the analyzed project, and the date the analysis run took place.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56421
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 01:21:30 +0000 (01:21 +0000)]
Improve scan-view report bug (submitted) interface.
Give more meaningful error messages / fail gracefully on bad form
input or SMTP errors.
Use button for Report Bug link (where available).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56420
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 22 Sep 2008 00:11:51 +0000 (00:11 +0000)]
Improve scan-view report bug interface.
- Pulled css out into Resources/scanview.css
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56416
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 21 Sep 2008 23:02:25 +0000 (23:02 +0000)]
scan-view tweaks:
- Add simple favicon
- Allow resolving source file paths (should be rethought)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56414
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 21 Sep 2008 20:34:58 +0000 (20:34 +0000)]
scan-view tweaks:
- Update for scan-build table change.
- Add --auto-reload option (for development, avoids need to restart
server).
- Always send Last-Modified, with a reasonable value for dynamic content.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56409
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 20:10:46 +0000 (20:10 +0000)]
Add webkit styles using Javascript (detect for AppleWebKit)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56408
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 19:56:14 +0000 (19:56 +0000)]
Unbreak using abs_path.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56407
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 21 Sep 2008 19:08:54 +0000 (19:08 +0000)]
scan-view: Add more information to default bug description and use
iframe to embed bug view (for easy reference).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56406
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 19:08:31 +0000 (19:08 +0000)]
Change casing of bug type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56405
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 21 Sep 2008 19:06:51 +0000 (19:06 +0000)]
Don't add Bugzilla reporter (not yet implemented)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56404
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 19:01:39 +0000 (19:01 +0000)]
The checks in BasicObjCFoundationChecks now have a category: "API Misuse (Apple)"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56403
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 18:58:22 +0000 (18:58 +0000)]
The "unused ivar" check now has a category: "Optimization"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56402
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 18:57:28 +0000 (18:57 +0000)]
Built-in checks now have a category: "Logic Errors"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56401
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 18:52:59 +0000 (18:52 +0000)]
Added experimental "intelligent-sizing" of HTML message bubbles based on the contents of the message.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56400
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 18:26:58 +0000 (18:26 +0000)]
Remove debugging message.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56398
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 18:26:19 +0000 (18:26 +0000)]
Unbreak ccc-analyzer: getcwd is from package Cwd
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56397
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 18:04:49 +0000 (18:04 +0000)]
Patch by Richard Godbee:
Output to .info files the absolute paths to files that were rejected by the
parser or crashed the analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56396
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 06:58:09 +0000 (06:58 +0000)]
scan-build now prints out bug categories.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56395
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 06:57:40 +0000 (06:57 +0000)]
Add a bug category for NSError** checks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56394
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 21 Sep 2008 03:55:51 +0000 (03:55 +0000)]
Have ScanView.py generate a "<td></td>" pair in the output HTML instead of having scan-build output an empty (and possibly unused) <td>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56393
91177308 -0d34-0410-b5e6-
96231b3b80d8
Cedric Venet [Sat, 20 Sep 2008 18:03:16 +0000 (18:03 +0000)]
Update VS projects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56390
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 20 Sep 2008 04:23:38 +0000 (04:23 +0000)]
Add "category" to BugTypes, allowing bugs to be grouped.
Changed casing of many bug names. The convention will be to have bug names (mostly) lower cased, and categories use some capitalization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56385
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 20 Sep 2008 01:50:34 +0000 (01:50 +0000)]
Add PostStore, a new ProgramPoint to distinguish between 'stores' and other PostStmts.
GRExprEngine:
Use PostStore in EvalStore.
Use a second version of EvalStore in EvalBinaryOperator to associate the store with the expression on the LHS.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56383
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 20 Sep 2008 01:43:16 +0000 (01:43 +0000)]
Make scan-view more robust / friendly when bug reporting fails.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56382
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 19 Sep 2008 23:32:11 +0000 (23:32 +0000)]
Add initial implementation of scan-view
- Web based interface to static analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56375
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 19 Sep 2008 23:18:44 +0000 (23:18 +0000)]
Add REPORTBUG marker to scan-build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56373
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 20:53:52 +0000 (20:53 +0000)]
Test case for transfer function logic of const casts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56369
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 20:51:22 +0000 (20:51 +0000)]
Bug fix: for the base transfer function logic for casts, handle const casts as just propagating the value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56368
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 20:20:09 +0000 (20:20 +0000)]
Update checker build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56367
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 18:00:36 +0000 (18:00 +0000)]
Fixed logic error in BasicConstraintManager pointed out by Zhongxing Xu.
For checking if a symbol >= value, we need to check if symbol == value || symbol
> value. When checking symbol > value and we know that symbol != value, the path
is infeasible only if value == maximum integer.
For checking if a symbol <= value, we need to check if symbol == value || symbol
< value. When checking symbol < value and we know that symbol != value, the path
is infeasible only if value == minimum integer.
Updated test case exercising this logic: we only prune paths if the values are
unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56354
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Sep 2008 17:44:00 +0000 (17:44 +0000)]
Fix rdar://
6222856 : the receiver of a message expr is an
arbitrary expr, not just a assign expr. The grammar comment
was right, the code was just wrong.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56353
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 17:31:13 +0000 (17:31 +0000)]
When we have a binary expression 'int operator symbol', properly rewrite this as
'symbol operator-reverse int'. This patch is a combination of code from
Zhongxing Xu and myself (Zhongxing noticed this bug for the cases of
relational operators).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56351
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 19 Sep 2008 06:07:59 +0000 (06:07 +0000)]
Add an omitted case for AssumeSymInt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56334
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 05:14:13 +0000 (05:14 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56333
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 04:56:32 +0000 (04:56 +0000)]
Added test case for PR 2600: proper use of NSError**
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56332
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 19 Sep 2008 02:30:47 +0000 (02:30 +0000)]
Add panic function "__assert_fail".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56327
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 23:23:19 +0000 (23:23 +0000)]
Register the implicit null-dereferenced object as a notable symbol.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56319
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 23:09:54 +0000 (23:09 +0000)]
Implement second part of PR 2600: NSError** parameter may be null, and should be checked before being dereferenced.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56318
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 23:08:24 +0000 (23:08 +0000)]
Update Xcode project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56317
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 21:25:58 +0000 (21:25 +0000)]
Analysis option -warn-objc-nserror-methods is no longer available. (check is done automatically with -checker-cfref)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56313
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 21:25:13 +0000 (21:25 +0000)]
Change implementation of NSError** coding-style check to be invoked at the end of the retain/release analysis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56312
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Thu, 18 Sep 2008 16:44:58 +0000 (16:44 +0000)]
Finish pushing blocks attribute through the clang attribute machinery.
Also added a couple simple tests from the "gcc.apple" test suite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56309
91177308 -0d34-0410-b5e6-
96231b3b80d8