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/Parse/ParseDeclCXX.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/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDeclCXX.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp index 9e232cbf325..3dc6ad9b34a 100644 --- a/clang/lib/Parse/ParseDeclCXX.cpp +++ b/clang/lib/Parse/ParseDeclCXX.cpp @@ -1579,10 +1579,11 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc, // If attributes exist after class contents, parse them. llvm::OwningPtr<AttributeList> AttrList; if (Tok.is(tok::kw___attribute)) - AttrList.reset(ParseGNUAttributes()); // FIXME: where should I put them? + AttrList.reset(ParseGNUAttributes()); Actions.ActOnFinishCXXMemberSpecification(CurScope, RecordLoc, TagDecl, - LBraceLoc, RBraceLoc); + LBraceLoc, RBraceLoc, + AttrList.get()); // C++ 9.2p2: Within the class member-specification, the class is regarded as // complete within function bodies, default arguments, |