Jordan Rose
85ff8f281e
[analyzer] scan-build: Don't forget to close our temp file for Clang's output.
...
Also, minor whitespace/indentation fixes.
Patch by Peeter Joot!
llvm-svn: 168805
2012-11-28 19:12:44 +00:00
Jordan Rose
dbbbf55119
[analyzer] scan-build: Treat '.C' files as C++.
...
Part of PR14443.
llvm-svn: 168804
2012-11-28 19:12:29 +00:00
Benjamin Kramer
75e4bb1d87
ccc-analyzer: pass -stdlib=libc++ through to the analyzer.
...
Otherwise clang can't analyze code that relies on features provided by libc++.
llvm-svn: 164262
2012-09-19 22:56:24 +00:00
Jordan Rose
060b163801
[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!
llvm-svn: 162497
2012-08-23 23:16:34 +00:00
Ted Kremenek
7c88d2ae0f
Teach ccc-analyze about -fobjc-legacy-dispatch and -mios-simulator-version-min
...
llvm-svn: 161443
2012-08-07 19:27:08 +00:00
Anna Zaks
7aa3687bb6
[analyzer]scan-build: report the total number of steps analyzer performs
...
This would be useful to investigate performance issues.
llvm-svn: 159038
2012-06-22 22:08:12 +00:00
Ted Kremenek
9dcc0325de
Sink definition of IBOutlet, IBOutletCollection, and IBAction into
...
the compiler predefines buffer. These are essentially part of
the Objective-C language.
llvm-svn: 158690
2012-06-19 00:37:39 +00:00
Anna Zaks
268f154f48
[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.
llvm-svn: 157452
2012-05-25 01:13:50 +00:00
Anna Zaks
d682741136
[analyzer] Add .cxx and .txx as known file extensions to ccc-analyzer.
...
A patch by Sean McBride.
llvm-svn: 154751
2012-04-14 16:30:00 +00:00
Ted Kremenek
415287d943
Add static analyzer support for new NSArray/NSDictionary/NSNumber literals.
...
llvm-svn: 152139
2012-03-06 20:06:12 +00:00
Ted Kremenek
49db052db4
Teach ccc-analyzer about -fobjc-abi-version.
...
llvm-svn: 149094
2012-01-26 23:30:13 +00:00
Anna Zaks
1d39152059
[analyzer] scan-build: If we are on MacOS, use clang as the default
...
compiler.
llvm-svn: 147644
2012-01-06 01:54:05 +00:00
Anna Zaks
3a7f73d996
[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.
llvm-svn: 147643
2012-01-06 01:54:02 +00:00
Ted Kremenek
0e9843b328
Teach ccc-analyzer about -fobjc-arc.
...
llvm-svn: 144778
2011-11-16 05:14:42 +00:00
Anna Zaks
9fed084503
[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)
llvm-svn: 144029
2011-11-07 22:38:10 +00:00
Anna Zaks
45ce1bf091
[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.)
llvm-svn: 139382
2011-09-09 18:43:53 +00:00
Anna Zaks
5efad63f57
[analyzer] Revert a regression introduced in r133104(The ARC Migration Tool..) due to a merge error.
...
llvm-svn: 138919
2011-08-31 23:53:24 +00:00
Ted Kremenek
d33c4d39a0
scan-build: enable C++ support by default.
...
llvm-svn: 137382
2011-08-11 22:47:20 +00:00
John McCall
d70fb9812a
The ARC Migration Tool. All the credit goes to Argyrios and Fariborz
...
for this.
llvm-svn: 133104
2011-06-15 23:25:17 +00:00
Ted Kremenek
13b5a2c2f8
Add Objective-C++ files to those accepted by ccc-analyzer.
...
llvm-svn: 129475
2011-04-13 21:52:05 +00:00
Ted Kremenek
f62a279e4c
Provide options to explicitly enable/disable checkers in scan-build.
...
llvm-svn: 129393
2011-04-12 21:47:00 +00:00
Ted Kremenek
79c4c2baa9
Enable C++ static analysis support in ccc-analyzer.
...
llvm-svn: 129392
2011-04-12 21:46:57 +00:00
Ted Kremenek
9acb346375
scan-build: only display analyzer intra-file progress when in "Verbose" mode.
...
llvm-svn: 128015
2011-03-21 20:12:21 +00:00
Ted Kremenek
d4bcb4ffc1
Compress argument processing in ccc-analyzer. No functionality change.
...
llvm-svn: 127758
2011-03-16 21:10:42 +00:00
Ted Kremenek
339f7c3c58
Tweak ccc-analyzer's 'Analyze' function to not mutate the original arguments list.
...
llvm-svn: 127428
2011-03-10 21:10:08 +00:00
Ted Kremenek
42ec914ff8
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.
llvm-svn: 125712
2011-02-17 02:28:30 +00:00
Tom Care
a5f13c866c
Modified the ccc-analyzer script to print the compiler command when log level verbosity is enabled. This is handy for debugging.
...
llvm-svn: 115109
2010-09-29 23:48:31 +00:00
Shantonu Sen
df44f74290
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
llvm-svn: 107562
2010-07-03 03:08:23 +00:00
Ted Kremenek
e869a182c2
Add ccc-analyzer support for '-imacros'. Fixes PR 7204.
...
llvm-svn: 105624
2010-06-08 18:27:55 +00:00
Ted Kremenek
7deb7050d5
Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes PR 6791.[B
...
llvm-svn: 100551
2010-04-06 19:41:24 +00:00
Ted Kremenek
adccbca23f
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.
llvm-svn: 97960
2010-03-08 19:06:44 +00:00
Charles Davis
dde71b93da
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.
llvm-svn: 97566
2010-03-02 15:26:41 +00:00
Ted Kremenek
14015de619
Add comments.
...
llvm-svn: 95942
2010-02-12 00:10:34 +00:00
Ted Kremenek
2f2692f8ca
Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.
...
llvm-svn: 95348
2010-02-05 02:06:54 +00:00
Ted Kremenek
22a8a4bfb9
Compute the right extension for preprocessed Objective-C++ files.
...
llvm-svn: 91547
2009-12-16 18:32:41 +00:00
Ted Kremenek
dca6816d6a
Add logic for computing preprocessor file extensions for C++ files.
...
llvm-svn: 91505
2009-12-16 05:02:47 +00:00
Ted Kremenek
f65a0c6768
scan-build/ccc-analyzer: start analyzing C++ FTW.
...
llvm-svn: 91398
2009-12-15 02:35:54 +00:00
Ted Kremenek
f92b446dd4
Remove more old references to clang-cc.
...
llvm-svn: 91177
2009-12-11 23:12:52 +00:00
Ted Kremenek
5c512e63f4
Convert scan-build and ccc-analyzer over to using 'clang -cc1' instead of using 'clang-cc'.
...
llvm-svn: 91172
2009-12-11 22:44:53 +00:00
Ted Kremenek
7bea9a1672
Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.
...
llvm-svn: 90812
2009-12-07 22:26:14 +00:00
Kovarththanan Rajaratnam
cb58439f34
Tuck away scan-build related files into tools/scan-build
...
llvm-svn: 90215
2009-12-01 06:52:01 +00:00