Ted Kremenek
544450e449
Teach ccc-analyze to pass on -iquote with no spaces between it an the argument.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175115 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-14 00:32:25 +00:00
Ted Kremenek
9d9f254f77
Add some horrible Perl code to teach scan-build to recursively walk a directory for HTML files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174260 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-02 01:52:41 +00:00
Ted Kremenek
1afc201e64
scan-build: When using Xcode 4.6, use build settings for doing proper build interposition.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173954 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-30 19:10:24 +00:00
Jordan Rose
33e9500784
scan-build: Add a --keep-empty option for better testing.
...
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-24 23:07:59 +00:00
Ted Kremenek
7a334d9ed9
Always process an index.html file if we have HTML output. Patch by Justin Bogner.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173294 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-23 21:22:14 +00:00
Ted Kremenek
f64c18ac98
Set process return code of 1 in set-xcode-analyzer when Xcode needs to be quit. Fixes <rdar://problem/12983031>.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172256 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-11 21:49:36 +00:00
Ted Kremenek
75dcea57da
ccc-analyzer: Forward -msse* options to the compiler.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172094 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-10 19:29:31 +00:00
Ted Kremenek
1b15e856e1
Fix set-xcode-analyzer to only modify the ExecPath for the analyzer when 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-05 07:31:54 +00:00
Ted Kremenek
e756b65deb
Require set-xcode-analyzer to run with Python 2.7 or later.
...
Addresses LLVM PR 11661.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171503 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-04 19:04:42 +00:00
Jordan Rose
2cbdd7d21e
[analyzer] scan-build: Don't forget to close our temp file for Clang's output.
...
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 19:12:44 +00:00
Jordan Rose
501be13846
[analyzer] scan-build: Treat '.C' files as C++.
...
Part of PR14443.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168804 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-28 19:12:29 +00:00
Jordan Rose
3fa3c44d62
scan-build: Respect TMPDIR on all platforms, not just Darwin (PR14438).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168672 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-27 02:37:59 +00:00
Jordan Rose
0fe4d400ab
[analyzer] Check that the argument to CFMakeCollectable is non-NULL.
...
Patch by Sean McBride!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167537 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-07 17:12:37 +00:00
Sean Silva
ab4826835f
Fix some mdoc nits
...
Patch by Eitan Adler!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166482 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-23 16:35:44 +00:00
Ted Kremenek
8b03277b0b
Teach set-xcode-analyzer that the new default value for ExecPath is CLANG_ANALYZER_EXEC.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165681 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-11 00:40:41 +00:00
Ted Kremenek
b2d6bc30a4
Have set-xcode-analyer report an error if no xcspec file could be found.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164713 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-26 18:19:55 +00:00
Ted Kremenek
9d86eab84b
Make set-xcode-analyzer more tolerant of the naming differenes reported by xcode-select.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164712 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-26 18:13:03 +00:00
Benjamin Kramer
90b0bc6f41
ccc-analyzer: pass -stdlib=libc++ through to the analyzer.
...
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-19 22:56:24 +00:00
Ted Kremenek
e6664f43bb
Revert "Utilize new build system support in Xcode 4.5 for easier interposition"
...
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-15 05:51:10 +00:00
Ted Kremenek
f8dcac5d65
Utilize new build system support in Xcode 4.5 for easier interposition
...
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-14 19:06:33 +00:00
Jordan Rose
a778d710e2
scan-build: Determine the location of the clang binary before printing help.
...
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-09-14 18:59:03 +00:00
Ted Kremenek
be92debbf1
Use double instead of single quote to expand .
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162830 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29 07:22:34 +00:00
Ted Kremenek
92daae0186
Fix passing of -analyzer-max-loop from scan-build to clang.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162765 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28 16:48:48 +00:00
Ted Kremenek
5a3581daf2
Change --with-analyzer to --use-analyzer, per sage feedback from Jordan.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162640 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-25 05:24:46 +00:00
Ted Kremenek
0d3a3fd721
Fix a few issues related to -with-analyzer reported by Jordan. Let's
...
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-24 23:42:58 +00:00
Ted Kremenek
810e6229e5
Rework how scan-build picks the version of clang to use for static analysis.
...
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-24 23:08:08 +00:00
Ted Kremenek
eaafdfc7b4
Reformat help text for scan-build, and remove -constraints
...
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-24 23:08:06 +00:00
Ted Kremenek
73078642d3
Revert "Go ahead and show experimental checkers in the scan-build "-h" output."
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162587 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24 20:39:38 +00:00
Ted Kremenek
160b3a5460
Go ahead and show experimental checkers in the scan-build "-h" output.
...
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-24 06:49:34 +00:00
Ted Kremenek
56fd9084b1
On OS X, use xcrun (if present) to find the clang to use for static analysis if
...
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-24 04:53:06 +00:00
Jordan Rose
c629ad4706
[scan-build] Accept -fno-objc-arc as well as -fobjc-arc.
...
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-23 23:16:34 +00:00
Ted Kremenek
6e53137f44
Teach ccc-analyze about -fobjc-legacy-dispatch and -mios-simulator-version-min
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161443 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-07 19:27:08 +00:00
Ted Kremenek
cbea860417
scan-build: factor out setting of environment variables.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161343 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-06 20:19:19 +00:00
Ted Kremenek
38447a4079
Pull 'xcodebuild' wrapper logic into a separate function.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161330 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-06 18:54:19 +00:00
Arnaud A. de Grandmaison
9369d4f930
[scan-build] Fix clang++ pathname
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160871 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-27 17:10:06 +00:00
Ted Kremenek
b8971b2781
Add hack (provided by Jonathan Sauer) to fall back to assuming Xcode is 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-07-16 21:39:29 +00:00
Anna Zaks
1e548f12f7
[analyzer]scan-build: report the total number of steps analyzer performs
...
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-22 22:08:12 +00:00
Ted Kremenek
c9480dd035
Adjust scan-build to enable color output for xterm-256color.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158735 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-19 19:27:28 +00:00
Ted Kremenek
3065cf9ecc
Sink definition of IBOutlet, IBOutletCollection, and IBAction into
...
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-06-19 00:37:39 +00:00
Anna Zaks
f8e8a3eeff
[analyzer] Loading external plugins with scan-build
...
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-25 01:13:50 +00:00
Ted Kremenek
8db26ce046
New & improved man page attached, now with standard license added.
...
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-24 20:13:47 +00:00
Douglas Gregor
b4882d5092
Add the output of "clang --version" to scan-build results, from Gerald Combs!
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156834 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-15 18:41:55 +00:00
Ted Kremenek
33ee15964e
Provide a man page for scan-build. Patch by James Lowden!
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156559 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-10 19:10:47 +00:00
Anna Zaks
f4dd85835b
[analyzer] Add .cxx and .txx as known file extensions to ccc-analyzer.
...
A patch by Sean McBride.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154751 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-14 16:30:00 +00:00
Ted Kremenek
1a45a5ff5d
Add static analyzer support for new NSArray/NSDictionary/NSNumber literals.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152139 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-06 20:06:12 +00:00
Ted Kremenek
2775b935fb
Update set-xcode-analyzer to work with Xcode repackaging in Xcode 4.3
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151179 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-22 18:44:35 +00:00
Ted Kremenek
71d9d5cb9d
Teach ccc-analyzer about -fobjc-abi-version.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149094 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-26 23:30:13 +00:00
Anna Zaks
2c3038edc2
[analyzer] Add the HTML file to the SATest diagnostic diff.
...
(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-24 21:57:35 +00:00
Anna Zaks
f46ca24d66
[analyzer] Correct the c++-analyzer symlink
...
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 17:11:23 +00:00
Anna Zaks
e0e7c99410
[analyzer] c++-analyzer should be a symlink.
...
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 02:19:07 +00:00
Anna Zaks
a772b86a6e
[analyzer] Update the docs to reflect that gcc is not the only default
...
compiler option.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147645 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-06 01:54:08 +00:00
Anna Zaks
dd40b84040
[analyzer] scan-build: If we are on MacOS, use clang as the default
...
compiler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147644 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-06 01:54:05 +00:00
Anna Zaks
f5c5f89a10
[analyzer] Skip --serialize-diagnostic when running scan-build.
...
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-06 01:54:02 +00:00
Ted Kremenek
5a15d92206
Force set-xcode-analyzer to use the system version of Python installed on OS X.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147483 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-03 22:05:57 +00:00
Ted Kremenek
de19bb1f03
Teach ccc-analyzer about -fobjc-arc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144778 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-16 05:14:42 +00:00
Anna Zaks
1a8a8cbea6
[analyzer] Make sure scan-build catches all clang failures.
...
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-11-07 22:38:10 +00:00
Anna Zaks
9134294114
[analyzer] When running scan-build with -plist on ./configure, delete the 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-09-09 18:43:53 +00:00
Anna Zaks
71f11d6a39
[analyzer] Revert a regression introduced in r133104(The ARC Migration 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-31 23:53:24 +00:00
Nico Weber
e2c8663ad2
[analyzer] update bug report url
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138721 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-28 11:50:56 +00:00
Ted Kremenek
0a20818384
scan-build: enable C++ support by default.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137382 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-11 22:47:20 +00:00
John McCall
8f0e8d2296
The ARC Migration Tool. All the credit goes to Argyrios and Fariborz
...
for this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133104 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-15 23:25:17 +00:00
Ted Kremenek
6bdda82234
Update regex in scan-build for parsing statistics.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130347 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-27 23:43:27 +00:00
Ted Kremenek
251c27b629
Update scan-build to '-analyzer-checker debug.Stats' instead of the old '-analyzer-stats' -cc1 argument.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130320 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-27 18:53:08 +00:00
Ted Kremenek
5ca328fed2
Add Objective-C++ files to those accepted by ccc-analyzer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129475 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-13 21:52:05 +00:00
Ted Kremenek
09fbf297da
Provide options to explicitly enable/disable checkers in scan-build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129393 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-12 21:47:00 +00:00
Ted Kremenek
ea8b01eb84
Enable C++ static analysis support in ccc-analyzer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129392 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-12 21:46:57 +00:00
Ted Kremenek
4cd6ea9989
Filter our experimental checks in scan-build's checker listing.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128865 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-05 00:21:49 +00:00
Ted Kremenek
9e4a1bb008
Don't store reports when scan-build's build command matches /autogen/ (same as configure).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128723 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-01 18:47:06 +00:00
Ted Kremenek
b26fbc1382
scan-build: only display analyzer intra-file progress when in "Verbose" mode.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128015 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-21 20:12:21 +00:00
Ted Kremenek
5e48bcfa7f
Compress argument processing in ccc-analyzer. No functionality change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127758 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-16 21:10:42 +00:00
Ted Kremenek
27871ea66f
Tweak ccc-analyzer's 'Analyze' function to not mutate the original arguments list.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127428 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-10 21:10:08 +00:00
Ted Kremenek
ba90e8a12e
Enhance scan-build to print out available analyses using new checker 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-25 22:00:40 +00:00
Ted Kremenek
7fe679f300
Begin overhaul of scan-build/ccc-analyzer's handling of checker options.
...
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-17 02:28:30 +00:00
Ted Kremenek
2bbbfb2cc3
No longer pass deprecated '-nodistribute' flag to xcodebuild.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125131 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-08 22:54:30 +00:00
Ted Kremenek
ea6d4e7a51
Enable the self-init checker in scan-build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124696 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-01 22:36:11 +00:00
Ted Kremenek
05acf8b689
Tweak scan-build to work with naked clang commands.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116651 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-16 00:29:16 +00:00
Tom Care
4f2b10b24b
Updated scan-build:
...
- 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-30 01:12:05 +00:00
Tom Care
a716f639a6
Modified the ccc-analyzer script to print the compiler command when log 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-09-29 23:48:31 +00:00
Shantonu Sen
d9d97265f9
Forward -fno-builtin to clang, add .cp as a supported
...
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-07-03 03:08:23 +00:00
Ted Kremenek
55d7d36f48
Add ccc-analyzer support for '-imacros'. Fixes PR 7204.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105624 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-08 18:27:55 +00:00
Ted Kremenek
2aefcb2e8b
Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes PR 6791.[B
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100551 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-06 19:41:24 +00:00
Ted Kremenek
524c308506
scan-build: set environment variable LDPLUSPLUS to 'c++-analyzer' to 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-27 00:20:01 +00:00
Ted Kremenek
f6f8d5a47c
Don't enable static analysis support for C++ by default. Users are
...
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-08 19:06:44 +00:00
Charles Davis
a1359ba1a5
Pass -m32 and -m64 to the static analyzer when using scan-build. Now we can
...
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-03-02 15:26:41 +00:00
Ted Kremenek
6492200c31
Two changes to scan-build:
...
(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-12 00:12:25 +00:00
Ted Kremenek
1d81ed9438
Add comments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95942 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-12 00:10:34 +00:00
Ted Kremenek
8d69937281
Tweak output.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95676 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-09 18:51:44 +00:00
Ted Kremenek
962da0baff
Add a check for a running Xcode before modifying its configuration files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95675 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-09 18:46:58 +00:00
Ted Kremenek
757a9d1f00
Add some diagnostics for when we cannot update the original spec file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95572 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 21:19:27 +00:00
Ted Kremenek
7aaa953581
Add a Python script to change what version of Clang is used by Xcode for static analysis (and ONLY static analysis).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95569 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 20:54:01 +00:00
Ted Kremenek
e01ca51f41
Fix how scan-build finds c++-analyzer to work with checker builds.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95425 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 20:34:14 +00:00
Ted Kremenek
9f9e0dbc13
Now that the -cc1 options for analyzer checks have a structured naming, add back scanning for analyzer checks to scan-build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95349 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 02:18:39 +00:00
Ted Kremenek
565e465c6d
Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95348 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 02:06:54 +00:00
Ted Kremenek
7909fc8833
Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing-dealloc'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95347 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:59:21 +00:00
Ted Kremenek
fa15be4cf9
Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95346 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:57:44 +00:00
Ted Kremenek
2ade536f68
Rename -cc1 option '-warn-objc-unused-ivars' to '-analyzer-check-objc-unused-ivars'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95345 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:55:01 +00:00
Ted Kremenek
cd9902bfb7
Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95343 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:52:40 +00:00
Ted Kremenek
fb3f893bc5
Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95342 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:50:36 +00:00
Ted Kremenek
20b4a58e52
Add c++-analyzer symlink (which is used by scan-build)
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91937 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-22 23:00:32 +00:00
Ted Kremenek
79433b5991
Compute the right extension for preprocessed Objective-C++ files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91547 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-16 18:32:41 +00:00