aboutsummaryrefslogtreecommitdiff
path: root/utils/scan-build
AgeCommit message (Collapse)Author
2008-09-25Update scan-build to add markers about crashes.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56603 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-25Use .txt extension for info files.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56598 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-23For generated index.html, look for "scan-view.css", not "/scan-view.css"Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56510 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22Yank out special CSS for button rendering (not very portable or well tested, ↵Ted Kremenek
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
2008-09-22Add "SUMMARYENDHEAD" tag.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56445 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22Don't embed CSS inside scan-build script; use external scanview.css.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56444 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22Don't emit link to source file.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56443 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22Make "View Report" just a normal link again.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56442 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22Don't print out the path length.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56441 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22Use scan-view to view reports. Opening index.html is deprecated.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56431 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-22Patch from Richard Godbee:Ted Kremenek
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-21Add webkit styles using Javascript (detect for AppleWebKit)Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56408 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21Remove debugging message.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56398 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21scan-build now prints out bug categories.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56395 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-21Have ScanView.py generate a "<td></td>" pair in the output HTML instead of ↵Ted Kremenek
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-19Add REPORTBUG marker to scan-build.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56373 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-18Analysis option -warn-objc-nserror-methods is no longer available. (check is ↵Ted Kremenek
done automatically with -checker-cfref) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56313 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-18Enable '-warn-objc-nserror-methods' by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56298 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-12Include links to stderr output of clang in the table of files that clang ↵Ted Kremenek
rejects. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56173 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-11Bug fix: <rdar://problem/6164367>Ted Kremenek
scan-build now correctly processes path prefixes that contain multiple '+' characters or other regex control characters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56121 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-11Check if the environment variable TERM is defined before using it.Ted Kremenek
This fixes: <rdar://problem/6164279> scan-build gives error when invoked without TERM variable git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56110 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-04Patch to scan-build by Jordan Breeding:Ted Kremenek
- Don't remove $BaseDir; may be unsafe - Always create HTML directory with parents git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55813 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-04scan-build:Ted Kremenek
- Only set the environment variable 'CXX' if the user specifies --use-c++. - Fix regression when setting LDPLUSPLUS: add a 'which' to determine the location of g++. This regression was pointed out by Jordan Breeding! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55780 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-03Added --use-cxx option to scan-build.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55706 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-25Use path information from .info files when computing common prefix information.Ted Kremenek
This partially implements PR 2705: http://llvm.org/bugs/show_bug.cgi?id=2705 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55327 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-25ccc-analyzer now correctly reports the exit code from 'cc'.Ted Kremenek
scan-build now correctly reports the exit code from the build command. Fixes: <rdar://problem/6172224> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55324 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-21Added --use-cc option to scan-build to allow the user to specify what ↵Ted Kremenek
compiler they want to use for code compilation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55142 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-18scan-build/ccc-analyzer now also report clang parser failures.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54931 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-08Have scan-build/ccc-analyzer generate preprocessed .i/.mi files for sources ↵Ted Kremenek
that clang crashes on. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54552 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-07Fix by Jordan Breeding: when scanning for prior runs, scan-build should ↵Ted Kremenek
ignore files that are not directories. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54473 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-04Misc cleanups.Ted Kremenek
When results go to a auto-generated dir in /tmp, don't use randomized file names. Just output /tmp/scan-build-DATE-counter, where counter is an auto-incremented counter for runs produced that day. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54325 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-04Convert remaining "open" calls to use three-argument form (thanks to Sam ↵Ted Kremenek
Bishop for the tip!). Recognize 'ccc-analyzer' as a build command some users may use. Treat it just like calling gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54323 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-30"Escape" bug names with quotes for selecting/deselecting from the bug table.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54220 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-25Enabled 'unused ivars' check by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54052 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-18Remove typo.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53776 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-18Quote invocation of clang in pipe to handle paths with spaces.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53775 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-15Have scan-build control default analyses.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53654 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-15Added --status-bugs option to scan-build. By default, the exit status ofTed Kremenek
scan-build is the same as the exit status of the executed build command. With this option, the exit status of scan-build is 1 if the analyzer flagged any bugs, and 0 otherwise. This addresses: <rdar://problem/6075320> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53642 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-15Per Sam Bishop's excellent suggestion, use "system" instead of backticks to ↵Ted Kremenek
invoke sub-commands used by scan-build. This avoids meta-character translation issues caused by a shell subprocess. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53640 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-15Quote file names to better handle paths with spaces.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53635 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-15scan-build now propagates up the exit status of the build command.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53620 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-15scan-build now interrogates clang for a list of available analyses, and presentsTed Kremenek
these as options to the user of scan-build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53618 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-11scan-build now also prints the HTML directory reports were emitted to at the ↵Ted Kremenek
end of the build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53466 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-07Mark the "Bug Type" column as being initially sorted (display the sort ding) ↵Ted Kremenek
so that users can readily see that the table can be sorted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53176 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-07Output html should have 'class=' before "sorttable_nosort".Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53175 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-02ccc-analyzer now dispatches the options "-checker-cfref" and ↵Ted Kremenek
"-warn-dead-stores" to clang instead of just "-checker-cfref". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53053 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-30When inspecting the build command, strip off the preceding path to the build ↵Ted Kremenek
command. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52913 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-17Only use colored output when the environment variable SCAN_BUILD_COLOR is set.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52379 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-16Remove debugging message in ccc-analyzer.Ted Kremenek
Add color diagnostics from scan-build, and indicate the number of bugs found (if any). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52372 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-02Use the correct 'ccc-analyzer' when the build command is a direct invocation ↵Ted Kremenek
of gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51883 91177308-0d34-0410-b5e6-96231b3b80d8