support PICodeParser "enum class"
This commit is contained in:
@@ -480,6 +480,12 @@ bool PICodeParser::parseFileContent(PIString & fc, bool main) {
|
||||
tmp = pfc.takeCWord();
|
||||
pfc.trim();
|
||||
MetaMap meta = maybeMeta(pfc);
|
||||
if (tmp == s_class || tmp == s_struct) {
|
||||
tmp = pfc.takeCWord();
|
||||
pfc.trim();
|
||||
MetaMap smeta = maybeMeta(pfc);
|
||||
meta << smeta;
|
||||
}
|
||||
parseEnum(0, cur_namespace + tmp, pfc.takeRange('{', '}'), meta);
|
||||
pfc.takeSymbol();
|
||||
continue;
|
||||
@@ -646,6 +652,12 @@ void PICodeParser::parseClass(Entity * parent, PIString & fc, bool is_namespace)
|
||||
tmp = fc.takeCWord();
|
||||
fc.trim();
|
||||
MetaMap meta = maybeMeta(fc);
|
||||
if (tmp == s_class || tmp == s_struct) {
|
||||
tmp = fc.takeCWord();
|
||||
fc.trim();
|
||||
MetaMap smeta = maybeMeta(fc);
|
||||
meta << smeta;
|
||||
}
|
||||
parseEnum(ce, cur_namespace + tmp, fc.takeRange('{', '}'), meta);
|
||||
fc.takeSymbol();
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user