diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-22 18:25:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-22 18:25:24 +0000 |
commit | 1f2023ab8b35e0f665eb6c0f11dd6d9b9bca12b8 (patch) | |
tree | 3a574978b5e87d08d62da2dd674e1e73b7da6c8b /lib/Sema/Sema.h | |
parent | 5350066e7b19d17a5b137caa6c039ab9626dbfa5 (diff) |
"This patch implements the restrictions on union members detailed in
[class.union]p1", from John McCall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r-- | lib/Sema/Sema.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 7f652f2c1a..7daf3f90a8 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -541,6 +541,14 @@ public: SourceLocation TSSL, AccessSpecifier AS, NamedDecl *PrevDecl, Declarator *D = 0); + + enum CXXSpecialMember { + CXXDefaultConstructor = 0, + CXXCopyConstructor = 1, + CXXCopyAssignment = 2, + CXXDestructor = 3 + }; + void DiagnoseNontrivial(const RecordType* Record, CXXSpecialMember mem); virtual DeclPtrTy ActOnIvar(Scope *S, SourceLocation DeclStart, DeclPtrTy IntfDecl, |