diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-13 18:59:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-13 18:59:07 +0000 |
commit | 861a2265864982319c1a658135663ac72d676e29 (patch) | |
tree | 17bdea61c28f751b56be9e41cd35f051f8af890b /clang/lib/Parse/DeclSpec.cpp | |
parent | 0a8a4c4a0ca1ae083b0ed978ed50b2931db4a4eb (diff) | |
download | bcm5719-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/Parse/DeclSpec.cpp')
-rw-r--r-- | clang/lib/Parse/DeclSpec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/DeclSpec.cpp b/clang/lib/Parse/DeclSpec.cpp index 1cd350893f4..52c6a339543 100644 --- a/clang/lib/Parse/DeclSpec.cpp +++ b/clang/lib/Parse/DeclSpec.cpp @@ -95,6 +95,7 @@ const char *DeclSpec::getSpecifierName(DeclSpec::TST T) { case DeclSpec::TST_decimal64: return "_Decimal64"; case DeclSpec::TST_decimal128: return "_Decimal128"; case DeclSpec::TST_enum: return "enum"; + case DeclSpec::TST_class: return "class"; case DeclSpec::TST_union: return "union"; case DeclSpec::TST_struct: return "struct"; case DeclSpec::TST_typedef: return "typedef"; |