summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer/CmpRuns.py
Commit message (Collapse)AuthorAgeFilesLines
* [Analyzer] Make testing scripts flake8 compliantGeorge Karpenkov2017-10-021-29/+45
| | | | | | Differential Review: https://reviews.llvm.org/D38213 llvm-svn: 314692
* [Analyzer] Refactor analyzer testing scripts.George Karpenkov2017-09-221-1/+0
| | | | | | | | | | | | | - Exporting needed function for future reuse. - Idiomatic python: using with `file as f` instead of `try/finally`. - Fixing some indentation issues. - No need to reinvent python `multiprocessing.getCPUCount()` - Removing a function parameter which is always the same under all invocations. - Adding some docstrings. Differential Revision: https://reviews.llvm.org/D38156 llvm-svn: 313949
* [Analyzer] Remove dead code from CmpRuns.py.George Karpenkov2017-09-211-24/+0
| | | | | | Differential Revision: https://reviews.llvm.org/D38003 llvm-svn: 313923
* [analyzer] Bug identificationGabor Horvath2015-10-221-2/+2
| | | | | | | | | | | | | | | | This patch adds hashes to the plist and html output to be able to identfy bugs for suppressing false positives or diff results against a baseline. This hash aims to be resilient for code evolution and is usable to identify bugs in two different snapshots of the same software. One missing piece however is a permanent unique identifier of the checker that produces the warning. Once that issue is resolved, the hashes generated are going to change. Until that point this feature is marked experimental, but it is suitable for early adoption. Differential Revision: http://reviews.llvm.org/D10305 Original patch by: Bence Babati! llvm-svn: 251011
* [analyzer] Apply whitespace cleanups by Honggyu Kim.Ted Kremenek2015-09-081-23/+23
| | | | llvm-svn: 246978
* [Static Analyzer] Make the paths relative from the project root when ↵Gabor Horvath2015-07-081-3/+3
| | | | | | generating reference results in the test suite. llvm-svn: 241706
* [Static Analyzer] Minor improvements to SATest.Gabor Horvath2015-06-301-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D10812 llvm-svn: 241073
* [analyzer] CmpRuns.py: Accept single files as input.Jordan Rose2013-03-231-46/+51
| | | | | | | | 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. llvm-svn: 177804
* [analyzer] CmpRuns: move the clang_version info into the run (out ofAnna Zaks2012-11-151-7/+15
| | | | | | report) llvm-svn: 168105
* [analyzer] Ensure that CmpRuns recursively walks the output directory.Anna Zaks2012-11-141-39/+40
| | | | llvm-svn: 167981
* [analyzer] CmpRuns: cleanup APIs, allow processing of plists with noAnna Zaks2012-10-171-16/+20
| | | | | | clang_version, fix the compare routine. llvm-svn: 166129
* [analyzer] Expose clang_version in CmpRunsAnna Zaks2012-10-161-2/+3
| | | | llvm-svn: 166048
* [analyzer] CmpRuns - cleaned up the API, added relative path getterAnna Zaks2012-10-151-19/+40
| | | | llvm-svn: 165995
* [analyzer] Ted fixed the plist-html issue, so the assert can go away.Anna Zaks2012-08-241-3/+1
| | | | llvm-svn: 162598
* [analyzer] Unbreak the static analyzer buildbot.Anna Zaks2012-08-171-1/+3
| | | | | | | We no longer associate the correct HTML file with plist diagnostic. Fall out from r162028. llvm-svn: 162071
* [analyzer] CmpRuns should include file name in the issue identifier.Anna Zaks2012-08-021-17/+26
| | | | | | | | | | 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. llvm-svn: 161150
* Un-break standalone invocations of CmpRuns.py.Jordan Rose2012-07-261-1/+1
| | | | | | Fallout from CmpRuns.py API changes in r160314. llvm-svn: 160800
* [analyzer] Make CmpRuns external-user friendly.Anna Zaks2012-07-161-44/+62
| | | | | | | | | 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. llvm-svn: 160314
* [analyzer] Use "issue hash" in CmpRuns; followup on r158180Anna Zaks2012-06-081-3/+11
| | | | | | | (For the future: It would be more efficient to produce a hash key with the embedded function info inside the compiler.) llvm-svn: 158187
* [analyzer] Add the HTML file to the SATest diagnostic diff.Anna Zaks2012-01-241-3/+4
| | | | | | (Uses the functionality which has been in CmpRuns long before.) llvm-svn: 148868
* [analyzer] Testing: make diagnostic diffs more informative (addAnna Zaks2012-01-241-2/+5
| | | | | | diagnostic message). llvm-svn: 148867
* [analyzer] Testing: Display the number of reported differences in the main log.Anna Zaks2011-11-081-7/+10
| | | | llvm-svn: 144113
* [analyzer] Relax the cmp criteria for analyzer reports.Anna Zaks2011-11-051-1/+1
| | | | | | Until we find out a way to easily find out what changed by looking at the logs. llvm-svn: 143789
* [analyzer] CmpRuns can now optionally delete empty reports.Anna Zaks2011-09-121-5/+7
| | | | llvm-svn: 139550
* [analyzer] CmpRuns.cmpScanBuildResults() should be easy to call from other ↵Anna Zaks2011-09-121-18/+32
| | | | | | modules. llvm-svn: 139543
* Rename CmpRuns into CmpRuns.py so that it could be used as a module.Anna Zaks2011-09-121-0/+230
llvm-svn: 139540
OpenPOWER on IntegriCloud