aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Parse/DeclSpec.h
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
commit99dc91422144483c20d1c7381bc9ac634b646b04 (patch)
tree8d0b3af85da37304735f22f9b4bd104942176906 /include/clang/Parse/DeclSpec.h
parent3b7ff0d143014ea86328e8fa9196a7537dce7bea (diff)
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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/DeclSpec.h')
-rw-r--r--include/clang/Parse/DeclSpec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h
index 4de4628950..4bd6204b04 100644
--- a/include/clang/Parse/DeclSpec.h
+++ b/include/clang/Parse/DeclSpec.h
@@ -73,6 +73,7 @@ public:
TST_enum,
TST_union,
TST_struct,
+ TST_class, // C++ class type
TST_typedef,
TST_typeofType,
TST_typeofExpr
@@ -106,7 +107,7 @@ private:
/*TSW*/unsigned TypeSpecWidth : 2;
/*TSC*/unsigned TypeSpecComplex : 2;
/*TSS*/unsigned TypeSpecSign : 2;
- /*TST*/unsigned TypeSpecType : 4;
+ /*TST*/unsigned TypeSpecType : 5;
// type-qualifiers
unsigned TypeQualifiers : 3; // Bitwise OR of TQ.