- Sep 27, 2007
-
-
Chris Lattner authored
fixing: VoidMethod.m:14:5: warning: expression result unused [Greeter hello]; ^~~~~~~~~~~~~~~ llvm-svn: 42380
-
- Sep 26, 2007
-
-
Ted Kremenek authored
Added assertion that Block-level statements should not be NULL. llvm-svn: 42376
-
Ted Kremenek authored
BUG 1) CFG failed to build for empty functions, or functions containing only NullStmts or empty compound statements. We now handle such cases, although now we cannot test for CFG construction failure by asserting that the last block constructed is not NULL (since it now may be). BUG 2) CFG construction segfaulted on some cases when walking the AST and not taking into account that some children of a statement may be NULL. llvm-svn: 42370
-
Ted Kremenek authored
using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. llvm-svn: 42365
-
Ted Kremenek authored
declaration. This is because this option is logically tightly connected to the actions defined in ProgAction. llvm-svn: 42364
-
Ted Kremenek authored
aren't used auto_ptr's anymore. llvm-svn: 42363
-
Ted Kremenek authored
ASTConsumer can also be verified using the diagnostics checker. From the command line, users may activate diagnostic checking using the "-verify" option. For example, "clang -verify -warn-dead-stores" checks if the warnings flagged by the dead store checker match those in the comments. Note that we still have the option "-parse-ast-check" for backwards comptability with existing test cases. This option is now equivalent to "-parse-ast -verify". llvm-svn: 42362
-
Fariborz Jahanian authored
that they conform(in type, name and numbers) to those declared in @interface. Test case highlights kind of checking we do here. llvm-svn: 42360
-
Fariborz Jahanian authored
llvm-svn: 42358
-
Chris Lattner authored
llvm-svn: 42334
-
Hartmut Kaiser authored
llvm-svn: 42330
-
Ted Kremenek authored
moved to include/clang/Analysis/FlowSensitive. llvm-svn: 42327
-
- Sep 25, 2007
-
-
Ted Kremenek authored
code that uses the solver to reflect the new location. Created "FlowSensitive" subdirectory in include/clang/Analysis to hold header files relating to flow-sensitive analyses. Moved "DataflowValues.h" into this subdirectory. llvm-svn: 42320
-
Fariborz Jahanian authored
objective-c code with no @interface declaration. llvm-svn: 42319
-
Ted Kremenek authored
llvm-svn: 42317
-
Fariborz Jahanian authored
semantic checks for class and protocol declarations. Test cases are good indications of kind of checking being done in this patch. llvm-svn: 42311
-
Ted Kremenek authored
"CheckDiagnostics" (used for -parse-ast-check) to check the diagnostics of any ASTConsumer. Reimplemented CheckDiagnostics to use CheckASTConsumer instead. Added driver option -warn-dead-stores-check, which checks the diagnostics generated by the DeadStores checker. This is implemented using CheckASTConsumer.111 llvm-svn: 42310
-
Ted Kremenek authored
"-check-uninit-values" to "-warn-dead-stores" and "-warn-uninit-values" llvm-svn: 42307
-
Ted Kremenek authored
llvm-svn: 42305
-
Ted Kremenek authored
llvm-svn: 42304
-
Ted Kremenek authored
llvm-svn: 42301
-
Hartmut Kaiser authored
llvm-svn: 42295
-
Ted Kremenek authored
between forward and backward analyses, with trait classes being used to implement the key differences in operations/functionality. Converted the LiveVariables analysis to use the generic DataflowSolver. This, along with removing some extra functionality that was not needed, reduced the code for LiveVariables by over half. Modified Driver code to handle the updated interface to LiveVariables. Modified the DeadStores checker to handle the update interface to LiveVariables. Updated DataflowValues (generic ADT to store dataflow values) to also store values for blocks. This is used by DeadStores. Updated some comments. llvm-svn: 42293
-
Ted Kremenek authored
llvm-svn: 42292
-
Chris Lattner authored
llvm-svn: 42291
-
Ted Kremenek authored
is persistent. Adds/removals to a PersistentMap do not result in a map being modified, but a new map being created. This will be useful for path-sensitive analyses. The current implementation mainly makes copies to implement this functionality. If the map turns out to be extensively used, this implementation will be replaced with a more efficient one that uses data sharing (see comments in PersistentMap.h for more information). llvm-svn: 42290
-
- Sep 24, 2007
-
-
Ted Kremenek authored
counted objects that maintain their own internal reference count. This smart pointer implementation is compatible with LLVM-style down-casting (see in llvm: include/llvm/Support/Casting.h). Implemented "RefCounted", a base class that objects that wish to be managed using IntrusiveSPtrs can subclass. Reference counted objects are being targeted for use in path-sensitive dataflow analyses where managing many live objects becomes difficult. llvm-svn: 42260
-
Chris Lattner authored
so that we don't emit an error on the #endif. Suggestion by Neil. llvm-svn: 42258
-
Chris Lattner authored
llvm-svn: 42253
-
Hartmut Kaiser authored
llvm-svn: 42252
-
- Sep 22, 2007
-
-
Chris Lattner authored
integer constant expressions. The only questionable thing is that we now reject: void foo() { switch (1) { case (int)1.0e10000: ; } } with: t.c:5:13: error: case label does not reduce to an integer constant case (int)1.0e10000: ~~~~~^~~~~~~~~ GCC accepts this, emitting the pedwarn: t.c:5: warning: floating constant exceeds range of 'double' llvm-svn: 42238
-
Chris Lattner authored
llvm-svn: 42237
-
Chris Lattner authored
APFloat straight through to LLVM now. llvm-svn: 42236
-
Chris Lattner authored
llvm-svn: 42235
-
Chris Lattner authored
for *which* apfloat to use for a particular type. llvm-svn: 42234
-
Fariborz Jahanian authored
1. Handles saving and checking on protocols used in an @interface declaration 2. Checks and saves class's super class. 3. Adds semantic check to category declarations. llvm-svn: 42218
-
- Sep 21, 2007
-
-
Chris Lattner authored
values. Patch mostly by Gabor Greif for PR1682. llvm-svn: 42203
-
Fariborz Jahanian authored
protocols referenced in @protocol declarations. llvm-svn: 42191
-
- Sep 20, 2007
-
-
Hartmut Kaiser authored
llvm-svn: 42177
-
Ted Kremenek authored
llvm-svn: 42176
-