diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-24 16:26:15 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-24 16:26:15 +0000 |
commit | cb88a1f968c3d4eb451dafb421a8d9578edcbf1a (patch) | |
tree | c3a526323d5b899cbad4202ad847d83db35f15c6 /lib/Sema/SemaDecl.cpp | |
parent | 8dde14e7f43a4b29e592b3e8e576eb467ddb6c6e (diff) |
Use attributes for all the override control specifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 85df57a76c..4d8179738a 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -6386,8 +6386,10 @@ void Sema::ActOnStartCXXMemberDeclarations(Scope *S, Decl *TagD, if (!Record->getIdentifier()) return; - Record->setIsMarkedFinal(CVS.isFinalSpecified()); - Record->setIsMarkedExplicit(CVS.isExplicitSpecified()); + if (CVS.isFinalSpecified()) + Record->addAttr(new (Context) FinalAttr(CVS.getFinalLoc(), Context)); + if (CVS.isExplicitSpecified()) + Record->addAttr(new (Context) ExplicitAttr(CVS.getExplicitLoc(), Context)); // C++ [class]p2: // [...] The class-name is also inserted into the scope of the |