]> granicus.if.org Git - clang/log
clang
16 years agoMake iboutlet diagnostic lowercase
Ted Kremenek [Tue, 15 Jul 2008 22:39:36 +0000 (22:39 +0000)]
Make iboutlet diagnostic lowercase

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53646 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse lowercase of attribute iboutlet to not conflict with the macro IBOutlet
Ted Kremenek [Tue, 15 Jul 2008 22:38:34 +0000 (22:38 +0000)]
Use lowercase of attribute iboutlet to not conflict with the macro IBOutlet

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53645 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded parsing/sema support for __attribute__ ((IBOutlet)), a clang-specific attribute...
Ted Kremenek [Tue, 15 Jul 2008 22:26:48 +0000 (22:26 +0000)]
Added parsing/sema support for __attribute__ ((IBOutlet)), a clang-specific attribute that the static analyzer will use to recognize what ivars are IBOutlets.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53644 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded --status-bugs option to scan-build. By default, the exit status of
Ted Kremenek [Tue, 15 Jul 2008 22:03:09 +0000 (22:03 +0000)]
Added --status-bugs option to scan-build. By default, the exit status of
scan-build is the same as the exit status of the executed build command. With
this option, the exit status of scan-build is 1 if the analyzer flagged any
bugs, and 0 otherwise.

This addresses: <rdar://problem/6075320>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53642 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoPer Sam Bishop's excellent suggestion, use "system" instead of backticks to invoke...
Ted Kremenek [Tue, 15 Jul 2008 20:18:21 +0000 (20:18 +0000)]
Per Sam Bishop's excellent suggestion, use "system" instead of backticks to invoke sub-commands used by scan-build.  This avoids meta-character translation issues caused by a shell subprocess.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53640 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoQuote file names to better handle paths with spaces.
Ted Kremenek [Tue, 15 Jul 2008 18:28:16 +0000 (18:28 +0000)]
Quote file names to better handle paths with spaces.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53635 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoIncremented latest checker build.
Ted Kremenek [Tue, 15 Jul 2008 18:15:51 +0000 (18:15 +0000)]
Incremented latest checker build.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53631 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDistinguish between dead stores and dead initializations.
Ted Kremenek [Tue, 15 Jul 2008 18:06:32 +0000 (18:06 +0000)]
Distinguish between dead stores and dead initializations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53628 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoisRetain() and isRelease() now only returns true if "Retain"/"Release" appears in...
Ted Kremenek [Tue, 15 Jul 2008 17:43:41 +0000 (17:43 +0000)]
isRetain() and isRelease() now only returns true if "Retain"/"Release" appears in the suffix of a function's name.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53621 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoscan-build now propagates up the exit status of the build command.
Ted Kremenek [Tue, 15 Jul 2008 17:09:28 +0000 (17:09 +0000)]
scan-build now propagates up the exit status of the build command.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53620 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDo not enable -warn-objc-missing-dealloc by default.
Ted Kremenek [Tue, 15 Jul 2008 17:06:44 +0000 (17:06 +0000)]
Do not enable -warn-objc-missing-dealloc by default.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53619 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoscan-build now interrogates clang for a list of available analyses, and presents
Ted Kremenek [Tue, 15 Jul 2008 17:06:13 +0000 (17:06 +0000)]
scan-build now interrogates clang for a list of available analyses, and presents
these as options to the user of scan-build.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53618 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoSupport retain/release tracking for CoreGraphics (CGxxxRef) objects.
Ted Kremenek [Tue, 15 Jul 2008 16:50:12 +0000 (16:50 +0000)]
Support retain/release tracking for CoreGraphics (CGxxxRef) objects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53617 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUpdate radar component to file static analyzer bugs against.
Ted Kremenek [Tue, 15 Jul 2008 03:51:09 +0000 (03:51 +0000)]
Update radar component to file static analyzer bugs against.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53589 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemoved disclaimer about checker-36, which is old news.
Ted Kremenek [Tue, 15 Jul 2008 03:49:15 +0000 (03:49 +0000)]
Removed disclaimer about checker-36, which is old news.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53588 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoProvide an "Analysis Scope" for Analyses so checks can either be run on code declarat...
Ted Kremenek [Tue, 15 Jul 2008 00:46:02 +0000 (00:46 +0000)]
Provide an "Analysis Scope" for Analyses so checks can either be run on code declarations (bodies) or Objective-C @implementation blocks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53584 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRe-enable missing -dealloc check.
Ted Kremenek [Mon, 14 Jul 2008 23:56:31 +0000 (23:56 +0000)]
Re-enable missing -dealloc check.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53578 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUpdate Xcode project.
Ted Kremenek [Mon, 14 Jul 2008 23:42:26 +0000 (23:42 +0000)]
Update Xcode project.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53577 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUsing new clang option to invoke the type-signature check of Objective-C instance...
Ted Kremenek [Mon, 14 Jul 2008 23:41:49 +0000 (23:41 +0000)]
Using new clang option to invoke the type-signature check of Objective-C instance methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53576 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoBreak off declaration of Analysis enum into Analyses.def. The driver options in
Ted Kremenek [Mon, 14 Jul 2008 23:41:13 +0000 (23:41 +0000)]
Break off declaration of Analysis enum into Analyses.def. The driver options in
clang.cpp now #include these definitions to create the command line options, and
AnalysisConsumer #includes this file to generate the switch statement to create
actions.

