Граф коммитов

5232 Коммитов

Автор SHA1 Сообщение Дата
Daniel Dunbar 28870e141a 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
2008-09-22 18:05:49 +00:00
Ted Kremenek db9e91b688 Reintegrate Daniel's changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56447 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22 18:05:05 +00:00
Ted Kremenek 51e6ffe729 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
2008-09-22 17:55:14 +00:00
Ted Kremenek 1d1abb1dec Add "SUMMARYENDHEAD" tag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56445 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22 17:52:58 +00:00
Ted Kremenek 3ce1207f90 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
2008-09-22 17:50:47 +00:00
Ted Kremenek 91639ef5aa Don't emit link to source file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56443 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22 17:42:31 +00:00
Ted Kremenek 68005ddb49 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
2008-09-22 17:39:18 +00:00
Ted Kremenek 50534dc3ab Don't print out the path length.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56441 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22 17:38:23 +00:00
Ted Kremenek 778246ae47 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
2008-09-22 17:33:32 +00:00
Nuno Lopes 7ccce6b046 not executable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56439 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22 17:26:14 +00:00
Steve Naroff 33ae3afcf8 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
2008-09-22 15:31:56 +00:00
Steve Naroff 4f9b9f1e68 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
2008-09-22 10:28:57 +00:00
Ted Kremenek 5950b3f93a 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
2008-09-22 06:47:01 +00:00
Ted Kremenek 224e4e7ce8 Updated checker build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56430 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22 06:11:08 +00:00
Daniel Dunbar c2dd3459fe 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
2008-09-22 03:08:32 +00:00
Daniel Dunbar 7ad535db06 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
2008-09-22 02:53:12 +00:00
Daniel Dunbar 8dcd940c0f 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
2008-09-22 02:27:45 +00:00
Daniel Dunbar e673c08c3a 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
2008-09-22 01:42:08 +00:00
Daniel Dunbar 7345e4782e 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
2008-09-22 01:40:14 +00:00
Ted Kremenek 7cba112624 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
2008-09-22 01:35:58 +00:00
Daniel Dunbar 47cceff13c 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
2008-09-22 01:21:30 +00:00
Daniel Dunbar 78266296fd 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
2008-09-22 00:11:51 +00:00
Daniel Dunbar b131c8ac7c 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
2008-09-21 23:02:25 +00:00
Daniel Dunbar cb028b0180 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
2008-09-21 20:34:58 +00:00
Ted Kremenek 12a467ff0b 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
2008-09-21 20:10:46 +00:00
Ted Kremenek b315a3940f Unbreak using abs_path.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56407 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21 19:56:14 +00:00
Daniel Dunbar 25b51d0699 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
2008-09-21 19:08:54 +00:00
Ted Kremenek a05131a971 Change casing of bug type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56405 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21 19:08:31 +00:00
Daniel Dunbar feee21a476 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
2008-09-21 19:06:51 +00:00
Ted Kremenek b344f91f00 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
2008-09-21 19:01:39 +00:00
Ted Kremenek 0b00785872 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
2008-09-21 18:58:22 +00:00
Ted Kremenek 2713347374 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
2008-09-21 18:57:28 +00:00
Ted Kremenek a6aa83e5c7 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
2008-09-21 18:52:59 +00:00
Ted Kremenek 365680de8f Remove debugging message.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56398 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21 18:26:58 +00:00
Ted Kremenek 448b0f74c0 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
2008-09-21 18:26:19 +00:00
Ted Kremenek 5f2825f6fa 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
2008-09-21 18:04:49 +00:00
Ted Kremenek ebb7413bbe scan-build now prints out bug categories.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56395 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21 06:58:09 +00:00
Ted Kremenek 62059e8095 Add a bug category for NSError** checks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56394 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21 06:57:40 +00:00
Ted Kremenek 3bf5ebe69f 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
2008-09-21 03:55:51 +00:00
Cedric Venet 5977110055 Update VS projects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56390 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-20 18:03:16 +00:00
Ted Kremenek 8c036c7f77 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
2008-09-20 04:23:38 +00:00
Ted Kremenek 82bae3f6bf 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
2008-09-20 01:50:34 +00:00
Daniel Dunbar 5472249ee4 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
2008-09-20 01:43:16 +00:00
Daniel Dunbar e33d3682b6 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
2008-09-19 23:32:11 +00:00
Daniel Dunbar e43038ec3d Add REPORTBUG marker to scan-build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56373 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-19 23:18:44 +00:00
Ted Kremenek fb8a7fd774 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
2008-09-19 20:53:52 +00:00
Ted Kremenek a8fe39fbec 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
2008-09-19 20:51:22 +00:00
Ted Kremenek 9cbff26be3 Update checker build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56367 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-19 20:20:09 +00:00
Ted Kremenek 0a41e5a03a 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
2008-09-19 18:00:36 +00:00
Chris Lattner 69d349a874 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
2008-09-19 17:44:00 +00:00