]>
granicus.if.org Git - clang/log
Ted Kremenek [Fri, 11 Jul 2008 23:17:01 +0000 (23:17 +0000)]
Tidy up error message.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53493
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Jul 2008 23:13:22 +0000 (23:13 +0000)]
Add CSS for word wrapping of long message bubbles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53492
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 22:52:41 +0000 (22:52 +0000)]
Provide a structure for passing down 'is evaluated' and passing up
diagnosic+loc info for i-c-e evaluation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53490
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Jul 2008 22:48:58 +0000 (22:48 +0000)]
Update Xcode project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53488
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Jul 2008 22:41:43 +0000 (22:41 +0000)]
Run by default: -check-objc-methodsigs
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53483
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Jul 2008 22:40:47 +0000 (22:40 +0000)]
Add new check: -check-objc-methodsigs. This check scans methods in
ObjCImplementationDecls and sees if a ancestor class defines a method with the
same selector but with a different type signature. Right now it just compares
return types, and mainly looks at differences in primitive values. The checking
will be expanded in the future.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53482
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 22:15:16 +0000 (22:15 +0000)]
simplify some code a bit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53477
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 21:24:13 +0000 (21:24 +0000)]
share code between sizeof(expr) and sizeof(type)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53475
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Jul 2008 20:53:14 +0000 (20:53 +0000)]
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53473
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 19:29:32 +0000 (19:29 +0000)]
implement support for __extension__, make sure the result of a
comparison has the right width.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53469
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 19:24:49 +0000 (19:24 +0000)]
add a new getIntTypeSizeInBits method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53468
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 19:19:21 +0000 (19:19 +0000)]
rename "SInt" methods to "Int" in APValue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53467
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Jul 2008 19:15:05 +0000 (19:15 +0000)]
scan-build now also prints the HTML directory reports were emitted to at the end of the build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53466
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 19:10:17 +0000 (19:10 +0000)]
make the new evaluator avoid conversions APValue<->APSInt in some cases.
Add some accessors to APValue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53465
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Jul 2008 18:37:32 +0000 (18:37 +0000)]
Refactored auditor interface within GRExprEngine and GRCoreEngine to use a "batch auditor" to dispatch to specialized auditors instead of having a separate vector for each audited Expr*. This not only provides a much cleaner implementation, but also allows us to install auditors for any expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53464
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Jul 2008 18:11:29 +0000 (18:11 +0000)]
rearrange some code, no functionality changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53463
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 10 Jul 2008 22:10:48 +0000 (22:10 +0000)]
Patch by Csaba Hruska and Peter Neumark:
"adds support (de)serialization (from)to (in memory) buffer."
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53425
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 10 Jul 2008 22:04:37 +0000 (22:04 +0000)]
Updated Xcode project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53424
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 10 Jul 2008 22:03:41 +0000 (22:03 +0000)]
Refactored most of the "Store" piece of ValueState into a Store type. The
current store implementation is now encapsulated by BasicStore.
These changes prompted some long due constification of ValueState. Much of the
diffs in this patch include adding "const" qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53423
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 10 Jul 2008 17:25:03 +0000 (17:25 +0000)]
Remove unused class AnnotatedPath.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53413
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 10 Jul 2008 17:19:18 +0000 (17:19 +0000)]
Move some environment methods from ValueState/ValueStateManager to Environment/EnvironmentManager.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53412
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Jul 2008 05:32:43 +0000 (05:32 +0000)]
Add a new distcc status page, which is currently empty and not
linked from anywhere. It will be linked when content is filled in.
Page by Csaba Hruska!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53392
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Jul 2008 05:26:30 +0000 (05:26 +0000)]
Add an accessor, patch by Csaba Hruska.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53391
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Wed, 9 Jul 2008 22:53:07 +0000 (22:53 +0000)]
Simplify the parser a bit by looking at the next token without consuming it (by Preprocessor::LookNext):
-Remove ParseExpressionWithLeadingIdentifier and ParseAssignmentExprWithLeadingIdentifier.
-Separate ParseLabeledStatement from ParseIdentifierStatement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53376
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Wed, 9 Jul 2008 22:46:46 +0000 (22:46 +0000)]
Add Preprocessor::LookNext method, which implements an efficient way to 'take a peek' at the next token without consuming it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53375
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 9 Jul 2008 22:20:56 +0000 (22:20 +0000)]
More information on filing bug reports.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53373
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 9 Jul 2008 19:46:42 +0000 (19:46 +0000)]
Remove getParentMap() from GRExprEngine.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53343
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 9 Jul 2008 18:26:32 +0000 (18:26 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53339
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 9 Jul 2008 18:11:43 +0000 (18:11 +0000)]
Add test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53335
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 9 Jul 2008 18:11:16 +0000 (18:11 +0000)]
Fix PR2519: correctly handle CFDictionaryCreate.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53334
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 9 Jul 2008 17:58:53 +0000 (17:58 +0000)]
Extend va_start checking to include __builtin_stdarg_start.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53332
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Jul 2008 17:28:44 +0000 (17:28 +0000)]
Codegen support for __builtin_stdarg_start
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53329
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Jul 2008 17:26:36 +0000 (17:26 +0000)]
Add parser support for __builtin_stdarg_start, PR2531
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53328
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 8 Jul 2008 23:30:43 +0000 (23:30 +0000)]
Add Environment.cpp to the clangAnalysis Visual Studio project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53258
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 8 Jul 2008 23:29:24 +0000 (23:29 +0000)]
Update Xcode project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53257
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 8 Jul 2008 21:46:56 +0000 (21:46 +0000)]
Initial work on splitting the ValueState into an Environment, Store, and
Constraints. These concepts are already present in the current ValueState, but
the implementation is monolothic. Making ValueState more modular opens up new
design choices for customizing the analysis engine.
In the context of the analysis engine, the "Environment" is the binding between
Expr* (expressions) and intermediate symbolic values (RValues).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53252
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 8 Jul 2008 21:25:35 +0000 (21:25 +0000)]
More info on filing static analysis bug reports.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53250
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 8 Jul 2008 21:13:06 +0000 (21:13 +0000)]
revert my bogus attempt to fix the comment. sorry for the noise.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53248
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 8 Jul 2008 16:49:00 +0000 (16:49 +0000)]
Fix small bug. The evaluator now works well enough to pass all tests
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53238
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 8 Jul 2008 15:34:11 +0000 (15:34 +0000)]
More constant expression work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53235
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 8 Jul 2008 14:35:21 +0000 (14:35 +0000)]
Move out some methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53234
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 8 Jul 2008 14:30:00 +0000 (14:30 +0000)]
More work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53233
91177308 -0d34-0410-b5e6-
96231b3b80d8
Seo Sanghyeon [Tue, 8 Jul 2008 07:23:12 +0000 (07:23 +0000)]
Compilation fix
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53222
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 8 Jul 2008 05:49:43 +0000 (05:49 +0000)]
Port more of Eli's evaluator over. This makes the int evaluator handle binary and unary operators.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53221
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 8 Jul 2008 05:13:58 +0000 (05:13 +0000)]
Commit beginnings of int evaluator. Currently not used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53219
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 8 Jul 2008 04:35:19 +0000 (04:35 +0000)]
Add LValue setters for APValue
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53216
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 7 Jul 2008 18:43:43 +0000 (18:43 +0000)]
Updated latest checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53191
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 7 Jul 2008 18:31:05 +0000 (18:31 +0000)]
In a report-XXXXX.html, make the title include the name of the file with the bug. Patch by Jean-Daniel Dupas!
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53184
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 7 Jul 2008 17:23:32 +0000 (17:23 +0000)]
Mark the "Bug Type" column as being initially sorted (display the sort ding) so that users can readily see that the table can be sorted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53176
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 7 Jul 2008 16:58:44 +0000 (16:58 +0000)]
Output html should have 'class=' before "sorttable_nosort".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53175
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Mon, 7 Jul 2008 16:46:50 +0000 (16:46 +0000)]
fix CheckForConstantInitializer() for Compound Literals
also fix the correspondent test (it was expecting more errors than it should. please confirm my fix is correct (at least gcc agrees with me)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53174
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 7 Jul 2008 16:21:19 +0000 (16:21 +0000)]
Updated clients of ImmutableMap::SlimFind to use ImmutableMap::lookup instead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53172
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Mon, 7 Jul 2008 12:18:07 +0000 (12:18 +0000)]
add x86 EDI register alias
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53170
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 7 Jul 2008 06:36:08 +0000 (06:36 +0000)]
Do not emit a "missing -dealloc" warning if a class contains no ivars that are pointers.
This patch aims to address some of the concerns of PR 2517: http://llvm.org/bugs/show_bug.cgi?id=2517
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53168
91177308 -0d34-0410-b5e6-
96231b3b80d8
Cedric Venet [Sun, 6 Jul 2008 14:45:13 +0000 (14:45 +0000)]
Add new file to VS projects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53160
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sat, 5 Jul 2008 19:32:25 +0000 (19:32 +0000)]
move the linux predefined macro definition to the TargetInfo, where it really belongs
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53149
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sat, 5 Jul 2008 17:58:44 +0000 (17:58 +0000)]
predefine the macro linux when compiled on a linux system. this fixes the build of libtidy
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53145
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sat, 5 Jul 2008 17:31:10 +0000 (17:31 +0000)]
llvm-ld doesnt support -O1, -O2, etc options, so dont pass them
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53144
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sat, 5 Jul 2008 17:15:18 +0000 (17:15 +0000)]
add gentoo stable gcc headers path so that all tests pass here (CPATH isnt enough..)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53143
91177308 -0d34-0410-b5e6-
96231b3b80d8
Seo Sanghyeon [Sat, 5 Jul 2008 02:01:25 +0000 (02:01 +0000)]
Fix warnings
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53141
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Fri, 4 Jul 2008 22:36:24 +0000 (22:36 +0000)]
Remove unused diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53140
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Fri, 4 Jul 2008 11:04:26 +0000 (11:04 +0000)]
Fixed bugzilla bug# 2489.
This was broken when the GenerateCode function was splitted to use GenerateFunction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53136
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Fri, 4 Jul 2008 10:33:02 +0000 (10:33 +0000)]
'&&' commands together so that the test status reflects the results of all the commands, otherwise the test status will be the result of only the last command.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53135
91177308 -0d34-0410-b5e6-
96231b3b80d8
Seo Sanghyeon [Fri, 4 Jul 2008 09:32:15 +0000 (09:32 +0000)]
Fix warnings
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53133
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 4 Jul 2008 04:38:48 +0000 (04:38 +0000)]
'&&' clang commands together so that the test status reflects the results of all three clang executions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53132
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 23:40:44 +0000 (23:40 +0000)]
Update latest checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53129
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 23:26:32 +0000 (23:26 +0000)]
Use conjured symbols for variables whose values are invalidated when
passed-by-reference to a function. This allows us to build up constraints for
their new values and restore some lost path-sensitivity. This addresses a few
false positives since in Adium.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53125
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 3 Jul 2008 22:54:30 +0000 (22:54 +0000)]
Remove removed header.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53121
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 22:35:30 +0000 (22:35 +0000)]
Updated latest checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53118
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 22:25:27 +0000 (22:25 +0000)]
Fix a bug in the dead stores checker reported in the following email:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002157.html
Essentially the observer mechanism in LiveVariables was observing block-level
expressions multiple times, leading to a case where the dead store checker could
see a value as dead when it was really live.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53115
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 22:24:10 +0000 (22:24 +0000)]
Have ccc-analyzer skip any files with an unknown (or absent) extension.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53114
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 Jul 2008 17:43:22 +0000 (17:43 +0000)]
add c++ status to sidebar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53107
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 16:26:26 +0000 (16:26 +0000)]
Updated latest checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53103
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 15:37:02 +0000 (15:37 +0000)]
Skip the "-dealloc" check if a ObjC class contains no ivars.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53100
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 15:30:49 +0000 (15:30 +0000)]
Added an "ivar_empty" method to ObjCInterfaceDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53099
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 14:35:01 +0000 (14:35 +0000)]
For the -dealloc checker, check the LangOptions to determine whether or not the code is compiled with GC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53098
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 3 Jul 2008 08:32:59 +0000 (08:32 +0000)]
-Added bool feature.
-Set "Named Casts" feature to partial parser/sema support because reinterpret_cast is not properly implemented.
-Removed "Virtual functions" feature because it is already covered by "Class definitions".
-Removed "Templates" because we should either list *all* missing/supported features or just list the features with some support. Mentioning just a few missing features without listing all of them makes little sense.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53095
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 3 Jul 2008 08:21:51 +0000 (08:21 +0000)]
-Change slightly the link to cxx_status.html of the home page.
-Add a link to cxx_status.html from get_involved.html/"Open Projects".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53094
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 05:33:14 +0000 (05:33 +0000)]
Updated latest checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53084
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 05:26:14 +0000 (05:26 +0000)]
Have BugReporter::getCFG and BugReporter::getLiveVariables returns pointers instead of references, because they can both fail
on functions we cannot construct full CFGs for yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53081
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 04:47:54 +0000 (04:47 +0000)]
Updated latest checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53080
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 04:30:48 +0000 (04:30 +0000)]
Update Xcode project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53076
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 3 Jul 2008 04:29:21 +0000 (04:29 +0000)]
Added static analysis check to see if a subclass of NSObject implements -dealloc, and whether or not that implementation calls [super dealloc].
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53075
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 3 Jul 2008 04:20:39 +0000 (04:20 +0000)]
Shuffle things around in preparation for integrating Eli's constant evaluator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53074
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 3 Jul 2008 04:00:59 +0000 (04:00 +0000)]
Make APValue an APSInt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53072
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 Jul 2008 03:53:40 +0000 (03:53 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53071
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 Jul 2008 03:47:30 +0000 (03:47 +0000)]
Fix PR2252: don't warn on negating an unsigned value ever, and don't emit
'integer constant is so large that it is unsigned' warning for hex literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53070
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 Jul 2008 03:30:58 +0000 (03:30 +0000)]
Fix PR2020 by recovering by defining an anonymous enum, instead of recovering
by filling in the body of a union with enum constants.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53069
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 23:18:57 +0000 (23:18 +0000)]
Update test case with new clang arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53056
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 23:18:22 +0000 (23:18 +0000)]
Update test case: simply running "clang -checker-simple" doesn't invoke the dead store checker anymore. We need "-warn-dead-stores" as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53055
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 23:16:33 +0000 (23:16 +0000)]
Unify the code path for the Dead Stores checker to always use the BugReporter interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53054
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 23:16:10 +0000 (23:16 +0000)]
ccc-analyzer now dispatches the options "-checker-cfref" and "-warn-dead-stores" to clang instead of just "-checker-cfref".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53053
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 21:24:01 +0000 (21:24 +0000)]
Refactored some of the BugReporter interface so that data such as the ASTContext&, PathDiagnosticClient*, can be provided by an external source.
Split BugReporter into BugReporter and GRBugReporter so checkers not based on GRExprEngine can still use the BugReporter mechanism.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53048
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 20:13:38 +0000 (20:13 +0000)]
GRExprEngine now expects the LiveVariables information to be provided by its creator.
This allows an optimization in AnalysisConsumer where the same LiveVariables information is used between multiple analyses.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53046
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 18:39:20 +0000 (18:39 +0000)]
Added version of CheckDeadStores that accepts a client-provided LiveVariables object.
Modified the DeadStores logic in AnalysisConsumer.cpp to use the LiveVariables object created by the AnalysisManager.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53043
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 18:32:45 +0000 (18:32 +0000)]
Added method "HandleTranslationUnit" to ASTConsumer. This is called by ParseAST when all of the ASTs in a translation unit have been built.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53042
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 18:23:21 +0000 (18:23 +0000)]
Moved logic for -dump-cfg and -view-cfg into AnalysisConsumer.
Renamed -dump-cfg to -cfg-dump, and -view-cfg to -cfg-view. This naming better matches the same options for asts (e.g. -ast-dump).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53041
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 18:11:29 +0000 (18:11 +0000)]
Move -dump-live-variables logic to AnalysisConsumer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53039
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 16:49:11 +0000 (16:49 +0000)]
Migrate CheckerConsumer diagnostics to the new AnalysisConsumer interface.
Remove CheckerConsumer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53029
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 2 Jul 2008 16:35:50 +0000 (16:35 +0000)]
Move logic for "-checker-simple" to the new AnalysisConsumer interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53028
91177308 -0d34-0410-b5e6-
96231b3b80d8