- Jun 04, 2008
-
-
Ted Kremenek authored
Moved LangOptions from TranslationUnit to ASTContext. This induced a variety of cleanups in some ASTConsumers. llvm-svn: 51943
-
Steve Naroff authored
llvm-svn: 51939
-
Argyrios Kyrtzidis authored
llvm-svn: 51936
-
Steve Naroff authored
Fixes <rdar://problem/5984338> clang on xcode: property implementation must have its declaration in interface 'PBXOpenQuicklyModule' llvm-svn: 51925
-
Steve Naroff authored
llvm-svn: 51920
-
- Jun 03, 2008
-
-
Eli Friedman authored
moves the check for the invalid construct to a point where it doesn't affect other uses of isIntegerConstantExpr, and we can warn properly when the extension is used. This makes it a bit more complicated, but it's a lot cleaner. Steve, please tell me if this check is sufficient to handle the relevant system header. I know it's enough to handle the testcase, but I don't know what exactly the original looks like. llvm-svn: 51918
-
Steve Naroff authored
Change Expr::isIntegerConstantExpr() to allow for pointer types (for GCC compatibility). Note FIXME. Fix <rdar://problem/5977870> clang on xcode: error: arrays with static storage duration must have constant integer length llvm-svn: 51907
-
-
- Jun 02, 2008
-
-
Nuno Lopes authored
this plugs the leak of attributes and also fixes a crash in the test llvm-svn: 51862
-
- May 31, 2008
-
-
Ted Kremenek authored
TranslationUnit object instead of an ASTContext. By default it calls Initialize(ASTConstext& Context) (to match with the current interface used by most ASTConsumers). Modified the ObjC-Rewriter to use InitializeTU, and to tell the TranslationUnit to not free its Decls. This is a workaround for: <rdar://problem/5966749> llvm-svn: 51825
-
Steve Naroff authored
Teach Expr::isLvalue() about ObjC properties. For now, all properties are writable. Added a FIXME for another day. llvm-svn: 51800
-
- May 30, 2008
-
-
Ted Kremenek authored
Fix some strict-aliasing warnings by using Stmt* instead of Expr* in VariableArrayType, EnumConstantDecl, and VarDecl. llvm-svn: 51772
-
Eli Friedman authored
and union codepaths and fixes some minor bugs. I'm reasonably confident this is accurate, at least for X86. I'll correct any bugs as I find them; I haven't found any for a while, though. llvm-svn: 51762
-
Steve Naroff authored
While it is far from complete, it does fix the following <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union llvm-svn: 51719
-
- May 29, 2008
-
-
Ted Kremenek authored
llvm-svn: 51707
-
Steve Naroff authored
- #include ExprObjC.h in many places llvm-svn: 51703
-
- May 27, 2008
-
-
Eli Friedman authored
of extra warnings in the Python source. llvm-svn: 51594
-
Eli Friedman authored
encountered. Mixing up the decls is unintuitive, and confuses the AST destruction code. Fixes PR2360. Note that there is a need to look up the characteristics and declarations of a function associated with a particular name or decl, but the original swapping code doesn't solve it properly. http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-May/001644.html is one suggestion for how to fix that. llvm-svn: 51584
-
Eli Friedman authored
llvm-svn: 51575
-
- May 25, 2008
-
-
Eli Friedman authored
(originally reported in PR1682). llvm-svn: 51551
-
- May 24, 2008
-
-
Ted Kremenek authored
llvm-svn: 51544
-
Steve Naroff authored
llvm-svn: 51508
-
- May 23, 2008
-
-
Steve Naroff authored
llvm-svn: 51463
-
- May 22, 2008
-
-
Dan Gohman authored
lib/CodeGen/CGExpr.cpp and to change include/clang/AST/Attr.h to use its own enum for visibility types instead of using llvm::GlobalValue::VisibilityTypes. These changes eliminate dependencies in the AST library on LLVM's VMCore library. llvm-svn: 51398
-
- May 21, 2008
-
-
Dan Gohman authored
llvm-svn: 51392
-
Ted Kremenek authored
the destruction of Decls and Stmts. llvm-svn: 51385
-
Ted Kremenek authored
llvm-svn: 51381
-
Steve Naroff authored
llvm-svn: 51380
-
Ted Kremenek authored
llvm-svn: 51379
-
Eli Friedman authored
ASTs. This is a hack, but I haven't considered how we really want to do this. llvm-svn: 51364
-
Eli Friedman authored
we now iterate over the whole AST when we destroy it. llvm-svn: 51363
-
Eli Friedman authored
(specifically, for TranslationUnits created from SerializationTest.cpp). Fixes a double-free bug in the serialization tests. llvm-svn: 51362
-
- May 20, 2008
-
-
Eli Friedman authored
llvm-svn: 51322
-
Ted Kremenek authored
Reclaim memory from chains of ScopedDecls, and reclaim memory for the initializers of EnumConstantDecls. llvm-svn: 51299
-
Ted Kremenek authored
llvm-svn: 51298
-
Ted Kremenek authored
Fixed a bug in ParmVarDecl::param_end(): Handle the case where there are no ParmVarDecls for a FunctionDecl, but its function prototype has formal arguments (can happen with typedefs). llvm-svn: 51297
-
Ted Kremenek authored
llvm-svn: 51294
-
Ted Kremenek authored
llvm-svn: 51288
-
Ted Kremenek authored
1) Sema::ParseAST now constructs a TranslationUnit object to own the top-level Decls, which releases the top-level Decls upon exiting ParseAST. 2) Bug fix: TranslationUnit::~TranslationUnit handles the case where a Decl is added more than once as a top-level Decl. 3) Decl::Destroy is now a virtual method, obviating the need for a special dispatch based on DeclKind. 3) FunctionDecl::Destroy now releases its Body using its Destroy method. 4) Added Stmt::Destroy and Stmt::DestroyChildren, which recursively delete the child ASTs of a Stmt and call their dstors. We may need to special case dstor/Destroy methods for particular Stmt subclasses that own other dynamically allocated objects besides AST nodes. 5) REGRESSION: We temporarily are not deallocating attributes; a FIXME is provided. llvm-svn: 51286
-
Ted Kremenek authored
Added Stmt::DestroyChildren, which will be used by the dstors of the subclasses of Stmt to recursively delete their child AST nodes. llvm-svn: 51278
-