aboutsummaryrefslogtreecommitdiffstats
path: root/test/main.ast
blob: d03244ffedc5d49b99ae11ecf6d1bc4da1e897f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
TranslationUnitDecl 0x7e63838 <<invalid sloc>> <invalid sloc>
|-TypedefDecl 0x7e64110 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
| `-BuiltinType 0x7e63dd0 '__int128'
|-TypedefDecl 0x7e64180 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
| `-BuiltinType 0x7e63df0 'unsigned __int128'
|-TypedefDecl 0x7e644f8 <<invalid sloc>> <invalid sloc> implicit __NSConstantString '__NSConstantString_tag'
| `-RecordType 0x7e64270 '__NSConstantString_tag'
|   `-CXXRecord 0x7e641d8 '__NSConstantString_tag'
|-TypedefDecl 0x7e64590 <<invalid sloc>> <invalid sloc> implicit __builtin_ms_va_list 'char *'
| `-PointerType 0x7e64550 'char *'
|   `-BuiltinType 0x7e638d0 'char'
|-TypedefDecl 0x7ea1338 <<invalid sloc>> <invalid sloc> implicit __builtin_va_list '__va_list_tag [1]'
| `-ConstantArrayType 0x7ea12e0 '__va_list_tag [1]' 1 
|   `-RecordType 0x7e64680 '__va_list_tag'
|     `-CXXRecord 0x7e645e8 '__va_list_tag'
|-CXXRecordDecl 0x7ea1390 <main.cpp:2:1, line:12:1> line:2:7 referenced class myClass definition
| |-DefinitionData standard_layout has_user_declared_ctor
| | |-DefaultConstructor exists trivial
| | |-CopyConstructor simple trivial has_const_param implicit_has_const_param
| | |-MoveConstructor
| | |-CopyAssignment trivial has_const_param needs_implicit implicit_has_const_param
| | |-MoveAssignment
| | `-Destructor non_trivial user_declared
| |-CXXRecordDecl 0x7ea14a8 <col:1, col:7> col:7 implicit referenced class myClass
| |-AccessSpecDecl 0x7ea1538 <line:3:3, col:9> col:3 public
| |-CXXConstructorDecl 0x7ea15e8 <line:4:5, col:23> col:5 used myClass 'void () noexcept' default trivial
| | `-CompoundStmt 0x7ed1488 <col:23>
| |-CXXDestructorDecl 0x7ea16d8 <line:5:5, col:17> col:5 used ~myClass 'void () noexcept'
| | `-CompoundStmt 0x7ea1b88 <col:16, col:17>
| |-CXXMethodDecl 0x7ea1858 <line:7:5, col:27> col:10 used myMehtod1 'void ()'
| | `-CompoundStmt 0x7ea1b98 <col:26, col:27>
| |-CXXMethodDecl 0x7ea1990 <line:8:5, col:27> col:10 used myMehtod2 'void ()'
| | `-CompoundStmt 0x7ea1ba8 <col:26, col:27>
| |-AccessSpecDecl 0x7ea1a30 <line:9:3, col:10> col:3 private
| |-FieldDecl 0x7ea1a70 <line:10:5, col:9> col:9 a 'int'
| |-FieldDecl 0x7ea1ad8 <line:11:5, col:11> col:11 b 'float'
| `-CXXConstructorDecl 0x7ed1308 <line:2:7> col:7 implicit constexpr myClass 'void (const myClass &)' inline default trivial noexcept-unevaluated 0x7ed1308
|   `-ParmVarDecl 0x7ed1418 <col:7> col:7 'const myClass &'
|-CXXRecordDecl 0x7ea1bb8 <line:14:1, line:17:1> line:14:8 struct myStruct definition
| |-DefinitionData empty standard_layout has_user_declared_ctor can_const_default_init
| | |-DefaultConstructor exists non_trivial user_provided defaulted_is_constexpr
| | |-CopyConstructor simple trivial has_const_param needs_implicit implicit_has_const_param
| | |-MoveConstructor
| | |-CopyAssignment trivial has_const_param needs_implicit implicit_has_const_param
| | |-MoveAssignment
| | `-Destructor non_trivial user_declared
| |-CXXRecordDecl 0x7ea1cd8 <col:1, col:8> col:8 implicit referenced struct myStruct
| |-CXXConstructorDecl 0x7ea1dd0 <line:15:3, col:12> col:3 myStruct 'void ()'
| `-CXXDestructorDecl 0x7ea1ec0 <line:16:3, col:13> col:3 ~myStruct 'void ()' noexcept-unevaluated 0x7ea1ec0
|-CXXRecordDecl 0x7ea1fa0 <line:19:1, line:22:1> line:19:7 union myUnion definition
| |-DefinitionData pass_in_registers aggregate standard_layout trivially_copyable pod trivial literal has_variant_members
| | |-DefaultConstructor exists trivial needs_implicit
| | |-CopyConstructor simple trivial has_const_param needs_implicit implicit_has_const_param
| | |-MoveConstructor exists simple trivial needs_implicit
| | |-CopyAssignment trivial has_const_param needs_implicit implicit_has_const_param
| | |-MoveAssignment exists simple trivial needs_implicit
| | `-Destructor simple irrelevant trivial needs_implicit
| |-CXXRecordDecl 0x7ea20b8 <col:1, col:7> col:7 implicit union myUnion
| |-FieldDecl 0x7ea2160 <line:20:3, col:7> col:7 a 'int'
| `-FieldDecl 0x7ea21c8 <line:21:3, col:10> col:10 b 'double'
|-FunctionDecl 0x7ed0dc8 <line:24:1, col:21> col:6 myFunc1 'void ()'
| `-CompoundStmt 0x7ed0eb0 <col:20, col:21>
|-FunctionDecl 0x7ed0f58 <line:25:1, col:21> col:6 myFunc2 'void ()'
| `-CompoundStmt 0x7ed0ff8 <col:20, col:21>
`-FunctionDecl 0x7ed11b0 <line:27:1, line:36:1> line:27:5 main 'int (int, char **)'
  |-ParmVarDecl 0x7ed1020 <col:11, col:15> col:15 argc 'int'
  |-ParmVarDecl 0x7ed10d0 <col:21, col:28> col:28 argv 'char **'
  `-CompoundStmt 0x7ed1918 <col:34, line:36:1>
    |-DeclStmt 0x7ed14c0 <line:28:3, col:13>
    | `-VarDecl 0x7ed1270 <col:3, col:11> col:11 used mc 'myClass' callinit destroyed
    |   `-CXXConstructExpr 0x7ed1498 <col:11> 'myClass' 'void () noexcept'
    |-CXXMemberCallExpr 0x7ed1528 <line:29:3, col:16> 'void'
    | `-MemberExpr 0x7ed14f8 <col:3, col:6> '<bound member function type>' .myMehtod1 0x7ea1858
    |   `-DeclRefExpr 0x7ed14d8 <col:3> 'myClass' lvalue Var 0x7ed1270 'mc' 'myClass'
    |-CXXMemberCallExpr 0x7ed1598 <line:30:3, col:16> 'void'
    | `-MemberExpr 0x7ed1568 <col:3, col:6> '<bound member function type>' .myMehtod2 0x7ea1990
    |   `-DeclRefExpr 0x7ed1548 <col:3> 'myClass' lvalue Var 0x7ed1270 'mc' 'myClass'
    |-DeclStmt 0x7ed1638 <line:31:3, col:8>
    | `-VarDecl 0x7ed15d0 <col:3, col:7> col:7 used a 'int'
    |-DeclStmt 0x7ed16d0 <line:32:3, col:10>
    | `-VarDecl 0x7ed1668 <col:3, col:9> col:9 b 'float'
    |-DeclStmt 0x7ed1800 <line:33:3, col:10>
    | |-VarDecl 0x7ed1700 <col:3, col:7> col:7 used c 'int'
    | `-VarDecl 0x7ed1780 <col:3, col:9> col:9 used d 'int'
    |-BinaryOperator 0x7ed18c8 <line:34:3, col:9> 'int' lvalue '='
    | |-DeclRefExpr 0x7ed1818 <col:3> 'int' lvalue Var 0x7ed15d0 'a' 'int'
    | `-BinaryOperator 0x7ed18a8 <col:7, col:9> 'int' '+'
    |   |-ImplicitCastExpr 0x7ed1878 <col:7> 'int' <LValueToRValue>
    |   | `-DeclRefExpr 0x7ed1838 <col:7> 'int' lvalue Var 0x7ed1700 'c' 'int'
    |   `-ImplicitCastExpr 0x7ed1890 <col:9> 'int' <LValueToRValue>
    |     `-DeclRefExpr 0x7ed1858 <col:9> 'int' lvalue Var 0x7ed1780 'd' 'int'
    `-ReturnStmt 0x7ed1908 <line:35:3, col:10>
      `-IntegerLiteral 0x7ed18e8 <col:10> 'int' 0