diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-03-29 14:42:08 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-03-29 14:42:08 +0000 |
| commit | c48a10d65259acee71e1476047958d9a3f7ca8f1 (patch) | |
| tree | 3efa9b1510f46afd773cb07e1e77cf1091d5307c /clang/lib/Sema/SemaDeclCXX.cpp | |
| parent | cb6207f72326e4ae1da67b4bb486c252477cbaf0 (diff) | |
| download | bcm5719-llvm-c48a10d65259acee71e1476047958d9a3f7ca8f1.tar.gz bcm5719-llvm-c48a10d65259acee71e1476047958d9a3f7ca8f1.zip | |
Support __attribute__((packed)) (along with other attributes) at the
end of a struct/class/union in C++, from Justin Bogner!
llvm-svn: 99811
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index b5dc7305228..ee16b9c4b14 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -2174,7 +2174,8 @@ void Sema::CheckCompletedCXXClass(CXXRecordDecl *Record) { void Sema::ActOnFinishCXXMemberSpecification(Scope* S, SourceLocation RLoc, DeclPtrTy TagDecl, SourceLocation LBrac, - SourceLocation RBrac) { + SourceLocation RBrac, + AttributeList *AttrList) { if (!TagDecl) return; @@ -2182,7 +2183,7 @@ void Sema::ActOnFinishCXXMemberSpecification(Scope* S, SourceLocation RLoc, ActOnFields(S, RLoc, TagDecl, (DeclPtrTy*)FieldCollector->getCurFields(), - FieldCollector->getCurNumFields(), LBrac, RBrac, 0); + FieldCollector->getCurNumFields(), LBrac, RBrac, AttrList); CheckCompletedCXXClass( dyn_cast_or_null<CXXRecordDecl>(TagDecl.getAs<Decl>())); |

