summaryrefslogtreecommitdiffstats
path: root/clang/tools/scan-build
Commit message (Collapse)AuthorAgeFilesLines
...
* [scan-build] Log compiler invocation to stderr, not stdout.Jordan Rose2013-07-031-4/+4
| | | | | | | | | | This is important for preprocessing steps, which may output to stdout. Also, change ENV accesses using barewords to use string keys instead. PR16414 llvm-svn: 185555
* [analyzer] Add --override-compiler option to scan-build.Anna Zaks2013-05-311-0/+19
| | | | | | | The new advanced option ensures ccc-analyze is used even when better interposition methods are available. llvm-svn: 182981
* scan-build: use the xcodebuild specified by the user.Jordan Rose2013-05-221-9/+4
| | | | | | | | | | This is important if the user has multiple Xcodes installed on their system -- we use xcodebuild to do a version check, and therefore we need to make sure we match the actual build command. Reported by Howard Ling! llvm-svn: 182498
* [analyzer] Finally make c++-analyzer 'executable' again.Anton Yartsev2013-05-021-0/+0
| | | | llvm-svn: 180905
* [analyzer] Recreated as a file.Anton Yartsev2013-05-021-0/+8
| | | | llvm-svn: 180903
* [analyzer] Temporary remove c++analyzer to recreate it as a separate file, ↵Anton Yartsev2013-05-021-8/+0
| | | | | | not a symlink. llvm-svn: 180902
* [analyzer] Added 'executable' property to c++analyzer.Anton Yartsev2013-05-021-0/+0
| | | | llvm-svn: 180901
* [analyzer] scan-build for WindowsAnton Yartsev2013-05-023-3/+19
| | | | | | 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. llvm-svn: 180900
* [analyzer] scan-build: support -enable-checker with new Xcode integration.Jordan Rose2013-04-301-1/+3
| | | | | | <rdar://problem/13772094> llvm-svn: 180812
* [scan-build] Whitelist all -mXXXX options.Ted Kremenek2013-04-231-1/+1
| | | | llvm-svn: 180073
* [analyzer] scan-build: emit errors on stderr, and exit(1) instead of exit(0).Jordan Rose2013-03-211-19/+27
| | | | | | PR14963 llvm-svn: 177678
* [analyzer] Fix scan-build's -stats mode.Jordan Rose2013-03-141-8/+9
| | | | | | | | | 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. llvm-svn: 177084
* scan-build: explicitly say "No bugs found" if there are no reports.Jordan Rose2013-03-051-0/+1
| | | | | | Patch by Martin Storsjo! llvm-svn: 176472
* scan-build: Remove debug print.Benjamin Kramer2013-02-221-1/+0
| | | | | | PR15329. llvm-svn: 175889
* [scan-build] Add quotes around clang executable name to handle path withs ↵Ted Kremenek2013-02-211-1/+2
| | | | | | spaces. Fixes <rdar://problem/13254727> llvm-svn: 175790
* [scan-build] fix xcode version parsing to handle dot releases. Fixes ↵Ted Kremenek2013-02-211-3/+6
| | | | | | <rdar://problem/13265300>. llvm-svn: 175781
* Teach ccc-analyze to pass on -iquote with no spaces between it an the argument.Ted Kremenek2013-02-141-0/+5
| | | | llvm-svn: 175115
* Add some horrible Perl code to teach scan-build to recursively walk a ↵Ted Kremenek2013-02-021-9/+22
| | | | | | directory for HTML files. llvm-svn: 174260
* scan-build: When using Xcode 4.6, use build settings for doing proper build ↵Ted Kremenek2013-01-301-0/+30
| | | | | | interposition. llvm-svn: 173954
* scan-build: Add a --keep-empty option for better testing.Jordan Rose2013-01-241-4/+17
| | | | | | | | 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. llvm-svn: 173383
* Always process an index.html file if we have HTML output. Patch by Justin ↵Ted Kremenek2013-01-231-1/+1
| | | | | | Bogner. llvm-svn: 173294
* Set process return code of 1 in set-xcode-analyzer when Xcode needs to be ↵Ted Kremenek2013-01-111-1/+1
| | | | | | quit. Fixes <rdar://problem/12983031>. llvm-svn: 172256
* ccc-analyzer: Forward -msse* options to the compiler.Ted Kremenek2013-01-101-0/+4
| | | | llvm-svn: 172094
* Fix set-xcode-analyzer to only modify the ExecPath for the analyzer when ↵Ted Kremenek2013-01-051-0/+2
| | | | | | | | | | using --use-xcode-clang. Turns out that the ExecPath for the ObjC migrator would also get set. Fixes <rdar://problem/12961769>. llvm-svn: 171607
* Require set-xcode-analyzer to run with Python 2.7 or later.Ted Kremenek2013-01-041-1/+5
| | | | | | Addresses LLVM PR 11661. llvm-svn: 171503
* [analyzer] scan-build: Don't forget to close our temp file for Clang's output.Jordan Rose2012-11-281-7/+8
| | | | | | | | Also, minor whitespace/indentation fixes. Patch by Peeter Joot! llvm-svn: 168805
* [analyzer] scan-build: Treat '.C' files as C++.Jordan Rose2012-11-281-0/+1
| | | | | | Part of PR14443. llvm-svn: 168804
* scan-build: Respect TMPDIR on all platforms, not just Darwin (PR14438).Jordan Rose2012-11-271-7/+2
| | | | llvm-svn: 168672
* [analyzer] Check that the argument to CFMakeCollectable is non-NULL.Jordan Rose2012-11-071-2/+3
| | | | | | Patch by Sean McBride! llvm-svn: 167537
* Fix some mdoc nitsSean Silva2012-10-231-4/+4
| | | | | | Patch by Eitan Adler! llvm-svn: 166482
* Teach set-xcode-analyzer that the new default value for ExecPath is ↵Ted Kremenek2012-10-111-2/+13
| | | | | | CLANG_ANALYZER_EXEC. llvm-svn: 165681
* Have set-xcode-analyer report an error if no xcspec file could be found.Ted Kremenek2012-09-261-0/+5
| | | | llvm-svn: 164713
* Make set-xcode-analyzer more tolerant of the naming differenes reported by ↵Ted Kremenek2012-09-261-1/+1
| | | | | | xcode-select. llvm-svn: 164712
* ccc-analyzer: pass -stdlib=libc++ through to the analyzer.Benjamin Kramer2012-09-191-0/+1
| | | | | | Otherwise clang can't analyze code that relies on features provided by libc++. llvm-svn: 164262
* Revert "Utilize new build system support in Xcode 4.5 for easier interposition"Ted Kremenek2012-09-151-30/+0
| | | | | | | It's not clear if this is working yet on the buildbot. Reverting until we have time to investigate. llvm-svn: 163963
* Utilize new build system support in Xcode 4.5 for easier interpositionTed Kremenek2012-09-141-0/+30
| | | | | | of a build without needing to use ccc-analyzer. llvm-svn: 163927
* scan-build: Determine the location of the clang binary before printing help.Jordan Rose2012-09-141-60/+63
| | | | | | We need the clang executable to print the list of available checkers. llvm-svn: 163925
* Use double instead of single quote to expand .Ted Kremenek2012-08-291-1/+1
| | | | llvm-svn: 162830
* Fix passing of -analyzer-max-loop from scan-build to clang.Ted Kremenek2012-08-281-1/+1
| | | | llvm-svn: 162765
* Change --with-analyzer to --use-analyzer, per sage feedback from Jordan.Ted Kremenek2012-08-251-5/+5
| | | | llvm-svn: 162640
* Fix a few issues related to -with-analyzer reported by Jordan. Let'sTed Kremenek2012-08-241-5/+5
| | | | | | have the option with two '--' to be consistent with other options. llvm-svn: 162625
* Rework how scan-build picks the version of clang to use for static analysis.Ted Kremenek2012-08-241-40/+61
| | | | | | | | | | | 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. llvm-svn: 162620
* Reformat help text for scan-build, and remove -constraintsTed Kremenek2012-08-241-58/+84
| | | | | | | and -store from help text because they are no longer relevant to users. llvm-svn: 162619
* Revert "Go ahead and show experimental checkers in the scan-build "-h" output."Ted Kremenek2012-08-241-0/+9
| | | | llvm-svn: 162587
* Go ahead and show experimental checkers in the scan-build "-h" output.Ted Kremenek2012-08-241-9/+0
| | | | | | | | | They are labeled as not being enabled-by-default, and how else are users going to test them. Fixes <rdar://problem/11654923> llvm-svn: 162543
* On OS X, use xcrun (if present) to find the clang to use for static analysis ifTed Kremenek2012-08-241-6/+20
| | | | | | | | no clang can be found relative to the location of scan-build. Fixes <rdar://problem/11691794> llvm-svn: 162535
* [scan-build] Accept -fno-objc-arc as well as -fobjc-arc.Jordan Rose2012-08-231-0/+1
| | | | | | | | | 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! llvm-svn: 162497
* Teach ccc-analyze about -fobjc-legacy-dispatch and -mios-simulator-version-minTed Kremenek2012-08-071-0/+2
| | | | llvm-svn: 161443
* scan-build: factor out setting of environment variables.Ted Kremenek2012-08-061-34/+59
| | | | llvm-svn: 161343
* Pull 'xcodebuild' wrapper logic into a separate function.Ted Kremenek2012-08-061-26/+38
| | | | llvm-svn: 161330
OpenPOWER on IntegriCloud