aboutsummaryrefslogtreecommitdiff
path: root/tools/scan-build
AgeCommit message (Collapse)Author
2013-05-02[analyzer] Finally make c++-analyzer 'executable' again.Anton Yartsev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180905 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-02[analyzer] Recreated as a file.Anton Yartsev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180903 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-02[analyzer] Temporary remove c++analyzer to recreate it as a separate file, ↵Anton Yartsev
not a symlink. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180902 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-02[analyzer] scan-build for WindowsAnton Yartsev
The patch allows Windows users to launch scan-build without any additional preparations in the same way as it described in http://clang-analyzer.llvm.org/scan-build.html. The only thing that should be done to make scan-build work from an arbitrary location is to add scan-build folder to the PATH environment variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180900 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30[analyzer] scan-build: support -enable-checker with new Xcode integration.Jordan Rose
<rdar://problem/13772094> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180812 91177308-0d34-0410-b5e6-96231b3b80d8
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-03-21[analyzer] scan-build: emit errors on stderr, and exit(1) instead of exit(0).Jordan Rose
PR14963 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177678 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-14[analyzer] Fix scan-build's -stats mode.Jordan Rose
We were failing to match the output line, which led to us collecting no stats at all, which led to a divide-by-zero error. Fixes PR15510. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177084 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-05scan-build: explicitly say "No bugs found" if there are no reports.Jordan Rose
Patch by Martin Storsjo! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176472 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-22scan-build: Remove debug print.Benjamin Kramer
PR15329. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175889 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-21[scan-build] Add quotes around clang executable name to handle path withs ↵Ted Kremenek
spaces. Fixes <rdar://problem/13254727> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175790 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-21[scan-build] fix xcode version parsing to handle dot releases. Fixes ↵Ted Kremenek
<rdar://problem/13265300>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175781 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-02-02Add some horrible Perl code to teach scan-build to recursively walk a ↵Ted Kremenek
directory for HTML files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174260 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-30scan-build: When using Xcode 4.6, use build settings for doing proper build ↵Ted Kremenek
interposition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173954 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-24scan-build: Add a --keep-empty option for better testing.Jordan Rose
SATestBuild expects to compare output directories for each invocation of scan-build that it runs, but scan-build clears out empty directories by default. We were coincidentally not getting that behavior until r173294. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173383 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-23Always process an index.html file if we have HTML output. Patch by Justin ↵Ted Kremenek
Bogner. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173294 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-11Set process return code of 1 in set-xcode-analyzer when Xcode needs to be ↵Ted Kremenek
quit. Fixes <rdar://problem/12983031>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172256 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
2013-01-05Fix set-xcode-analyzer to only modify the ExecPath for the analyzer when ↵Ted Kremenek
using --use-xcode-clang. Turns out that the ExecPath for the ObjC migrator would also get set. Fixes <rdar://problem/12961769>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171607 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-04Require set-xcode-analyzer to run with Python 2.7 or later.Ted Kremenek
Addresses LLVM PR 11661. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171503 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-11-27scan-build: Respect TMPDIR on all platforms, not just Darwin (PR14438).Jordan Rose
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168672 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-07[analyzer] Check that the argument to CFMakeCollectable is non-NULL.Jordan Rose
Patch by Sean McBride! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167537 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-23Fix some mdoc nitsSean Silva
Patch by Eitan Adler! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166482 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-11Teach set-xcode-analyzer that the new default value for ExecPath is ↵Ted Kremenek
CLANG_ANALYZER_EXEC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165681 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-26Have set-xcode-analyer report an error if no xcspec file could be found.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164713 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-26Make set-xcode-analyzer more tolerant of the naming differenes reported by ↵Ted Kremenek
xcode-select. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164712 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-09-15Revert "Utilize new build system support in Xcode 4.5 for easier interposition"Ted Kremenek
It's not clear if this is working yet on the buildbot. Reverting until we have time to investigate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163963 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-14Utilize new build system support in Xcode 4.5 for easier interpositionTed Kremenek
of a build without needing to use ccc-analyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163927 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-14scan-build: Determine the location of the clang binary before printing help.Jordan Rose
We need the clang executable to print the list of available checkers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163925 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29Use double instead of single quote to expand .Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162830 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28Fix passing of -analyzer-max-loop from scan-build to clang.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162765 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-25Change --with-analyzer to --use-analyzer, per sage feedback from Jordan.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162640 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24Fix a few issues related to -with-analyzer reported by Jordan. Let'sTed Kremenek
have the option with two '--' to be consistent with other options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162625 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24Rework how scan-build picks the version of clang to use for static analysis.Ted Kremenek
Unless the user specifies, the clang used for static analysis is the one found relative to scan-build. If the user specifies -with-analyzer, they can pick either to use the clang bundled with Xcode (via xcrun) or they can specify a path to clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162620 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24Reformat help text for scan-build, and remove -constraintsTed Kremenek
and -store from help text because they are no longer relevant to users. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162619 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24Revert "Go ahead and show experimental checkers in the scan-build "-h" output."Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162587 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24Go ahead and show experimental checkers in the scan-build "-h" output.Ted Kremenek
They are labeled as not being enabled-by-default, and how else are users going to test them. Fixes <rdar://problem/11654923> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162543 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24On OS X, use xcrun (if present) to find the clang to use for static analysis ifTed Kremenek
no clang can be found relative to the location of scan-build. Fixes <rdar://problem/11691794> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162535 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-08-06scan-build: factor out setting of environment variables.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161343 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-06Pull 'xcodebuild' wrapper logic into a separate function.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161330 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-27[scan-build] Fix clang++ pathnameArnaud A. de Grandmaison
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160871 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-16Add hack (provided by Jonathan Sauer) to fall back to assuming Xcode is ↵Ted Kremenek
installed in /Developer when using Python < 2.7.0. This is the case on Snow Leopard, where the tools are always installed in /Developer. This isn't a proper fix for really figuring out where Xcode is installed, but should work to fix an obvious problem on Snow Leopard. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160321 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-19Adjust scan-build to enable color output for xterm-256color.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158735 91177308-0d34-0410-b5e6-96231b3b80d8