- Jan 12, 2009
-
-
Ted Kremenek authored
- Refactor a bunch of logic in the retain/release checker, making it more condense and easier to read. - Add support for "Create" methods in the DiskArbitration framework retain/release tests: - Rename CFDate.m to retain-release.m, and move test from CFString.c to retain-release.m - Add DiskArbitration framework tests cases. - Add/refine and few more retain/release GC test cases. llvm-svn: 62106
-
Daniel Dunbar authored
llvm-svn: 62101
-
Fariborz Jahanian authored
assigned to when it has user declared setter method defined in the class implementation (but no declaration in the class itself). llvm-svn: 62098
-
Douglas Gregor authored
or enum to be outside that struct, union, or enum. Fixes several regressions: <rdar://problem/6487662> <rdar://problem/6487669> <rdar://problem/6487684> <rdar://problem/6487702> PR clang/3305 PR clang/3312 There is still some work to do in Objective-C++, but this requires that each of the Objective-C entities (interfaces, implementations, etc.) to be introduced into the context stack with PushDeclContext/PopDeclContext. This will be a separate fix, later. llvm-svn: 62091
-
Anders Carlsson authored
llvm-svn: 62069
-
Anders Carlsson authored
llvm-svn: 62068
-
Chris Lattner authored
llvm-svn: 62064
-
Chris Lattner authored
llvm-svn: 62063
-
Chris Lattner authored
llvm-svn: 62061
-
Nuno Lopes authored
make ScalarExprEmitter::EmitCompare() emit the expression with the correct type instead of always zext it to an int this fixes codegen of simple exprs in C++ like 'if (x != 0)' llvm-svn: 62060
-
- Jan 11, 2009
-
-
Anders Carlsson authored
llvm-svn: 62049
-
Anders Carlsson authored
llvm-svn: 62043
-
Anders Carlsson authored
llvm-svn: 62042
-
Anders Carlsson authored
llvm-svn: 62041
-
Sebastian Redl authored
llvm-svn: 62038
-
Steve Naroff authored
This completes the ObjCContainerDecl AST cleanup (for now). llvm-svn: 62037
-
Steve Naroff authored
llvm-svn: 62034
-
Sebastian Redl authored
No performance regression in my basic test. Also fixed a type error in ActOnFinishSwitchStmt's arguments (body is a stmt). llvm-svn: 62032
-
- Jan 10, 2009
-
-
Steve Naroff authored
llvm-svn: 62031
-
Fariborz Jahanian authored
not merging protocol properties into the classes which use those protocols. With this patch, all my exceutable test pass again. llvm-svn: 62030
-
Fariborz Jahanian authored
prohibition of 'readonly' properties in an assignment. llvm-svn: 62028
-
-
Fariborz Jahanian authored
coming from a protocol. llvm-svn: 62017
-
Douglas Gregor authored
llvm-svn: 62016
-
- Jan 09, 2009
-
-
Douglas Gregor authored
that is neither a definition nor a forward declaration and where X has not yet been declared as a tag, introduce a declaration into the appropriate scope (which is likely *not* to be the current scope). The rules for the placement of the declaration differ slightly in C and C++, so we implement both and test the various corner cases. This implementation isn't 100% correct due to some lingering issues with the function prototype scope (for a function parameter list) not being the same scope as the scope of the function definition. Testcase is FIXME'd; this probably isn't an important issue. Addresses <rdar://problem/6484805>. llvm-svn: 62014
-
Sebastian Redl authored
llvm-svn: 62012
-
Ted Kremenek authored
Dead stores checker: Don't flag dead stores for self-assignments (common escape hatch for 'unused variable' warnings). llvm-svn: 62010
-
Ted Kremenek authored
- Refactor caching logic into a helper class PTHSpellingSearch - Allow "random accesses" in the spelling cache, thus catching the remaining cases where 'getSpelling' wasn't hitting the PTH cache For -Eonly, PTH, Cocoa.h: - This reduces wall time by 3% (user time unchanged, sys time reduced) - This reduces the amount of paged source by 1112K. The remaining 1112K still being paged in is from somewhere else (investigating). llvm-svn: 62009
-
Sebastian Redl authored
llvm-svn: 62008
-
Fariborz Jahanian authored
in designated protocols lazily. llvm-svn: 62007
-
Daniel Dunbar authored
llvm-svn: 62004
-
Sebastian Redl authored
llvm-svn: 62003
-
Douglas Gregor authored
of ScopedDecls (using the new ScopedDecl::NextDeclInScope pointer). Performance-wise: - It's a net win in memory utilization, since DeclContext is now one pointer smaller than it used to be (std::vectors are typically 3 pointers; we now use 2 pointers) and - Parsing Cocoa.h with -fsyntax-only (with a Release-Asserts Clang) is about 1.9% faster than before, most likely because we no longer have the memory allocations and copying associated with the std::vector. I'll re-enable serialization of DeclContexts once I've sorted out the NextDeclarator/NextDeclInScope question. llvm-svn: 62001
-
Douglas Gregor authored
llvm-svn: 61998
-
Douglas Gregor authored
filters the decls seen by decl_iterator with two criteria: the dynamic type of the declaration and a run-time predicate described by a member function. This simplifies EnumDecl, RecordDecl, and ObjCContainerDecl considerably. It has no measurable performance impact. llvm-svn: 61994
-
Daniel Dunbar authored
llvm-svn: 61993
-
Daniel Dunbar authored
crashes. llvm-svn: 61992
-
Steve Naroff authored
Add isa/cast/dyncast support for ObjCContainerDecl. Renamed classprop_iterator/begin/end to prop_iterator/begin/end (the class prefix was confusing). More simplifications to Sema::ActOnAtEnd()... Added/changed some FIXME's as a result of the above work. llvm-svn: 61988
-
-
Daniel Dunbar authored
matches llvm-gcc (?). llvm-svn: 61974
-