Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposed the type and name of expressions #1186

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
262 changes: 132 additions & 130 deletions src/AST/Stmt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,143 +10,145 @@

namespace CppSharp.AST
{
public enum StmtClass
{
NoStmt = 0,
GCCAsmStmt = 1,
MSAsmStmt = 2,
AttributedStmt = 3,
BreakStmt = 4,
CXXCatchStmt = 5,
CXXForRangeStmt = 6,
CXXTryStmt = 7,
CapturedStmt = 8,
CompoundStmt = 9,
ContinueStmt = 10,
CoreturnStmt = 11,
CoroutineBodyStmt = 12,
DeclStmt = 13,
DoStmt = 14,
BinaryConditionalOperator = 15,
ConditionalOperator = 16,
AddrLabelExpr = 17,
ArrayInitIndexExpr = 18,
ArrayInitLoopExpr = 19,
ArraySubscriptExpr = 20,
ArrayTypeTraitExpr = 21,
AsTypeExpr = 22,
AtomicExpr = 23,
BinaryOperator = 24,
CompoundAssignOperator = 25,
BlockExpr = 26,
CXXBindTemporaryExpr = 27,
CXXBoolLiteralExpr = 28,
CXXConstructExpr = 29,
CXXTemporaryObjectExpr = 30,
CXXDefaultArgExpr = 31,
CXXDefaultInitExpr = 32,
CXXDeleteExpr = 33,
CXXDependentScopeMemberExpr = 34,
CXXFoldExpr = 35,
CXXInheritedCtorInitExpr = 36,
CXXNewExpr = 37,
CXXNoexceptExpr = 38,
CXXNullPtrLiteralExpr = 39,
CXXPseudoDestructorExpr = 40,
CXXScalarValueInitExpr = 41,
CXXStdInitializerListExpr = 42,
CXXThisExpr = 43,
CXXThrowExpr = 44,
CXXTypeidExpr = 45,
CXXUnresolvedConstructExpr = 46,
CXXUuidofExpr = 47,
CallExpr = 48,
CUDAKernelCallExpr = 49,
CXXMemberCallExpr = 50,
CXXOperatorCallExpr = 51,
UserDefinedLiteral = 52,
CStyleCastExpr = 53,
CXXFunctionalCastExpr = 54,
CXXConstCastExpr = 55,
CXXDynamicCastExpr = 56,
CXXReinterpretCastExpr = 57,
CXXStaticCastExpr = 58,
ImplicitCastExpr = 60,
CharacterLiteral = 61,
ChooseExpr = 62,
CompoundLiteralExpr = 63,
ConvertVectorExpr = 64,
CoawaitExpr = 65,
CoyieldExpr = 66,
DeclRefExpr = 67,
DependentCoawaitExpr = 68,
DependentScopeDeclRefExpr = 69,
DesignatedInitExpr = 70,
DesignatedInitUpdateExpr = 71,
ExpressionTraitExpr = 72,
ExtVectorElementExpr = 73,
FixedPointLiteral = 74,
FloatingLiteral = 75,
ConstantExpr = 76,
ExprWithCleanups = 77,
FunctionParmPackExpr = 78,
GNUNullExpr = 79,
GenericSelectionExpr = 80,
ImaginaryLiteral = 81,
ImplicitValueInitExpr = 82,
InitListExpr = 83,
IntegerLiteral = 84,
LambdaExpr = 85,
MSPropertyRefExpr = 86,
MSPropertySubscriptExpr = 87,
MaterializeTemporaryExpr = 88,
MemberExpr = 89,
NoInitExpr = 90,
OffsetOfExpr = 107,
OpaqueValueExpr = 108,
UnresolvedLookupExpr = 109,
UnresolvedMemberExpr = 110,
PackExpansionExpr = 111,
ParenExpr = 112,
ParenListExpr = 113,
PredefinedExpr = 114,
PseudoObjectExpr = 115,
ShuffleVectorExpr = 116,
SizeOfPackExpr = 117,
StmtExpr = 118,
StringLiteral = 119,
SubstNonTypeTemplateParmExpr = 120,
SubstNonTypeTemplateParmPackExpr = 121,
TypeTraitExpr = 122,
TypoExpr = 123,
UnaryExprOrTypeTraitExpr = 124,
UnaryOperator = 125,
VAArgExpr = 126,
ForStmt = 127,
GotoStmt = 128,
IfStmt = 129,
IndirectGotoStmt = 130,
LabelStmt = 131,
MSDependentExistsStmt = 132,
NullStmt = 133,
ReturnStmt = 188,
SEHExceptStmt = 189,
SEHFinallyStmt = 190,
SEHLeaveStmt = 191,
SEHTryStmt = 192,
CaseStmt = 193,
DefaultStmt = 194,
SwitchStmt = 195,
WhileStmt = 196,
}

public partial class Stmt
{
public enum StmtClass
{
NoStmt = 0,
GCCAsmStmt = 1,
MSAsmStmt = 2,
AttributedStmt = 3,
BreakStmt = 4,
CXXCatchStmt = 5,
CXXForRangeStmt = 6,
CXXTryStmt = 7,
CapturedStmt = 8,
CompoundStmt = 9,
ContinueStmt = 10,
CoreturnStmt = 11,
CoroutineBodyStmt = 12,
DeclStmt = 13,
DoStmt = 14,
BinaryConditionalOperator = 15,
ConditionalOperator = 16,
AddrLabelExpr = 17,
ArrayInitIndexExpr = 18,
ArrayInitLoopExpr = 19,
ArraySubscriptExpr = 20,
ArrayTypeTraitExpr = 21,
AsTypeExpr = 22,
AtomicExpr = 23,
BinaryOperator = 24,
CompoundAssignOperator = 25,
BlockExpr = 26,
CXXBindTemporaryExpr = 27,
CXXBoolLiteralExpr = 28,
CXXConstructExpr = 29,
CXXTemporaryObjectExpr = 30,
CXXDefaultArgExpr = 31,
CXXDefaultInitExpr = 32,
CXXDeleteExpr = 33,
CXXDependentScopeMemberExpr = 34,
CXXFoldExpr = 35,
CXXInheritedCtorInitExpr = 36,
CXXNewExpr = 37,
CXXNoexceptExpr = 38,
CXXNullPtrLiteralExpr = 39,
CXXPseudoDestructorExpr = 40,
CXXScalarValueInitExpr = 41,
CXXStdInitializerListExpr = 42,
CXXThisExpr = 43,
CXXThrowExpr = 44,
CXXTypeidExpr = 45,
CXXUnresolvedConstructExpr = 46,
CXXUuidofExpr = 47,
CallExpr = 48,
CUDAKernelCallExpr = 49,
CXXMemberCallExpr = 50,
CXXOperatorCallExpr = 51,
UserDefinedLiteral = 52,
CStyleCastExpr = 53,
CXXFunctionalCastExpr = 54,
CXXConstCastExpr = 55,
CXXDynamicCastExpr = 56,
CXXReinterpretCastExpr = 57,
CXXStaticCastExpr = 58,
ImplicitCastExpr = 60,
CharacterLiteral = 61,
ChooseExpr = 62,
CompoundLiteralExpr = 63,
ConvertVectorExpr = 64,
CoawaitExpr = 65,
CoyieldExpr = 66,
DeclRefExpr = 67,
DependentCoawaitExpr = 68,
DependentScopeDeclRefExpr = 69,
DesignatedInitExpr = 70,
DesignatedInitUpdateExpr = 71,
ExpressionTraitExpr = 72,
ExtVectorElementExpr = 73,
FixedPointLiteral = 74,
FloatingLiteral = 75,
ConstantExpr = 76,
ExprWithCleanups = 77,
FunctionParmPackExpr = 78,
GNUNullExpr = 79,
GenericSelectionExpr = 80,
ImaginaryLiteral = 81,
ImplicitValueInitExpr = 82,
InitListExpr = 83,
IntegerLiteral = 84,
LambdaExpr = 85,
MSPropertyRefExpr = 86,
MSPropertySubscriptExpr = 87,
MaterializeTemporaryExpr = 88,
MemberExpr = 89,
NoInitExpr = 90,
OffsetOfExpr = 107,
OpaqueValueExpr = 108,
UnresolvedLookupExpr = 109,
UnresolvedMemberExpr = 110,
PackExpansionExpr = 111,
ParenExpr = 112,
ParenListExpr = 113,
PredefinedExpr = 114,
PseudoObjectExpr = 115,
ShuffleVectorExpr = 116,
SizeOfPackExpr = 117,
StmtExpr = 118,
StringLiteral = 119,
SubstNonTypeTemplateParmExpr = 120,
SubstNonTypeTemplateParmPackExpr = 121,
TypeTraitExpr = 122,
TypoExpr = 123,
UnaryExprOrTypeTraitExpr = 124,
UnaryOperator = 125,
VAArgExpr = 126,
ForStmt = 127,
GotoStmt = 128,
IfStmt = 129,
IndirectGotoStmt = 130,
LabelStmt = 131,
MSDependentExistsStmt = 132,
NullStmt = 133,
ReturnStmt = 188,
SEHExceptStmt = 189,
SEHFinallyStmt = 190,
SEHLeaveStmt = 191,
SEHTryStmt = 192,
CaseStmt = 193,
DefaultStmt = 194,
SwitchStmt = 195,
WhileStmt = 196,
}

public Stmt()
{
}

public Stmt.StmtClass stmtClass { get; set; }
public SourceRange SourceRange { get; set; }
public SourceLocation BeginLoc { get; set; }
public SourceLocation EndLoc { get; set; }
public Stmt StripLabelLikeStatements { get; set; }
}
Expand Down
Loading