aboutsummaryrefslogtreecommitdiff
path: root/tools/scan-build
AgeCommit message (Collapse)Author
2012-06-19Sink definition of IBOutlet, IBOutletCollection, and IBAction intoTed Kremenek
the compiler predefines buffer. These are essentially part of the Objective-C language. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158690 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-25[analyzer] Loading external plugins with scan-buildAnna Zaks
Load custom plugins when running scan-build. This is useful when additional static analysis Checkers must be provided via clang's plugin interface. Loading additional plugins can now be done via the scan-build call: scan-build -load-plugin <plugin.so> A patch by Thomas Hauth. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157452 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-24New & improved man page attached, now with standard license added.Ted Kremenek
Plus, a patch for scan-build. * mdoc corrections * slightly more compact output * same license as scan-build * DESCRIPTION describes * Default checkers corrected & explained * Authors credited The patch adds support for --help-checkers. It just lists the default checkers by recursively invoking "scan-build -h" and looking for the magic '+' signs. Patch by James Lowden! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157411 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-15Add the output of "clang --version" to scan-build results, from Gerald Combs!Douglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156834 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-10Provide a man page for scan-build. Patch by James Lowden!Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156559 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-14[analyzer] Add .cxx and .txx as known file extensions to ccc-analyzer.Anna Zaks
A patch by Sean McBride. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154751 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-06Add static analyzer support for new NSArray/NSDictionary/NSNumber literals.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152139 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-22Update set-xcode-analyzer to work with Xcode repackaging in Xcode 4.3Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151179 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-26Teach ccc-analyzer about -fobjc-abi-version.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149094 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-24[analyzer] Add the HTML file to the SATest diagnostic diff.Anna Zaks
(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
2012-01-06[analyzer] Correct the c++-analyzer symlinkAnna Zaks
As Matt pointed out, this should be just a link to 'ccc-analyzer'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147661 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-06[analyzer] c++-analyzer should be a symlink.Anna Zaks
This fixes a regression from r147643. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147648 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-06[analyzer] Update the docs to reflect that gcc is not the only defaultAnna Zaks
compiler option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147645 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-06[analyzer] scan-build: If we are on MacOS, use clang as the defaultAnna Zaks
compiler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147644 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-06[analyzer] Skip --serialize-diagnostic when running scan-build.Anna Zaks
Otherwise, the analyzer will try to analyze the serialized diagnostic file as if it were a source file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147643 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-03Force set-xcode-analyzer to use the system version of Python installed on OS X.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147483 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-16Teach ccc-analyzer about -fobjc-arc.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144778 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-07[analyzer] Make sure scan-build catches all clang failures.Anna Zaks
scan-build ignores clang failures in some cases, which might lead to silent failure suppression. For example, if clang command line argument is wrong. (Addresses radar://10406598) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144029 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-09[analyzer] When running scan-build with -plist on ./configure, delete the ↵Anna Zaks
plist files. (scan-build does not set the $HtmlDir when running against configure. Previously, this implied that the plist files would appear in the current directory, with this patch they will get deleted.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139382 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-31[analyzer] Revert a regression introduced in r133104(The ARC Migration ↵Anna Zaks
Tool..) due to a merge error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138919 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-28[analyzer] update bug report urlNico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138721 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-11scan-build: enable C++ support by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137382 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-15The ARC Migration Tool. All the credit goes to Argyrios and FariborzJohn McCall
for this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133104 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-27Update regex in scan-build for parsing statistics.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130347 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-27Update scan-build to '-analyzer-checker debug.Stats' instead of the old ↵Ted Kremenek
'-analyzer-stats' -cc1 argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130320 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-13Add Objective-C++ files to those accepted by ccc-analyzer.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129475 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-12Provide options to explicitly enable/disable checkers in scan-build.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129393 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-12Enable C++ static analysis support in ccc-analyzer.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129392 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-05Filter our experimental checks in scan-build's checker listing.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128865 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-01Don't store reports when scan-build's build command matches /autogen/ (same ↵Ted Kremenek
as configure). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128723 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-21scan-build: only display analyzer intra-file progress when in "Verbose" mode.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128015 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-16Compress argument processing in ccc-analyzer. No functionality change.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127758 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-10Tweak ccc-analyzer's 'Analyze' function to not mutate the original arguments ↵Ted Kremenek
list. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127428 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-25Enhance scan-build to print out available analyses using new checker ↵Ted Kremenek
registration model. This isn't totally complete. Right now scan-build uses some heuristics to determine which checkers are enabled by default, but it cannot always tell which checkers are not enabled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126521 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-17Begin overhaul of scan-build/ccc-analyzer's handling of checker options.Ted Kremenek
We now rely on 'clang --analyze' to provide the default set of checkers. We're still working on the new '-analyzer-checker <checker>' interface, and once that's ready we'll wire it up to scan-build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125712 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-08No longer pass deprecated '-nodistribute' flag to xcodebuild.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125131 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-01Enable the self-init checker in scan-build.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124696 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-16Tweak scan-build to work with naked clang commands.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116651 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-30Updated scan-build:Tom Care
- Idempotent operations are on by default, to match --analyze in the driver. - Integrated stats calculation based on parsing warnings emitted with the -analyzer-stats flag. The new -stats flag enables this. - New -maxloop flag to pass down a maxloop value to the analyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115123 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-29Modified the ccc-analyzer script to print the compiler command when log ↵Tom Care
level verbosity is enabled. This is handy for debugging. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115109 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-03Forward -fno-builtin to clang, add .cp as a supportedShantonu Sen
extension if you otherwise configure scan-build to do c++ static analysis. OKed by Ted git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107562 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-08Add ccc-analyzer support for '-imacros'. Fixes PR 7204.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105624 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-06Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes ↵Ted Kremenek
PR 6791.[B git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100551 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-27scan-build: set environment variable LDPLUSPLUS to 'c++-analyzer' to ↵Ted Kremenek
correctly link projects with c++ code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99684 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-08Don't enable static analysis support for C++ by default. Users areTed Kremenek
accidentally using it without realizing that it is nowhere close to being generally usable and are reporting crashes that we already know about. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97960 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-02Pass -m32 and -m64 to the static analyzer when using scan-build. Now we canCharles Davis
use scan-build with Wine, for example. Ted, I hope this is OK. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97566 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-12Two changes to scan-build:Ted Kremenek
(1) When no 'clang' is found with 'scan-build', remember the one from the path as scan-build sees it, not the build system. This prevents us from finding different clangs during the build. (2) Don't set LDPLUSPLUS when running xcodebuild; instead rely on the clang driver to do the right thing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95943 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-12Add comments.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95942 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-09Tweak output.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95676 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-09Add a check for a running Xcode before modifying its configuration files.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95675 91177308-0d34-0410-b5e6-96231b3b80d8