Renamed -check-objc-methodsigs to -warn-objc-methodsigs.

The "missing -dealloc" check is now optional: -warn-objc-missing-dealloc

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53575 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRefactor Dead Stores error reporting to use the simplified BugReporter::EmitBasicRepo...
Ted Kremenek [Mon, 14 Jul 2008 20:56:04 +0000 (20:56 +0000)]
Refactor Dead Stores error reporting to use the simplified BugReporter::EmitBasicReport interface.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53573 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agohttp://llvm.org/bugs/show_bug.cgi?id=2523
Nate Begeman [Mon, 14 Jul 2008 18:02:46 +0000 (18:02 +0000)]
http://llvm.org/bugs/show_bug.cgi?id=2523

Add some code to handle vector comparisons, which is the language side
of the llvm vicmp/vfcmp instructions.  Also make the vector-vector and
vector-scalar asign checks a bit more sane under the presence of lax vector
conversions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53565 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded method "EmitBasicReport" to BugReporter to simplify the emission of simple...
Ted Kremenek [Mon, 14 Jul 2008 17:40:50 +0000 (17:40 +0000)]
Added method "EmitBasicReport" to BugReporter to simplify the emission of simple bug diagnostics.

Refactored error reporting in CheckObjCDealloc and CheckObjCInstMethSignature to use this new bug reporting interface (major code simplification).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53560 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoremove CGObjCEtoile until it compiles.
Chris Lattner [Mon, 14 Jul 2008 16:54:05 +0000 (16:54 +0000)]
remove CGObjCEtoile until it compiles.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53552 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix minor mistake in clang checkout instructions.
Ted Kremenek [Mon, 14 Jul 2008 14:40:22 +0000 (14:40 +0000)]
Fix minor mistake in clang checkout instructions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53550 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agotest commit. Remove previously added line.
Cedric Venet [Sun, 13 Jul 2008 19:42:06 +0000 (19:42 +0000)]
test commit. Remove previously added line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53524 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agotest commit. Add a blank line.
Cedric Venet [Sun, 13 Jul 2008 19:34:37 +0000 (19:34 +0000)]
test commit. Add a blank line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53522 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse of NextToken() makes ParseIdentifierStatement unnecessary.
Argyrios Kyrtzidis [Sat, 12 Jul 2008 21:04:42 +0000 (21:04 +0000)]
Use of NextToken() makes ParseIdentifierStatement unnecessary.
Simplify the parser by removing Parser::ParseIdentifierStatement.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53520 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoConvert CRLF -> LF line endings.
Argyrios Kyrtzidis [Sat, 12 Jul 2008 20:28:04 +0000 (20:28 +0000)]
Convert CRLF -> LF line endings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53519 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded two new files to VC++ project.
Cedric Venet [Sat, 12 Jul 2008 19:24:14 +0000 (19:24 +0000)]
Added two new files to VC++ project.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53518 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoexpand casts to handle what isIntegerConstantExpr handles.
Chris Lattner [Sat, 12 Jul 2008 01:15:53 +0000 (01:15 +0000)]
expand casts to handle what isIntegerConstantExpr handles.
Casts from pointers remain a problem. :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53501 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd support for __builtin_type_compatible_p, enums, etc.
Chris Lattner [Sat, 12 Jul 2008 00:38:25 +0000 (00:38 +0000)]
Add support for __builtin_type_compatible_p, enums, etc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53500 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agostart remembering diagnostics for various cases, add some missing
Chris Lattner [Sat, 12 Jul 2008 00:14:42 +0000 (00:14 +0000)]
start remembering diagnostics for various cases, add some missing
code.  Switch to Eli's getIntWidth method.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53499 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUpdated latest checker build. This build includes the new check for type-compatibili...
Ted Kremenek [Fri, 11 Jul 2008 23:29:43 +0000 (23:29 +0000)]
Updated latest checker build.  This build includes the new check for type-compatibility of the return types of ObjC methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53496 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoTidy up error message.
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

