summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-13 18:59:07 +0000
committerChris Lattner <sabre@nondot.org>2008-04-13 18:59:07 +0000
commit861a2265864982319c1a658135663ac72d676e29 (patch)
tree17bdea61c28f751b56be9e41cd35f051f8af890b /clang/lib/Sema/SemaDecl.cpp
parent0a8a4c4a0ca1ae083b0ed978ed50b2931db4a4eb (diff)
downloadbcm5719-llvm-861a2265864982319c1a658135663ac72d676e29.tar.gz
bcm5719-llvm-861a2265864982319c1a658135663ac72d676e29.zip
This patch is just the easy part of the class names patch, which
allows the parsing of "class" in addition to "struct" and "union" to declare a record. So this patch allows: class C { }; class C c1; But it does not contain the lookup bits, so this won't work yet: C c2; Patch by Doug Gregor! llvm-svn: 49613
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 7a86a8e7d3d..c47a027fece 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -1299,7 +1299,7 @@ Sema::DeclTy *Sema::ActOnTag(Scope *S, unsigned TagType, TagKind TK,
default: assert(0 && "Unknown tag type!");
case DeclSpec::TST_struct: Kind = Decl::Struct; break;
case DeclSpec::TST_union: Kind = Decl::Union; break;
-//case DeclSpec::TST_class: Kind = Decl::Class; break;
+ case DeclSpec::TST_class: Kind = Decl::Class; break;
case DeclSpec::TST_enum: Kind = Decl::Enum; break;
}
OpenPOWER on IntegriCloud