summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclFriend.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] Use 'nullptr'. AST edition.Craig Topper2014-05-121-1/+1
| | | | llvm-svn: 208517
* Add class-specific operator new to Decl hierarchy. This guarantees that DeclsRichard Smith2013-11-221-9/+5
| | | | | | | | | | | | | can't accidentally be allocated the wrong way (missing prefix data for decls from AST files, for instance) and simplifies the CreateDeserialized functions a little. An extra DeclContext* parameter to the not-from-AST-file operator new allows us to ensure that we don't accidentally call the wrong one when deserializing (when we don't have a DeclContext), allows some extra checks, and prepares for some planned modules-related changes to Decl allocation. No functionality change intended. llvm-svn: 195426
* Lazily deserialize the "first' friend declaration when deserializing a classRichard Smith2013-06-261-0/+5
| | | | | | | declaration. This PCH a little lazier, and breaks a deserialization cycle that causes crashes with modules enabled. llvm-svn: 184904
* Added outer template parameter lists to friend type AST nodes.Enea Zaffanella2013-01-311-5/+16
| | | | llvm-svn: 174050
* Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h.Benjamin Kramer2012-07-041-0/+6
| | | | llvm-svn: 159723
* When creating declarations that are deserialized from an module file,Douglas Gregor2012-01-051-2/+3
| | | | | | | go through a central allocation routine Decl::AllocateDeserializedDecl(). No actual functionality change (yet). llvm-svn: 147614
* Unweaken vtables as per ↵David Blaikie2011-12-201-0/+2
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146959
* Support C++ friend declarations for PCH.Argyrios Kyrtzidis2010-06-291-0/+4
| | | | | | | | | | | | This commit 'introduces' a slightly different way to restore the state of the AST object. It makes PCHDeclReader/PCHDeclWriter friends and gives them access to the private members of the object. The rationale is to avoid using/modifying the AST interfaces for PCH read/write so that to: -Avoid complications with objects that have side-effects during creation or when using some setters. -Not 'pollute' the AST interface with methods only used by the PCH reader/writer -Allow AST objects to be read-only. llvm-svn: 107219
* Implement basic support for friend types and functions in non-dependentJohn McCall2010-03-121-1/+3
| | | | | | contexts. llvm-svn: 98321
* Split C++ friend declarations into their own header/implementation file.John McCall2010-03-111-0/+39
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
OpenPOWER on IntegriCloud