summaryrefslogtreecommitdiff
path: root/utils/analyzer
Commit message (Collapse)AuthorAge
* Correct hyphenations in comments and assert messagesAlp Toker2013-12-05
| | | | | | | This patch tries to avoid unrelated changes other than fixing a few hyphen-related ambiguities in nearby lines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196466 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] SATestBuild: strip trailing newlines from command file.Jordan Rose2013-09-06
| | | | | | | | | | When running a make-based command, SATestBuild tries to append a -jN flag with an appropriate N to run the build in parallel. However, it failed to take into account that each line read includes a trailing newline (unless it is the last line of a file without a trailing newline), which resulted in the "-jN" appearing on a line on its own. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190164 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] SATestBuild: Don't require reference results to have logs.Jordan Rose2013-06-10
| | | | | | | | The Logs directory isn't used for testing, so it's filtered out ahead of time. However, there's then no reason to include it in version control at all. Don't error if it's not present. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183689 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Always use ccc-analyzer when running scan-build on buildbotAnna Zaks2013-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182982 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Re-enable cplusplus.NewDelete (but not NewDeleteLeaks).Jordan Rose2013-04-05
| | | | | | | | As mentioned in the previous commit message, the use-after-free and double-free warnings for 'delete' are worth enabling even while the leak warnings still have false positives. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178891 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Moving cplusplus.NewDelete to alpha.* for now.Anton Yartsev2013-04-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178529 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Adds cplusplus.NewDelete checker that check for memory leaks, ↵Anton Yartsev2013-03-25
| | | | | | double free, and use-after-free problems of memory managed by new/delete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177849 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] CmpRuns.py: Accept single files as input.Jordan Rose2013-03-23
| | | | | | | | This allows us to compare two direct invocations of the analyzer on a single source file without having to wrap the output plists in their own directories. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177804 91177308-0d34-0410-b5e6-96231b3b80d8
* scan-build: Add a --keep-empty option for better testing.Jordan Rose2013-01-24
| | | | | | | | SATestBuild expects to compare output directories for each invocation of scan-build that it runs, but scan-build clears out empty directories by default. We were coincidentally not getting that behavior until r173294. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173383 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] SATestBuild.py: allow make builds to disable parallelizationJordan Rose2012-11-26
| | | | | | | | Before, SATestBuild unilaterally added '-j<n>' to every project built with 'make'. Now, we check and see if there's a -j option already specified, which allows a project to explicitly be marked '-j1'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168603 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] SATestBuild.py: fix broken string concatenationJordan Rose2012-11-16
| | | | | | | | This has been broken for a while, but the branch was never being taken. (We were trying to do 'str + floatVal'; now we do 'str % intVal' and use the '%d' format.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168174 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] CmpRuns: move the clang_version info into the run (out ofAnna Zaks2012-11-15
| | | | | | report) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168105 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] SATestBuild.py: correctly add -j option for projects using make.Jordan Rose2012-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168099 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Ensure that CmpRuns recursively walks the output directory.Anna Zaks2012-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167981 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Test SimpleStream on the buildbot.Anna Zaks2012-11-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167317 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] CmpRuns: cleanup APIs, allow processing of plists with noAnna Zaks2012-10-17
| | | | | | clang_version, fix the compare routine. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166129 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Expose clang_version in CmpRunsAnna Zaks2012-10-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166048 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] CmpRuns - cleaned up the API, added relative path getterAnna Zaks2012-10-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165995 91177308-0d34-0410-b5e6-96231b3b80d8
* Add handy script for updating plist FileCheck expected output forTed Kremenek2012-09-10
| | | | | | analyzer tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163486 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] testing: add a build mode to allow C++11 testing.Anna Zaks2012-09-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163357 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "[analyzer] Disable diagnostic checking on the buildbot."Jordan Rose2012-08-31
| | | | | | | This reverts commit befc0f648c83f65e1f3567f2058c7c18b4bc3ad8 now that plist-html diagnostics are working again. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162966 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Disable diagnostic checking on the buildbot.Anna Zaks2012-08-30
| | | | | | Due to recent diagnostic changes, we may generate malformed diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162940 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Fixup 162863.Anna Zaks2012-08-29
| | | | | | Thanks Jordan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162875 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer]Fix typo, unbreak static analyzer BuildBot (at leastAnna Zaks2012-08-29
| | | | | | | | partially). (Addresses a regression from r162790.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162864 91177308-0d34-0410-b5e6-96231b3b80d8
* Automatically use more cores when the test build uses 'make'.Ted Kremenek2012-08-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162790 91177308-0d34-0410-b5e6-96231b3b80d8
* Consolidate helper methods and configuration logic. No functionality change.Ted Kremenek2012-08-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162789 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass --use-analyzer to scan-build when running within the test harness.Ted Kremenek2012-08-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162783 91177308-0d34-0410-b5e6-96231b3b80d8
* experimental.security.taint is now alpha.security.taintTed Kremenek2012-08-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162775 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] More internal stats collection.Anna Zaks2012-08-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162687 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Ted fixed the plist-html issue, so the assert can go away.Anna Zaks2012-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162598 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Unbreak the static analyzer buildbot.Anna Zaks2012-08-17
| | | | | | | We no longer associate the correct HTML file with plist diagnostic. Fall out from r162028. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162071 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] CmpRuns should include file name in the issue identifier.Anna Zaks2012-08-02
| | | | | | | | | | This prevents us from treating the issues from different files with the same function names and same offsets as the same. The issue identifier now includes the file name. Also added a way to strip off the root directories form the source file names. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161150 91177308-0d34-0410-b5e6-96231b3b80d8
* SATestBuild should not ask for non-existent checkers.Jordan Rose2012-07-26
| | | | | | | - "cocoa" was moved to "osx.cocoa" a long time ago. - "cplusplus" would be a valid package except we don't have any C++ checkers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160821 91177308-0d34-0410-b5e6-96231b3b80d8
* Un-break standalone invocations of CmpRuns.py.Jordan Rose2012-07-26
| | | | | | Fallout from CmpRuns.py API changes in r160314. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160800 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Make CmpRuns external-user friendly.Anna Zaks2012-07-16
| | | | | | | | | CmpRuns can be used for static analyzer bug report comparison. However, we want to make sure external users do not rely on the way bugs are represented (plist files). Make sure that we have a user friendly/documented API for CmpRuns script. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160314 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Add a statistic for maximum CFG size and a script to summarize ↵Anna Zaks2012-07-05
| | | | | | analyzer stats from scan-build output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159776 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Use "issue hash" in CmpRuns; followup on r158180Anna Zaks2012-06-08
| | | | | | | (For the future: It would be more efficient to produce a hash key with the embedded function info inside the compiler.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158187 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] SATestBuild should execute SVN updates even if Verbose is off.Jordan Rose2012-06-01
| | | | | | Also, re-use glob results when looking for failure logs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157817 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Fix SATestAdd to work with SATestBuild.Jordan Rose2012-06-01
| | | | | | | Also, eliminate global 'IsReferenceBuild' in SATestBuild. It doesn't get passed around that much. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157816 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo.Ted Kremenek2012-05-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157229 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Perl prototypes instead of shift.Ted Kremenek2012-05-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157228 91177308-0d34-0410-b5e6-96231b3b80d8
* Add basic delta-debugging script used for reducing analyzer crasher test cases.Ted Kremenek2012-05-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157219 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: These checkers are not experimental anymore.Anna Zaks2012-02-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150989 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Add the Malloc checker to the list of tested checkers.Anna Zaks2012-02-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150535 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: add automated reference results reset.Anna Zaks2012-02-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149682 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: add 2 new checkers to the buildbot script.Anna Zaks2012-02-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149514 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Add the HTML file to the SATest diagnostic diff.Anna Zaks2012-01-24
| | | | | | (Uses the functionality which has been in CmpRuns long before.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148868 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: make diagnostic diffs more informative (addAnna Zaks2012-01-24
| | | | | | diagnostic message). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148867 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Unbreak the static analyzer bot. Regression from r148558.Anna Zaks2012-01-21
| | | | | | When we build a single source file, we call clang directly (not though scan-build). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148612 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Tweak the buildbot script to include the experimental taint ↵Anna Zaks2012-01-20
| | | | | | checker and correct the checker enabling setting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148558 91177308-0d34-0410-b5e6-96231b3b80d8