1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

LibCpp: Parse inheritance

This commit is contained in:
Itamar 2022-04-03 21:55:55 +03:00 committed by Ali Mohammad Pur
parent 8cfabbcd93
commit f4cca20972
8 changed files with 43 additions and 1 deletions

View file

@ -1,6 +1,7 @@
TranslationUnit[0:0->10:1]
StructOrClassDeclaration[0:6->10:1]
A
C'tor
(
Parameter[1:6->1:10]

View file

@ -0,0 +1,14 @@
TranslationUnit[0:0->3:1]
StructOrClassDeclaration[0:6->3:1]
A
:
Name[0:17->0:32]
SomeNamespace::B
,
Name[0:43->0:43]
C
VariableDeclaration[2:4->3:0]
NamedType[2:4->2:6]
int
x

View file

@ -0,0 +1,4 @@
class A : public SomeNamespace::B, private C
{
int x;
};

View file

@ -1,6 +1,7 @@
TranslationUnit[2:0->9:0]
StructOrClassDeclaration[2:6->7:0]
A
FunctionDeclaration[4:4->4:14]
NamedType[4:4->4:7]
bool

View file

@ -1,6 +1,7 @@
TranslationUnit[1:0->12:0]
StructOrClassDeclaration[1:7->7:0]
MyStruct
VariableDeclaration[3:4->4:4]
NamedType[3:4->3:6]
int