16 years agoAdd CSS for word wrapping of long message bubbles.
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

16 years agoProvide a structure for passing down 'is evaluated' and passing up
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

16 years agoUpdate Xcode project.
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

16 years agoRun by default: -check-objc-methodsigs
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

16 years agoAdd new check: -check-objc-methodsigs. This check scans methods in
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

16 years agosimplify some code a bit.
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

16 years agoshare code between sizeof(expr) and sizeof(type)
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

16 years agoFix comment.
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

16 years agoimplement support for __extension__, make sure the result of a
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

16 years agoadd a new getIntTypeSizeInBits method.
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

16 years agorename "SInt" methods to "Int" in APValue.
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

16 years agoscan-build now also prints the HTML directory reports were emitted to at the end...
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

16 years agomake the new evaluator avoid conversions APValue<->APSInt in some cases.
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

16 years agoRefactored auditor interface within GRExprEngine and GRCoreEngine to use a "batch...
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

16 years agorearrange some code, no functionality changes.
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

16 years agoPatch by Csaba Hruska and Peter Neumark:
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

16 years agoUpdated Xcode project.
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

16 years agoRefactored most of the "Store" piece of ValueState into a Store type. The
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

16 years agoRemove unused class AnnotatedPath.
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

16 years agoMove some environment methods from ValueState/ValueStateManager to Environment/Enviro...
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

16 years agoAdd a new distcc status page, which is currently empty and not
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

16 years agoAdd an accessor, patch by Csaba Hruska.
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

16 years agoSimplify the parser a bit by looking at the next token without consuming it (by Prepr...
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

16 years agoAdd Preprocessor::LookNext method, which implements an efficient way to 'take a peek...
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

16 years agoMore information on filing bug reports.
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

16 years agoRemove getParentMap() from GRExprEngine.
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

16 years agoUpdated checker build.
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

16 years agoAdd test case.
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

16 years agoFix PR2519: correctly handle CFDictionaryCreate.
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

16 years agoExtend va_start checking to include __builtin_stdarg_start.
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

16 years agoCodegen support for __builtin_stdarg_start
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

16 years agoAdd parser support for __builtin_stdarg_start, PR2531
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

16 years agoAdd Environment.cpp to the clangAnalysis Visual Studio project.
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

16 years agoUpdate Xcode project.
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

16 years agoInitial work on splitting the ValueState into an Environment, Store, and
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

16 years agoMore info on filing static analysis bug reports.
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

16 years agorevert my bogus attempt to fix the comment. sorry for the noise.
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

16 years agoFix small bug. The evaluator now works well enough to pass all tests
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

16 years agoMore constant expression work.
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

16 years agoMove out some methods.
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

16 years agoMore work.
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

16 years agoCompilation fix
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

16 years agoPort more of Eli's evaluator over. This makes the int evaluator handle binary and...
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

16 years agoCommit beginnings of int evaluator. Currently not used.
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

16 years agoAdd LValue setters for APValue
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

16 years agoUpdated latest checker build.
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

16 years agoIn a report-XXXXX.html, make the title include the name of the file with the bug...
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

16 years agoMark the "Bug Type" column as being initially sorted (display the sort ding) so that...
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

16 years agoOutput html should have 'class=' before "sorttable_nosort".
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

16 years agofix CheckForConstantInitializer() for Compound Literals
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

16 years agoUpdated clients of ImmutableMap::SlimFind to use ImmutableMap::lookup instead.
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

16 years agoadd x86 EDI register alias
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

16 years agoDo not emit a "missing -dealloc" warning if a class contains no ivars that are pointers.
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

16 years agoAdd new file to VS projects.
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

16 years agomove the linux predefined macro definition to the TargetInfo, where it really belongs
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

16 years agopredefine the macro linux when compiled on a linux system. this fixes the build of...
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

16 years agollvm-ld doesnt support -O1, -O2, etc options, so dont pass them
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

16 years agoadd gentoo stable gcc headers path so that all tests pass here (CPATH isnt enough..)
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

16 years agoFix warnings
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

16 years agoRemove unused diagnostic.
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

16 years agoFixed bugzilla bug# 2489.
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

16 years ago'&&' commands together so that the test status reflects the results of all the comman...
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

16 years agoFix warnings
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

16 years ago'&&' clang commands together so that the test status reflects the results of all...
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

16 years agoUpdate latest checker build.
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