- Jan 20, 2009
-
-
Douglas Gregor authored
Remove the TopLevelDecls from TranslationUnit, since all of those decls are owned by the ASTContext's TranslationUnitDecl. There are definitely some leaking Decls now that I'll tackle tomorrow llvm-svn: 62568
-
Douglas Gregor authored
that every declaration lives inside a DeclContext. Moved several things that don't have names but were ScopedDecls (and, therefore, NamedDecls) to inherit from Decl rather than NamedDecl, including ObjCImplementationDecl and LinkageSpecDecl. Now, we don't store empty DeclarationNames for these things, nor do we try to insert them into DeclContext's lookup structure. The serialization tests are temporarily disabled. We'll re-enable them once we've sorted out the remaining ownership/serialiazation issues between DeclContexts and TranslationUnion, DeclGroups, etc. llvm-svn: 62562
-
rdar://problem/6506065Ted Kremenek authored
Dead stores checker: Fix <rdar://problem/6506065> by being more selective when say that a store is dead even though the computed value is used in the enclosing expression. llvm-svn: 62552
-
- Jan 19, 2009
-
-
Steve Naroff authored
The QualType smart pointer assumes we have 3 flag bits available. llvm-svn: 62540
-
Ted Kremenek authored
llvm-svn: 62530
-
Fariborz Jahanian authored
with @synthesize being illegal. llvm-svn: 62515
-
- Jan 18, 2009
-
-
Nuno Lopes authored
llvm-svn: 62469
-
Nate Begeman authored
llvm-svn: 62458
-
Nate Begeman authored
llvm-svn: 62455
-
Nate Begeman authored
llvm-svn: 62443
-
Nate Begeman authored
llvm-svn: 62440
-
Nate Begeman authored
llvm-svn: 62438
-
- Jan 17, 2009
-
-
Douglas Gregor authored
even when we are still defining the TagDecl. This is required so that qualified name lookup of a class name within its definition works (see the new bits in test/SemaCXX/qualified-id-lookup.cpp). As part of this, move the nested redefinition checking code into ActOnTag. This gives us diagnostics earlier (when we try to perform the nested redefinition, rather than when we try to complete the 2nd definition) and removes some code duplication. llvm-svn: 62386
-
- Jan 16, 2009
-
-
Fariborz Jahanian authored
Issue diagnostics instead if types do not match. llvm-svn: 62349
-
Chris Lattner authored
llvm-svn: 62337
-
Douglas Gregor authored
analysis and AST-building for the cases where we have N != 1 arguments. For N == 1 arguments, we need to finish the C++ implementation of explicit type casts (C++ [expr.cast]). llvm-svn: 62329
-
Chris Lattner authored
llvm-svn: 62315
-
Chris Lattner authored
the "physical" location of tokens, refer to the "spelling" location. This is more concrete and useful, tokens aren't really physical objects! llvm-svn: 62309
-
Douglas Gregor authored
llvm-svn: 62306
-
Fariborz Jahanian authored
llvm-svn: 62292
-
- Jan 15, 2009
-
-
Daniel Dunbar authored
and uninitialized use options. llvm-svn: 62270
-
- Jan 14, 2009
-
-
Steve Naroff authored
llvm-svn: 62205
-
Ted Kremenek authored
FunctionDecl::setParams() now uses the allocator associated with ASTContext to allocate the array of ParmVarDecl*'s. llvm-svn: 62203
-
Fariborz Jahanian authored
objects as an objective-c object. llvm-svn: 62197
-
- Jan 13, 2009
-
-
Douglas Gregor authored
Turn off some Destroy calls that are currenly causing double-destruction of ScopedDecls. We will re-enable this later, when we have time to fully solve the ownership issue. llvm-svn: 62175
-
Fariborz Jahanian authored
llvm-svn: 62135
-
Douglas Gregor authored
type. It leads to very weird errors. llvm-svn: 62124
-
Douglas Gregor authored
llvm-svn: 62122
-
- Jan 12, 2009
-
-
Ted Kremenek authored
Fix crasher due to use-after-release: DeclContext now owns all ObjCMethodDecls, and shouldn't be released elsewhere. llvm-svn: 62113
-
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
-
Chris Lattner authored
llvm-svn: 62064
-
Chris Lattner authored
llvm-svn: 62063
-
Chris Lattner authored
llvm-svn: 62061
-
- Jan 11, 2009
-
-
Steve Naroff authored
This completes the ObjCContainerDecl AST cleanup (for now). llvm-svn: 62037
-
Steve Naroff authored
llvm-svn: 62034
-
- Jan 10, 2009
-
-
Fariborz Jahanian authored
prohibition of 'readonly' properties in an assignment. llvm-svn: 62028
-
- Jan 09, 2009
-
-
Fariborz Jahanian authored
in designated protocols lazily. llvm-svn: 62007
-
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
-