aboutsummaryrefslogtreecommitdiff
path: root/tools/scan-build/ccc-analyzer
AgeCommit message (Collapse)Author
2013-04-23[scan-build] Whitelist all -mXXXX options.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180073 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-14Teach ccc-analyze to pass on -iquote with no spaces between it an the argument.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175115 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-10ccc-analyzer: Forward -msse* options to the compiler.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172094 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-28[analyzer] scan-build: Don't forget to close our temp file for Clang's output.Jordan Rose
Also, minor whitespace/indentation fixes. Patch by Peeter Joot! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168805 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-28[analyzer] scan-build: Treat '.C' files as C++.Jordan Rose
Part of PR14443. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168804 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-19ccc-analyzer: pass -stdlib=libc++ through to the analyzer.Benjamin Kramer
Otherwise clang can't analyze code that relies on features provided by libc++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164262 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-23[scan-build] Accept -fno-objc-arc as well as -fobjc-arc.Jordan Rose
This is how Xcode lets individual files be marked as non-ARC when the rest of the project is ARC-enabled, so this is necessary for scan-build xcodebuild. Patch by Paul Eipper! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162497 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-07Teach ccc-analyze about -fobjc-legacy-dispatch and -mios-simulator-version-minTed Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161443 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-22[analyzer]scan-build: report the total number of steps analyzer performsAnna Zaks
This would be useful to investigate performance issues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159038 91177308-0d34-0410-b5e6-96231b3b80d8
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-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-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-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
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-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-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-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-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
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-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-12Add comments.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95942 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95348 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-16Compute the right extension for preprocessed Objective-C++ files.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91547 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-16Add logic for computing preprocessor file extensions for C++ files.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91505 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-15scan-build/ccc-analyzer: start analyzing C++ FTW.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91398 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11Remove more old references to clang-cc.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91177 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11Convert scan-build and ccc-analyzer over to using 'clang -cc1' instead of ↵Ted Kremenek
using 'clang-cc'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91172 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-07Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90812 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-01Tuck away scan-build related files into tools/scan-buildKovarththanan Rajaratnam
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90215 91177308-0d34-0410-b5e6-96231b3b80d8