- Sep 04, 2008
-
-
Daniel Dunbar authored
e.g. "(a = b).somefield". llvm-svn: 55758
-
- Sep 03, 2008
-
-
Daniel Dunbar authored
- PR2730 llvm-svn: 55739
-
Daniel Dunbar authored
- Currently CodeGen always returns a conservative value for this (-1 or 0 depending on the context). llvm-svn: 55735
-
Steve Naroff authored
Highlights... - 4 new AST nodes, BlockExpr, BlockStmtExpr, BlockExprExpr, BlockDeclRefExpr. - Sema::ActOnBlockStart(), ActOnBlockError(), ActOnBlockStmtExpr(), ActOnBlockExprExpr(), ActOnBlockReturnStmt(). Next steps... - hack Sema::ActOnIdentifierExpr() to deal with block decl refs. - add attribute handler for byref decls. - add test cases. llvm-svn: 55710
-
Ted Kremenek authored
llvm-svn: 55707
-
Daniel Dunbar authored
- Allow any Objective-C object types to devolve to type id in a ?: expression. This matches gcc behavior more closely. llvm-svn: 55705
-
Ted Kremenek authored
- Change definition of store::Region and store::Binding (once again) to make them real classes that just wrap pointers. This makes them more strictly typed, and allows specific implementations of Regions/Bindings to just subclass them. - minor renamings to RegionExtent and its subclasses - added a bunch of doxygen comments StoreManager: (static analyzer) - added 'iterBindings', an iteration method for iterating over the bindings of a store. It that takes a callback object (acting like a poor man's closure). - added 'getRVal' version for store::Binding. Will potentially phase the other versions of GetRVal in StoreManager out. - reimplemented 'getBindings' to be non-virtual and to use 'iterBindings' BasicStoreManager: (static analyzer) - implemented 'iterBindings' for BasicStoreManager llvm-svn: 55688
-
Daniel Dunbar authored
- Now also searches for correct setter method. - There are still some issues regarding validation of the setter method and access of read-only properties. llvm-svn: 55686
-
Daniel Dunbar authored
uses which refer to methods not properties. - Not yet wired in Sema. llvm-svn: 55681
-
- Sep 02, 2008
-
-
Ted Kremenek authored
When creating CXXRecordDecls and RecordDecls within ActOnTag, hook up the new [CXX]RecordDecl with the RecordDecl chain. llvm-svn: 55652
-
Ted Kremenek authored
- Remove method 'isForwardDecl'; this functionality is already provided by 'isDefinition()' - Move method definitions to be co-located with other RecordDecl methods. llvm-svn: 55649
-
Ted Kremenek authored
- Don't serialize out the NextDeclarator field. It is unused and deprecated. - Serialize out the NextDecl pointer. llvm-svn: 55644
-
Ted Kremenek authored
- Added method 'isForwardDeclaration', a predicate method that returns true if a RecordDecl represents a forward declaration. - Added method 'getDefinitionDecl', a query method that returns a pointer to the RecordDecl that provides the actual definition of a struct/union. llvm-svn: 55642
-
Ted Kremenek authored
- Change constructor and create methods to accept a CXXRecordDecl* (RecordDecl*) instead of a ScopedDecl* for PrevDecl. This causes the type checking to be more tight and doesn't break any code. RecordDecl: - Don't use the NextDeclarator field in ScopedDecl to represent the previous declaration. This is a conflated use of the NextDeclarator field, which will be removed anyway when DeclGroups are fully implemented. - Instead, represent (a soon to be implemented) chain of RecordDecls using a NextDecl field. The last RecordDecl in the chain is always the 'defining' RecordDecl that owns the FieldDecls. The other RecordDecls in the chain are forward declarations. llvm-svn: 55640
-
Steve Naroff authored
- Replace FIXME in Preprocessor::HandleIdentifier() with a check that avoids diagnosing extension tokens that originate from macro definitions. llvm-svn: 55639
-
Steve Naroff authored
llvm-svn: 55637
-
Steve Naroff authored
llvm-svn: 55635
-
Eli Friedman authored
offset-of-like expressions. llvm-svn: 55627
-
Eli Friedman authored
Note that this isn't really a complete fix; I think there are other potential overrun situations. I don't really know what the best systematic fix is, though. llvm-svn: 55622
-
Eli Friedman authored
anywhere near correct in terms of missing cases and missing diagnostics, but it's good enough to handle the uses in the Linux system headers, which are currently a constant pain for compiling applications on Linux. llvm-svn: 55621
-
Eli Friedman authored
type-checking pointer subtraction; if the canonical types aren't used, the qualifiers won't always get stripped off correctly. llvm-svn: 55620
-
Eli Friedman authored
I'll try to come up with a correct fix for the testcase sometime soon. llvm-svn: 55614
-
- Sep 01, 2008
-
-
Ted Kremenek authored
- warn about nonnull being applied to functions with no pointer arguments - continue processing argument list in the attribute when we encounter a non-pointer parameter being marked as nonnull - when no argument list is specified, only mark pointers as nonnull. This fixes PR 2732 and radar 6188814. llvm-svn: 55610
-
Nuno Lopes authored
llvm-svn: 55609
-
Nuno Lopes authored
llvm-svn: 55607
-
Nuno Lopes authored
llvm-svn: 55603
-
- Aug 31, 2008
-
-
Ted Kremenek authored
"This minor patch adds markup of string literals with a red colour." llvm-svn: 55589
-
Anders Carlsson authored
llvm-svn: 55583
-
Anders Carlsson authored
llvm-svn: 55580
-
- Aug 30, 2008
-
-
Anders Carlsson authored
Add CodeGenFunction::EmitMemSetToZero and make AggExprEmitter::EmitAggregateClear use it. llvm-svn: 55573
-
Anders Carlsson authored
llvm-svn: 55572
-
Anders Carlsson authored
llvm-svn: 55567
-
Daniel Dunbar authored
- Change Obj-C runtime message API, drop the ObjCMessageExpr arg in favor of just result type and selector. Necessary so it can be reused in situations where we don't want to cons up an ObjCMessageExpr. - Update aggregate binary assignment to know about special property ref lvalues. - Add CodeGenFunction::EmitCallArg overload which takes an already emitted rvalue. Add CodeGenFunction::StoreComplexIntoAddr. Disabled logic in Sema for parsing Objective-C dot-syntax that accesses methods. This code does not search in the correct order and the AST node has no way of properly representing its results. Updated StmtDumper to print a bit more information about ObjCPropertyRefExprs. llvm-svn: 55561
-
Daniel Dunbar authored
- Added CodeGenFunction::EmitCall which just takes the callee, return type, and a list of (Value*,QualType) pairs. - Added CodeGenFunction::EmitCallArg which handles emitting code for a call argument and turning it into an appropriate (Value*,QualType) pair. - Changed Objective-C runtime interface so that the actual emission of arguments for message sends is (once again) done in the code to emit a message send. No intended functionality change, this is prep work for better ABI support and for Objective-C property setter support. llvm-svn: 55560
-
Daniel Dunbar authored
llvm-svn: 55559
-
- Aug 29, 2008
-
-
Daniel Dunbar authored
- Notably VLAs llvm-svn: 55544
-
Nico Weber authored
llvm-svn: 55538
-
Zhongxing Xu authored
llvm-svn: 55537
-
Zhongxing Xu authored
llvm-svn: 55536
-
Daniel Dunbar authored
Objective-C property references. - This handles property references "more correctly" but setters still don't work. llvm-svn: 55534
-