aboutsummaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2008-08-28Fix regression: immediately terminate ccc-analyzer when gcc reports an error.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55452 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-27Added Ubigraph visualization for the static analyzer (this is pretty alpha ↵Ted Kremenek
quality). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55442 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-27Remove regression where the analyzer was not called.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55440 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-25Use the same 'cc' for generated preprocessed crash files as we do for ↵Ted Kremenek
compilation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55326 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-23Update ccc driverDaniel Dunbar
- Use CCC_ECHO to control echoing behavior (default is on, set to '' or unset to disable) - Get 'clang','llc','as','cc','ld' executables from environment. 'cc' and 'ld' are fetched through CCC_CC and CCC_LD respectively -- to support make CC=ccc -- the others are through their upcased versions. - Add CCC_NATIVE mode. o This uses llc and as to generate native object files; allowing more drop-in replacement of gcc. o Disabled by default, but should eventually be default. o Allow --emit-llvm in CCC_NATIVE mode to override. Essentially this makes ccc more like a drop in replacement for llvm-gcc. - Prevent explicit -x <language> options from annoying clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55260 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-18Record arguments in .info file.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54947 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-10fix linking with .so files specified in cmd line (this fixes some libtool ↵Nuno Lopes
usages) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54623 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-10pass -R arg to linkerNuno Lopes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54622 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-30Use stable sort.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54222 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-24Ignore -MT and -MF.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53977 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-24"This patch adds paths for Fedora 9 in clang.cpp and support for two ↵Ted Kremenek
preprocessor options in ccc." Patch by Zhongxing Xu! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53976 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-19Reimplement ccc-analyzer in a language I actually know, and implement some ↵Ted Kremenek
obvious optimizations when processing command line arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53783 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-15Add -DIBOutlet=__attribute__((iboutlet)) to analyzer arguments.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53648 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-15Do not enable -warn-objc-missing-dealloc by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53619 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-14Re-enable missing -dealloc check.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53578 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-14Using new clang option to invoke the type-signature check of Objective-C ↵Ted Kremenek
instance methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53576 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-11Run by default: -check-objc-methodsigsTed Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53483 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-05llvm-ld doesnt support -O1, -O2, etc options, so dont pass themNuno Lopes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53144 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-03Have ccc-analyzer skip any files with an unknown (or absent) extension.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53114 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-30Bug fix: when copying prefix files using 'cp', don't split file names by spaces.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52899 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-21"This maps the -pthread option to -lpthread - this isn't 100% correct, Chris Lattner
since handling this correctly is quite complex, and on some platforms requires additional -D options and on some implies linking against a different libc, but this works better than just ignoring the option. The other change passes the -x option across to clang, which allows compiling .c files as Objective-C and so on. For some reason a lot of configure scripts seem to be under the misguided impression that this is a sensible thing to do." Patch by David Chisnall! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52579 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-17handle -arch and -isysroot correctly (like ccc-analyszer do).Nuno Lopes
Patch by Filipe Cabecinhas git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52417 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-16Re-enable the analyzer.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52367 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-10Skip a few more files and linker options.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52189 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-05Ignore a few more linker arguments.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52023 91177308-0d34-0410-b5e6-96231b3b80d8