summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/AST.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-06-20 21:51:53 +0300
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-06-29 00:07:19 +0430
commitc1ee0c1685dccdc648aecbae0ca2c8892ee84de5 (patch)
tree01a62a2014eb0f73e69b7c64608d690839a5d750 /Userland/Libraries/LibCpp/AST.h
parent5ee753ffaab20829082aeab517c5ae4d7033adcb (diff)
downloadserenity-c1ee0c1685dccdc648aecbae0ca2c8892ee84de5.zip
LibCpp: Support parsing enum classes
Diffstat (limited to 'Userland/Libraries/LibCpp/AST.h')
-rw-r--r--Userland/Libraries/LibCpp/AST.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCpp/AST.h b/Userland/Libraries/LibCpp/AST.h
index d0713808a9..c882cda55b 100644
--- a/Userland/Libraries/LibCpp/AST.h
+++ b/Userland/Libraries/LibCpp/AST.h
@@ -505,6 +505,12 @@ public:
{
}
+ enum class Type {
+ RegularEnum,
+ EnumClass
+ };
+
+ Type type { Type::RegularEnum };
Vector<StringView> m_entries;
};