- Jul 02, 2010
-
-
Argyrios Kyrtzidis authored
llvm-svn: 107478
-
- Jun 18, 2010
-
-
Douglas Gregor authored
attribute as part of the calculation. Sema::MarkDeclReferenced(), and a few other places, want only to consider the "used" bit to determine, e.g, whether to perform template instantiation. Fixes a linkage issue with Boost.Serialization. llvm-svn: 106252
-
- Jun 12, 2010
-
-
Argyrios Kyrtzidis authored
Fix PCH issue. Attributes of a declaration were truncated to just one when the decl was read from a PCH file. llvm-svn: 105852
-
- Jun 05, 2010
-
-
Abramo Bagnara authored
llvm-svn: 105525
-
- Jun 01, 2010
-
-
John McCall authored
bring in the entire lookup table at once. Also, give ExternalSemaSource's vtable a home. This is important because otherwise any reference to it will cause RTTI to be emitted, and since clang is compiled with -fno-rtti, that RTTI will contain unresolved references (to ExternalASTSource's RTTI). So this change makes it possible to subclass ExternalSemaSource from projects compiled with RTTI, as long as the subclass's home is compiled with -fno-rtti. llvm-svn: 105268
-
- May 30, 2010
-
-
Alexis Hunt authored
The macros required for DeclNodes use have changed to match the use of StmtNodes. The FooFirst enumerator constants have been named firstFoo to match usage elsewhere. llvm-svn: 105165
-
- May 11, 2010
-
-
Douglas Gregor authored
llvm-svn: 103458
-
- Apr 23, 2010
-
-
John McCall authored
two bugfixes which fix selfhost and (hopefully) the nightly tests. llvm-svn: 102198
-
Daniel Dunbar authored
Revert "C++ doesn't really use "namespaces" for different kinds of names the same", which seems to break most C++ nightly test apps. llvm-svn: 102174
-
John McCall authored
way that C does. Among other differences, elaborated type specifiers are defined to skip "non-types", which, as you might imagine, does not include typedefs. Rework our use of IDNS masks to capture the semantics of different kinds of declarations better, and remove most current lookup filters. Removing the last remaining filter is more complicated and will happen in a separate patch. Fixes PR 6885 as well some spectrum of unfiled bugs. llvm-svn: 102164
-
Douglas Gregor authored
llvm-svn: 102145
-
Douglas Gregor authored
aren't and never were used. There's a gap in the bit pattern for IDNS now, but I'm sure *someone* will fill it. llvm-svn: 102143
-
- Mar 31, 2010
-
-
Douglas Gregor authored
llvm-svn: 100027
-
- Mar 30, 2010
-
-
Douglas Gregor authored
dyn_cast) invocations for C++ and Objective-C types, declarations, expressions, and statements. The statistics will be printed when -print-stats is provided to Clang -cc1, with results such as: 277073 clang - Number of checks for C++ declaration nodes 13311 clang - Number of checks for C++ expression nodes 18 clang - Number of checks for C++ statement nodes 174182 clang - Number of checks for C++ type nodes 92300 clang - Number of checks for Objective-C declaration nodes 9800 clang - Number of checks for Objective-C expression nodes 7 clang - Number of checks for Objective-C statement nodes 65733 clang - Number of checks for Objective-C type nodes The statistics are only gathered when NDEBUG is not defined, since they introduce potentially-expensive operations into very low-level routines (isa). llvm-svn: 99912
-
Douglas Gregor authored
storage for that partial diagnostic via the ASTContext's BumpPtrAllocator rather than using up slots in the ASTContext's cache. Now that we do this, we don't have to worry about destroying dependent diagnostics when destroying a DependentStoredDeclsMap. llvm-svn: 99854
-
Douglas Gregor authored
cache of PartialDiagnostic::Storage objects into an allocator within the ASTContext. This eliminates a significant amount of malloc traffic, for a 10% performance improvement in -fsyntax-only wall-clock time with 403.gcc's combine.c. Also, eliminate the RequireNonAbstractType hack I put in earlier, which was but a symptom of this larger problem. Fixes <rdar://problem/7806091>. llvm-svn: 99849
-
- Mar 24, 2010
-
-
John McCall authored
templates. So delay access-control diagnostics when (for example) the target of a friend declaration is a specific specialization of a template. I was surprised to find that this was required for an access-controlled selfhost. llvm-svn: 99383
-
- Mar 11, 2010
-
-
John McCall authored
I'm expecting this portion of the AST to grow and change, and I'd like to be able to do that with minimal recompilation. If this proves unnecessary when access control is fully-implemented, I'll fold the classes back into DeclCXX.h. llvm-svn: 98249
-
- Mar 10, 2010
-
-
John McCall authored
injected class name of a class template or class template partial specialization. This is a non-canonical type; the canonical type is still a template specialization type. This becomes the TypeForDecl of the pattern declaration, which cleans up some amount of code (and complicates some other parts, but whatever). Fixes PR6326 and probably a few others, primarily by re-establishing a few invariants about TypeLoc sizes. llvm-svn: 98134
-
- Mar 05, 2010
-
-
Douglas Gregor authored
trigger access control or one of the many assertions we have for valid access specifiers. llvm-svn: 97767
-
- Feb 22, 2010
-
-
Douglas Gregor authored
declaration. This is the trivial part of PR6365. llvm-svn: 96792
-
- Feb 17, 2010
-
-
Tanya Lattner authored
llvm-svn: 96444
-
- Feb 11, 2010
-
-
Ted Kremenek authored
storing the set of StoredDeclsMaps in an internal vector of void*. This isn't an ideal solution, but for the time being this fixes a major memory leak with these DenseMaps not being freed. Fixes: <rdar://problem/7634755> llvm-svn: 95861
-
- Jan 22, 2010
-
-
John McCall authored
translation unit. This is temporary for function and block parameters; template parameters can just stay this way, since Templates aren't DeclContexts. This gives us the nice property that everything created in a record DC should have access in C++. llvm-svn: 94122
-
- Jan 20, 2010
-
-
John McCall authored
Triggers lots of assertions about missing access information; fix them. Will actually consume this information soon. llvm-svn: 94038
-
- Jan 16, 2010
-
-
Douglas Gregor authored
to merge the local instantiation scope with the outer local instantiation scope, so that we can instantiate declarations from the function owning the local class. Fixes an assert while instantiating Boost.MPL's BOOST_MPL_ASSERT_MSG. llvm-svn: 93651
-
- Dec 11, 2009
-
-
Fariborz Jahanian authored
objective-c++ mode and also removed dead-code in this area. (fixes radar 7456710). llvm-svn: 91081
-
- Dec 10, 2009
-
-
John McCall authored
are a couple of O(n^2) operations in this, some analogous to the usual O(n^2) redeclaration problem and some not. In particular, retroactively removing shadow declarations when they're hidden by later decls is pretty unfortunate. I'm not yet convinced it's worse than the alternative, though. llvm-svn: 91045
-
- Dec 08, 2009
-
-
Eli Friedman authored
DeclContext, so they don't completely disappear from the AST. I don't particularly like this fix, but I don't see any obviously better way to deal with it, and I think it's pretty clearly an improvement; comments welcome. llvm-svn: 90835
-
- Dec 02, 2009
-
-
John McCall authored
llvm-svn: 90313
-
- Dec 01, 2009
-
-
Ted Kremenek authored
ASTContext instead of malloc. Besides reducing malloc traffic, this also removes a source of memory leaks when using a BumpPtrAllocator for the allocator of ASTContext. There are still leaks when using MallocAllocator because Decl::Destroy() isn't fully finished. Fixes: <rdar://problem/7431556> llvm-svn: 90174
-
- Nov 29, 2009
-
-
Kovarththanan Rajaratnam authored
llvm-svn: 90078
-
- Nov 21, 2009
-
-
Daniel Dunbar authored
llvm-svn: 89546
-
- Nov 18, 2009
-
-
John McCall authored
two classes, one for typenames and one for values; this seems to have some support from Doug if not necessarily from the extremely-vague-on-this-point standard. Track the location of the 'typename' keyword in a using-typename decl. Make a new lookup result for unresolved values and deal with it in most places. llvm-svn: 89184
-
Ted Kremenek authored
llvm-svn: 89170
-
- Nov 17, 2009
-
-
Ted Kremenek authored
current DeclContext. These "imaginary" declarations pose issues for clients searching DeclContext for actual declarations. Instead, register them for name lookup, and add the ObjCInterfaceDecl later to the DeclContext when we hit an actual @interface declaration. This also fixes a bug where the invariant that the Decls in a DeclContext are sorted in order of their appearance is no longer violated. What could happen is that an @class causes an ObjCInterfaceDecl to get added first to the DeclContext, then the ObjCClassDecl itself is added, and then later the SourceLocation of the ObjCInterfaceDecl is updated with the correct location (which is later in the file). This breaks an assumed invariant in ResolveLocation.cpp (and possibly other clients). llvm-svn: 89160
-
John McCall authored
decl, create shadow declarations and put them in scope like normal. Work in progress. llvm-svn: 89048
-
- Oct 23, 2009
-
-
John McCall authored
in the DeclaratorInfo, if one is present. Preserve source information through template instantiation. This is made more complicated by the possibility that ParmVarDecls don't have DIs, which is possibly worth fixing in the future. Also preserve source information for function parameters in ObjC method declarations. llvm-svn: 84971
-
- Oct 01, 2009
-
-
John McCall authored
apparently because using directives aren't quite working correctly. llvm-svn: 83184
-
- Sep 17, 2009
-
-
John McCall authored
llvm-svn: 82088
-