Ted Kremenek
b96ffdf59e
Use "file_language" for per-language -x options.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51871 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-02 17:13:40 +00:00
Ted Kremenek
915e972098
When the build command is xcodebuild, set the magical environment variable LDPLUSPLUS to g++ to ensure that C++ object files are linked with g++ instead of gcc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51621 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-27 23:18:07 +00:00
Ted Kremenek
30aba6d2aa
Correctly check to see if we are analyzing C++ files (skip).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51620 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-27 23:17:16 +00:00
Ted Kremenek
39165e2a19
Fix variable misspelling.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51548 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-24 16:16:30 +00:00
Ted Kremenek
508b381d32
Don't use inferlanguage to override the default language for all files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51547 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-24 16:14:34 +00:00
Ted Kremenek
e4863992a2
Don't analyze .o files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51546 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-24 16:09:00 +00:00
Ted Kremenek
61cd988a7e
Cleanup indentation and remove some dead code.
...
Analyze files not compiled using "-c". This fixes:
<rdar://problem/5961638> invoke checker when gcc is not called with "-c"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51545 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-24 15:58:54 +00:00
Ted Kremenek
cfd4c7bef7
Disable the use of PCH files when using xcodebuild.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51509 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-23 22:18:16 +00:00
Ted Kremenek
f4cdf41fc7
When known, include the analyzer build in the output of scan-build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51492 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-23 18:17:05 +00:00
Ted Kremenek
26681e8e3a
Don't specify a -o option to clang when not using "-checker-cfref".
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51124 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-14 20:26:52 +00:00
Ted Kremenek
48921c8a2e
Fix variable misspelling.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51122 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-14 20:20:46 +00:00
Ted Kremenek
bfd6a3fbc1
Don't run clang on .s files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51121 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-14 20:17:17 +00:00
Ted Kremenek
1262fc4d66
Added "-a" option to scan-build to select the analysis (ASTConsumer) used by clang. The default is -checker-cfref.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51116 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-14 20:10:33 +00:00
Ted Kremenek
9d7405fafd
Zero-pad the month and day fields in the output HTML directory.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51109 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-14 17:23:56 +00:00
Ted Kremenek
c3e15e22f5
Output #LINE for computing line counts.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51079 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-13 22:56:36 +00:00
Ted Kremenek
8912b5427a
Use "-i" option with make when ignoring errors.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51070 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-13 21:28:02 +00:00
Ted Kremenek
73cb10307b
Re-enable the analyzer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51055 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-13 17:10:28 +00:00
Ted Kremenek
7edbce2e55
Place "-x" option before other analyzer options.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51014 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-12 23:56:50 +00:00
Ted Kremenek
3319600871
Directly invoke gcc immediately instead of before we process the command line arguments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51012 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-12 23:47:41 +00:00
Ted Kremenek
a9525c929b
Added internal command logging.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51003 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-12 22:07:14 +00:00
Ted Kremenek
bdf66c7373
Fix a few glitches in scan-build with automatically generating class names from bug types.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50784 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-06 23:51:45 +00:00
Ted Kremenek
432af5985a
Experiment with not converting bug names to lower case.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50753 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-06 18:11:36 +00:00
Ted Kremenek
3e56e0b8b2
Remove debugging statement.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50598 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-02 23:40:49 +00:00
Ted Kremenek
7a4648df32
Output better paths to display in bug reports and compute a common
...
prefix for all files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50592 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-02 22:04:53 +00:00
Ted Kremenek
73c083c27c
Add missing "-" that prefix arguments to forward to clang.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50540 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-01 21:26:22 +00:00
Ted Kremenek
6b6289848e
scan-build: Disable distributed builds for xcodebuild
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50506 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-30 23:47:12 +00:00
Ted Kremenek
688e659cb5
Pass fobjc-gc-only and fobjc-gc options down to clang.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50426 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-29 16:24:23 +00:00
Ted Kremenek
dc34300db9
Pass down more -iXXX options that clang supports
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50304 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-25 21:28:20 +00:00
Nate Begeman
4cd3603978
Don't double-increment counter for -arch and -isysroot
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50082 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-22 04:47:32 +00:00
Ted Kremenek
fe87354769
Remove unused "verbose" argument to compile(). Also unbreaks ccc-analyzer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50066 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-21 21:58:05 +00:00
Ted Kremenek
d0eef024e9
Pass "-arch" down to clang.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50056 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-21 20:28:01 +00:00
Ted Kremenek
39a79734e7
Pass "-isysroot" option down to clang.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49956 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-19 18:42:26 +00:00
Ted Kremenek
7ea02e6822
Fix spelling/grammar in comment.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49955 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-19 18:07:44 +00:00
Ted Kremenek
a6e2481120
Use Digest::MD5 (a Perl module that should come bundled standard with Perl) to compute file digests instead of using the external program "sha1sum" (which may not be present).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49954 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-19 18:05:48 +00:00
Ted Kremenek
f22eacb11b
Use 'clang' binary in the same dir as scan-build; if it isn't there use the one in the path
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49933 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-18 22:00:56 +00:00
Ted Kremenek
af79c1156a
Turn on CF reference count checker.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49931 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-18 21:53:01 +00:00
Ted Kremenek
809709f46f
Spelling fix.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49908 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-18 16:58:34 +00:00
Ted Kremenek
684bb097fb
scan-build now fixes permissions of report files and directories, which may
...
be created as "temporary files" that are not world readable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49904 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-18 15:18:20 +00:00
Ted Kremenek
57cf446d34
Compute a digest of each report file, and nuke reports that have the same
...
digest as a file already added to the index. This a workaround for the
analyzer analyzing the same file more than once, which can happen when building
multiple targets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49903 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-18 15:09:30 +00:00
Ted Kremenek
6e6eff7aaa
Added "summary table" to generated index.html page that allows one to
...
toggle which bug reports are displayed in the report table.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49738 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-15 20:47:02 +00:00
Ted Kremenek
7d311abfc2
Used --checker-simple.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49501 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-10 22:17:23 +00:00
Ted Kremenek
4bb6ac2bb6
When not emitting path diagnostics in BugReporter::EmitWarning(), use the
...
BugReport-specific SourceRanges (when available).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49486 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-10 16:12:38 +00:00
Ted Kremenek
0b6c153491
Set the location of ccc-analyzer to be the same directory as where scan-build
...
is located.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49397 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-08 20:22:12 +00:00
Ted Kremenek
d8c6d0c8a5
Left-justify text in report table.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49358 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-07 23:50:07 +00:00
Ted Kremenek
6e9d38e2b8
Fix analyzer breakage introduced by r49213: http://llvm.org/viewvc/llvm-project?rev=49213&view=rev
...
The problem is that some clients of gcc lookout at the stdout output of gcc;
this requires that all the analyzer diagnostics go to stderr to avoid polluting
stdout.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49355 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-07 23:27:54 +00:00
Seo Sanghyeon
d389465f42
- ccc: print generated command line to stdout instead of stderr
...
- ccc: quote shell metacharacters in command line to ease copy-and-paste
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49213 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-04 11:02:21 +00:00
Ted Kremenek
8cb53fb1e9
Remove bogus check to prune out analyzing files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49191 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03 21:29:11 +00:00
Ted Kremenek
f5221b0803
More reliably remove '\n' from queries of the location of ccc-analyzer
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49189 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03 21:17:14 +00:00
Ted Kremenek
4f4b17da43
Use full path to ccc-analyzer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49187 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03 20:08:18 +00:00
Sam Bishop
2f2418eacf
Remove handling of impossible "-?" option.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49161 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03 14:29:47 +00:00
Ted Kremenek
9c600ff132
Don't run the analyzer on files whose language is "unknown"
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49152 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03 07:14:59 +00:00
Ted Kremenek
10f883fe7e
Remove impossible "-?" option.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49149 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03 07:11:44 +00:00
Ted Kremenek
bba1cf5500
CSS/HTML generation tweaks for index.html: Remove special "classes" for <td>
...
elements in table so that sorttable can sort them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49145 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03 05:50:51 +00:00
Ted Kremenek
22d6a639ce
Made bug index tables sortable.
...
Added line number, file information, path length, for each bug report.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49113 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 20:43:36 +00:00
Ted Kremenek
7f8a32572e
Initial work on CSS in generated index.html.
...
Added "-V/--view" option to view index.html after it has been generated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49108 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 18:42:49 +00:00
Ted Kremenek
5744dc294e
Initial support for generating index.html file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49104 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 18:03:36 +00:00
Ted Kremenek
39eefde0ae
More wording cleanups in --help text.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49094 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 16:47:27 +00:00
Ted Kremenek
f02e8dbf7e
More wording fixes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49093 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 16:41:25 +00:00
Ted Kremenek
0062ad4f47
Added error message for unrecognized options.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49092 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 16:35:01 +00:00
Ted Kremenek
af08f64abc
Wording cleanups.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49091 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 16:31:58 +00:00
Ted Kremenek
7442ca6b27
Implemented "-k" support.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49090 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 16:04:51 +00:00
Ted Kremenek
6a43ba9cd2
Do equality testing, not regex, when the build command is gcc. This matches
...
better with what compiler invocations that ccc-analyzer actually intercepts.
Fixes suggested by Sam Bishop!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49089 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 15:34:12 +00:00
Ted Kremenek
02493782bd
Minor wording changes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49085 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 07:05:07 +00:00
Ted Kremenek
dab111099e
Added special handling when the build command is "gcc", "cc", or "llvm-gcc";
...
in these cases we directly call ccc-analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49073 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 04:43:42 +00:00
Sam Bishop
a0e226621b
a bunch of random cleanups
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49071 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02 03:35:43 +00:00
Ted Kremenek
c052046348
Minor cleanups.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49052 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-01 21:36:28 +00:00
Ted Kremenek
2b74ab6fdf
Added help text for scan-build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49051 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-01 21:22:03 +00:00
Ted Kremenek
9cc8c2cc79
Initial checking of 'scan-build' script, a script used to wrap builds and
...
interpose calls to gcc with calls to the analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49049 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-01 20:47:38 +00:00
Ted Kremenek
69b6442f3c
Do not abort ccc-analyzer script if an HTML directory is not specified.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48997 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-31 21:20:32 +00:00
Ted Kremenek
09c2ad63c3
The ccc-analyzer script now interrogates environment variables to determine
...
where to dump HTML reports.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48987 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-31 18:25:05 +00:00
Ted Kremenek
b0982880c0
Added hacked version of ccc script used to invoke the static analyzer. This
...
will gradually get pruned down, as it doesn't need to be as functional as
'ccc'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48806 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-25 22:35:32 +00:00
Lauro Ramos Venancio
de808ca855
Disable internalize. Unfortunately, the configure scripts are not ready for some link time optimizations.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47682 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-27 18:46:32 +00:00
Lauro Ramos Venancio
279876b3b4
Add c++ to "inferlanguage"
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47185 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-15 22:35:25 +00:00
Anders Carlsson
dac2b54b1c
Use the subprocess module instead of os.system. Patch by Sam Bishop.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46819 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-06 19:03:27 +00:00
Bill Wendling
550ce0f9b7
- ccc creates output objects in same directory as the source file, and
...
not in the current directory. This doesn't work with VPATH builds in
autotooled builds.
- ccc now creates object files without an extension.
- Return exit code 1 if code > 255.
Patch by Torok!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46689 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-03 21:27:46 +00:00
Seo Sanghyeon
795aaed924
Make ccc work with older Python versions. Patch by Sam Bishop.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46675 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-03 03:40:41 +00:00
Anders Carlsson
c720d9b22e
Don't try to compile .a files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46626 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-31 23:48:19 +00:00
Anders Carlsson
d125bb191f
Improvements to ccc. Patch by Shantonu Sen.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46501 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-29 07:21:34 +00:00
Seo Sanghyeon
96b99f7939
Implement -print-prog-name. Patch by Nuno Lopes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46353 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-25 14:57:54 +00:00
Seo Sanghyeon
42599555d1
Ignore --param
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46107 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-17 01:08:43 +00:00
Seo Sanghyeon
2bfa5334a7
Compiler driver
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45809 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-10 01:43:47 +00:00