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
Ted Kremenek
51b939fe14
Add logic for computing preprocessor file extensions for C++ files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91505 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-16 05:02:47 +00:00
Ted Kremenek
51365b5f74
scan-build/ccc-analyzer: start analyzing C++ FTW.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91398 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-15 02:35:54 +00:00
Ted Kremenek
6fba85dc65
scan-build: when the build command is 'make', override the CC and CXX options by passing them as arguments to make. This fixes <rdar://problem/6790224>.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91179 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 23:22:52 +00:00
Ted Kremenek
32317b214f
Remove more old references to clang-cc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91177 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 23:12:52 +00:00
Ted Kremenek
2a3a8b9f47
Convert scan-build and ccc-analyzer over to using 'clang -cc1' instead of using 'clang-cc'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91172 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 22:44:53 +00:00
Ted Kremenek
b40d06dec2
Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90812 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-07 22:26:14 +00:00
Kovarththanan Rajaratnam
d8fdde1196
Tuck away scan-build related files into tools/scan-build
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90215 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-01 06:52:01 +00:00