]>
granicus.if.org Git - clang/log
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
Steve Naroff [Thu, 18 Sep 2008 14:10:13 +0000 (14:10 +0000)]
Add driver support for invoking block rewriter.
Also tweaked the create function to take an explicit output file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56305
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 06:34:16 +0000 (06:34 +0000)]
Enable '-warn-objc-nserror-methods' by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56298
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 06:33:41 +0000 (06:33 +0000)]
Implemented one of the checks requested in PR 2600:
"Method accepting NSError** argument should have non-void return value to indicate that an error occurred."
Test case written, but the header needs to be delta-debugged reduced. Will commit shortly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56297
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Sep 2008 00:28:23 +0000 (00:28 +0000)]
Added CFNumberCreate test case to illustrate a 32-bit/64-bit arch issue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56295
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 17 Sep 2008 22:24:13 +0000 (22:24 +0000)]
Add path-sensitivity test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56294
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 17 Sep 2008 21:22:33 +0000 (21:22 +0000)]
Improve x86 ABI compatibility.
- Enables use of ABIArgInfo::Expand when needed. This greatly
improves our x86 ABI compatibility.
- As the infrastructure for target specific ABI handling isn't built
yet, this change means ABI compatibility on other platforms is once
again broken in a different way than before.
- Upcoming: Figure out how to refactor ABI handling into
targets. More documentation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56293
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 17 Sep 2008 21:13:22 +0000 (21:13 +0000)]
Print current function on verification failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56291
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 17 Sep 2008 20:11:04 +0000 (20:11 +0000)]
Drop CodeGenTypes parameter to classifyArgumentType.
Ensure that ABIArgInfo::Default implementation for aggregrate types
is sensible (StructRet on return and ByVal on arguments).
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56289
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 17 Sep 2008 18:37:59 +0000 (18:37 +0000)]
Remove BlockStmtExpr.
Block literals are now represented by the concrete BlockExpr class.
This is cleanup (removes a FIXME).
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56288
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 17 Sep 2008 18:08:07 +0000 (18:08 +0000)]
Another attempt to make test/Makefile return correct error code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56285
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 17 Sep 2008 14:05:40 +0000 (14:05 +0000)]
Fix http://llvm.org/bugs/show_bug.cgi?id=2760.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56280
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 17 Sep 2008 04:22:09 +0000 (04:22 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56274
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Wed, 17 Sep 2008 02:35:50 +0000 (02:35 +0000)]
Fix comment typo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56271
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 17 Sep 2008 00:51:38 +0000 (00:51 +0000)]
Add support for ABIArgInfo::Expand
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56269
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 17 Sep 2008 00:13:27 +0000 (00:13 +0000)]
Add support for rewriting blocks...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56266
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 16 Sep 2008 23:43:13 +0000 (23:43 +0000)]
Ignore XFAIL tests when checking for make failure in test/
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56262
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 16 Sep 2008 23:25:28 +0000 (23:25 +0000)]
Fix copy-paste error in test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56261
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 16 Sep 2008 23:24:45 +0000 (23:24 +0000)]
Minor pass-sensitivity improvement:
if we know that 'len != 0' and know that 'i == 0' then we know that
'i < len' must evaluate to true and cannot evaluate to false
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56260
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 16 Sep 2008 23:21:45 +0000 (23:21 +0000)]
Update Xcode project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56259
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 16 Sep 2008 23:11:46 +0000 (23:11 +0000)]
Remove support for BlockExprExpr. For example...
^(expression) or ^(int arg1, float arg2)(expression)
...is no longer supported.
All block literals now require a compound statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56257
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 16 Sep 2008 22:25:10 +0000 (22:25 +0000)]
Sema::ActOnBlockReturnStmt(): Need to perform the UsualUnaryConversions on the return type.
Sema::CheckReturnStackAddr(): Make sure we skip over implicit casts.
Added some more test cases...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56254
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 16 Sep 2008 18:44:52 +0000 (18:44 +0000)]
ProgramPoint now takes the space of two pointers instead of one. This change was
motivated because it became clear that the number of subclasses of ProgramPoint
would expand and we ran out of bits to represent a pointer variant. As a plus of
this change, BlockEdge program points can now be represented explicitly without
using a cache of CFGBlock* pairs in CFG.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56245
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Tue, 16 Sep 2008 07:58:21 +0000 (07:58 +0000)]
Fixed an offset calculation error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56242
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 13 Sep 2008 05:16:45 +0000 (05:16 +0000)]
Patch by Csaba Hruska!
"Here is a patch what replaces std::ostream with llvm::raw_ostream. This patch
covers the AST library, but ignores Analysis lib."
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56185
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 13 Sep 2008 00:23:41 +0000 (00:23 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56177
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 12 Sep 2008 22:49:36 +0000 (22:49 +0000)]
Include links to stderr output of clang in the table of files that clang rejects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56173
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 12 Sep 2008 19:42:28 +0000 (19:42 +0000)]
Add ccc support for -e and -sectorder.
- llvmc2, save me!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56169
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 12 Sep 2008 18:39:42 +0000 (18:39 +0000)]
Round out object size checking builtins (fprintf ones disabled as we
have no mapping to FILE*). We are also missing printf format
attributes for the printf style ones.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56168
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 12 Sep 2008 18:33:44 +0000 (18:33 +0000)]
Add website links to testing coverage & specification references.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56167
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 12 Sep 2008 18:17:46 +0000 (18:17 +0000)]
Add missing spaces in path diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56166
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 12 Sep 2008 18:10:49 +0000 (18:10 +0000)]
Teach FindSpecRefs how to link to C++ spec.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56164
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 12 Sep 2008 18:10:20 +0000 (18:10 +0000)]
Add --suppress-system-warnings (on by default, use =0 to disable)
- For investigating warnings in system headers / builtins.
- Currently also enables the behavior that allows silent redefinition
of types in system headers. Conceptually these are separate but I
didn't feel it was worth two options (or changing LangOptions).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56163
91177308 -0d34-0410-b5e6-
96231b3b80d8