diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-03 18:54:17 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-03 18:54:17 +0000 |
commit | 0e05e24e9c770a446f1ad5a7f42eea89127cb297 (patch) | |
tree | 202ab1987e5df99e8b8c59ea6c08dd5bea308bac /clang/lib/AST/Decl.cpp | |
parent | 376d38753d4208369ab6e4acb4e8769d18c867f6 (diff) | |
download | bcm5719-llvm-0e05e24e9c770a446f1ad5a7f42eea89127cb297.tar.gz bcm5719-llvm-0e05e24e9c770a446f1ad5a7f42eea89127cb297.zip |
Added struct/class syntactic info for c++0x scoped enum.
llvm-svn: 120828
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r-- | clang/lib/AST/Decl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 19fbf69d370..76d67bca1a0 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -1925,16 +1925,17 @@ void TagDecl::setQualifierInfo(NestedNameSpecifier *Qualifier, EnumDecl *EnumDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, SourceLocation TKL, - EnumDecl *PrevDecl, bool IsScoped, bool IsFixed) { + EnumDecl *PrevDecl, bool IsScoped, + bool IsScopedUsingClassTag, bool IsFixed) { EnumDecl *Enum = new (C) EnumDecl(DC, L, Id, PrevDecl, TKL, - IsScoped, IsFixed); + IsScoped, IsScopedUsingClassTag, IsFixed); C.getTypeDeclType(Enum, PrevDecl); return Enum; } EnumDecl *EnumDecl::Create(ASTContext &C, EmptyShell Empty) { return new (C) EnumDecl(0, SourceLocation(), 0, 0, SourceLocation(), - false, false); + false, false, false); } void EnumDecl::completeDefinition(QualType NewType, |