Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==> main.c <==
- struct A {
- int a;
- int b;
- double barge;
- };
- struct B { int x; int y; struct A st; };
- ==> command <==
- clang -Xclang -ast-dump -fsyntax-only -fno-color-diagnostics main.c > main.ast
- ==> main.ast <==
- TranslationUnitDecl 0x56335152e758 <<invalid sloc>> <invalid sloc>
- |-TypedefDecl 0x56335152eff0 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
- | `-BuiltinType 0x56335152ecf0 '__int128'
- |-TypedefDecl 0x56335152f058 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
- | `-BuiltinType 0x56335152ed10 'unsigned __int128'
- |-TypedefDecl 0x56335152f318 <<invalid sloc>> <invalid sloc> implicit __NSConstantString 'struct __NSConstantString_tag'
- | `-RecordType 0x56335152f130 'struct __NSConstantString_tag'
- | `-Record 0x56335152f0a8 '__NSConstantString_tag'
- |-TypedefDecl 0x56335152f3b0 <<invalid sloc>> <invalid sloc> implicit __builtin_ms_va_list 'char *'
- | `-PointerType 0x56335152f370 'char *'
- | `-BuiltinType 0x56335152e7f0 'char'
- |-TypedefDecl 0x563351568aa8 <<invalid sloc>> <invalid sloc> implicit __builtin_va_list 'struct __va_list_tag [1]'
- | `-ConstantArrayType 0x563351568a50 'struct __va_list_tag [1]' 1
- | `-RecordType 0x5633515688d0 'struct __va_list_tag'
- | `-Record 0x563351568840 '__va_list_tag'
- |-RecordDecl 0x563351568af8 <main.c:1:1, line:5:1> line:1:8 struct A definition
- | |-FieldDecl 0x563351568bb8 <line:2:2, col:6> col:6 a 'int'
- | |-FieldDecl 0x563351568c18 <line:3:2, col:6> col:6 b 'int'
- | `-FieldDecl 0x563351568c78 <line:4:2, col:9> col:9 barge 'double'
- `-RecordDecl 0x563351568cc0 <line:7:1, col:39> col:8 struct B definition
- |-FieldDecl 0x563351568d88 <col:12, col:16> col:16 x 'int'
- |-FieldDecl 0x563351568de8 <col:19, col:23> col:23 y 'int'
- `-FieldDecl 0x563351568e88 <col:26, col:35> col:35 st 'struct A':'struct A'
Advertisement
Add Comment
Please, Sign In to add comment