- Oct 12, 2008
-
-
Chris Lattner authored
llvm-svn: 57392
-
Chris Lattner authored
llvm-svn: 57391
-
Chris Lattner authored
llvm-svn: 57390
-
Chris Lattner authored
llvm-svn: 57389
-
- Oct 10, 2008
-
-
Steve Naroff authored
llvm-svn: 57354
-
Steve Naroff authored
This completes the fix for <rdar://problem/6272905> clang block rewriter: parameter to function not imported into block?. llvm-svn: 57350
-
Seo Sanghyeon authored
llvm-svn: 57341
-
Steve Naroff authored
Final phase of converting BlockDecls over to DeclContext. This is unfortunately a largish/complex diff, however it was necessry to pass all the current block tests. llvm-svn: 57337
-
Daniel Dunbar authored
llvm-svn: 57335
-
Daniel Dunbar authored
llvm-svn: 57334
-
Ted Kremenek authored
llvm-svn: 57333
-
Dale Johannesen authored
llvm-svn: 57332
-
- Oct 09, 2008
-
-
Zhongxing Xu authored
llvm-svn: 57317
-
Argyrios Kyrtzidis authored
class C { static const int number = 50; static int arr[number]; }; Here's how it worked: -GetTypeForDeclarator was called from both Sema::ActOnCXXMemberDeclarator and Sema::ActOnDeclarator. -VariableArrayTypes are not uniqued so two VariableArrayTypes were created with the same DeclRefExpr. -On exit they both tried to destroy that one DeclRefExpr. The fix is not to use GetTypeForDeclarator from the Sema::ActOnCXXMemberDeclarator. llvm-svn: 57313
-
- Oct 08, 2008
-
-
Steve Naroff authored
This required changes to attach the compound statement later on (like we do for functions). llvm-svn: 57304
-
Ted Kremenek authored
llvm-svn: 57303
-
Steve Naroff authored
llvm-svn: 57299
-
Steve Naroff authored
- Modify BlockExpr to reference the BlockDecl. This is "cleanup" necessary to improve our lookup semantics for blocks (to fix <rdar://problem/6272905> clang block rewriter: parameter to function not imported into block?). Still some follow-up work to finish this (forthcoming). llvm-svn: 57298
-
Zhongxing Xu authored
This is the first step to implement a field-sensitive store model. Other things are simplified: no heap shape assumption, no parameter alias assumption, etc. llvm-svn: 57285
-
Ted Kremenek authored
A little more tweaking with StmtIterator and SizeOfAlignofExpr. A recent commit actually introduced a regression, not fixed a bug. llvm-svn: 57282
-
Ted Kremenek authored
This also removes the ugly hack needed in CFG.cpp for subclassing DeclStmt to create a DeclStmt with one Decl*. llvm-svn: 57275
-
Ted Kremenek authored
llvm-svn: 57274
-
Ted Kremenek authored
Fixed a masked bug when iterating over the child expressions of SizeOfAlignOfTypeExpr. This bug was unmasked by recent changes to StmtIterator. llvm-svn: 57273
-
Ted Kremenek authored
Serialization for OwningDeclGroupRefs now works. llvm-svn: 57272
-
Ted Kremenek authored
llvm-svn: 57271
-
- Oct 07, 2008
-
-
Argyrios Kyrtzidis authored
In ParseParenDeclarator match "D.setGroupingParens(true);" with another setGroupingParens call after the ')' is parsed. Fixes this bug: int (x)(0); // error, expected function declarator where the '(0)' initializer is llvm-svn: 57241
-
Zhongxing Xu authored
llvm-svn: 57240
-
Zhongxing Xu authored
llvm-svn: 57225
-
Ted Kremenek authored
llvm-svn: 57222
-
Argyrios Kyrtzidis authored
llvm-svn: 57220
-
Argyrios Kyrtzidis authored
Simplify handling of direct initializers by letting Sema::AddInitializerToDecl handle conversions, instead of using Sema::ActOnCXXTypeConstructExpr. Additional benefit is that diagnostics are the same for both direct-initialization and copy-initialization. In the case of "int x( expression );": -The Init expression of VarDecl 'x' will be the expression inside the parentheses. -VarDecl::hasCXXDirectInitializer for VarDecl 'x' will return true to let clients distinguish from "int x = expression ;". llvm-svn: 57219
-
Ted Kremenek authored
Remove DeclStmt::getDecl(). Now clients of DeclStmt must explicitly reason about a DeclStmt referring to a collection of Decls. llvm-svn: 57217
-
Ted Kremenek authored
Explicitly access the first Decl* referenced by a DeclStmt instead of using "getDecl()." Added a FIXME indicating that the call to RewriteObjCQualifiedInterfaceTypes() is meant to modifying the type-specifier; hopefully this will be a little more clean once DeclGroups contain type specifiers. llvm-svn: 57216
-
Ted Kremenek authored
llvm-svn: 57215
-
Ted Kremenek authored
Modified DeclGroupRef to always load/store the internal pointer value as Decl*. This hopefully will obviate any concerns with violating strict type-aliasing issues. llvm-svn: 57213
-
Ted Kremenek authored
Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when rewriting Objective-c foreach statements. llvm-svn: 57212
-
- Oct 06, 2008
-
-
Ted Kremenek authored
Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the Decl of an Objective-C foreach statement. llvm-svn: 57209
-
Ted Kremenek authored
Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the Decl of a @catch statement. llvm-svn: 57208
-
Ted Kremenek authored
When processing Objective-C foreach statements, first check to see if the statement has a DeclStmt with a single Decl. Afterwards, use DeclStmt::getSolitaryDecl() to access that Decl (thus avoiding an assertion being triggered). These changes remove an unneeded use of ScopedDecl::getNextDeclarator() and DeclStmt::getDecl(). llvm-svn: 57207
-
Ted Kremenek authored
llvm-svn: 57206
-