diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-07 01:09:23 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-07 01:09:23 +0000 |
commit | a7bcade22953fa390e95db0e4f7149a8532896e0 (patch) | |
tree | 1d8ec93b714f7f9181f8aaac7d59bd8e40536f55 /clang/lib/Parse/ParseDeclCXX.cpp | |
parent | 9878f9f73b949654fbbae7d09226f70fdcac5708 (diff) | |
download | bcm5719-llvm-a7bcade22953fa390e95db0e4f7149a8532896e0.tar.gz bcm5719-llvm-a7bcade22953fa390e95db0e4f7149a8532896e0.zip |
Add attributes to namespace decls.
llvm-svn: 95510
Diffstat (limited to 'clang/lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDeclCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp index 07bae1c7a4b..c24bafd6d3b 100644 --- a/clang/lib/Parse/ParseDeclCXX.cpp +++ b/clang/lib/Parse/ParseDeclCXX.cpp @@ -64,7 +64,7 @@ Parser::DeclPtrTy Parser::ParseNamespace(unsigned Context, } // Read label attributes, if present. - Action::AttrTy *AttrList = 0; + AttributeList *AttrList = 0; if (Tok.is(tok::kw___attribute)) { attrTok = Tok; @@ -91,7 +91,7 @@ Parser::DeclPtrTy Parser::ParseNamespace(unsigned Context, ParseScope NamespaceScope(this, Scope::DeclScope); DeclPtrTy NamespcDecl = - Actions.ActOnStartNamespaceDef(CurScope, IdentLoc, Ident, LBrace); + Actions.ActOnStartNamespaceDef(CurScope, IdentLoc, Ident, LBrace, AttrList); PrettyStackTraceActionsDecl CrashInfo(NamespcDecl, NamespaceLoc, Actions, PP.getSourceManager(), |