Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.22 KB | None | 0 0
  1. % clang++ -cc1 -ast-dump -O0 gremlin.cpp
  2. gremlin.cpp:1:9: fatal error: 'string' file not found
  3. #include<string>
  4. ^
  5. TranslationUnitDecl 0x1e8b610 <<invalid sloc>> <invalid sloc>
  6. |-TypedefDecl 0x1e8bb98 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
  7. | `-BuiltinType 0x1e8b880 '__int128'
  8. |-TypedefDecl 0x1e8bbf8 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
  9. | `-BuiltinType 0x1e8b8a0 'unsigned __int128'
  10. |-TypedefDecl 0x1e8bf28 <<invalid sloc>> <invalid sloc> implicit __NSConstantString 'struct __NSConstantString_tag'
  11. | `-RecordType 0x1e8bce0 'struct __NSConstantString_tag'
  12. | `-CXXRecord 0x1e8bc48 '__NSConstantString_tag'
  13. |-TypedefDecl 0x1e8bfb8 <<invalid sloc>> <invalid sloc> implicit __builtin_ms_va_list 'char *'
  14. | `-PointerType 0x1e8bf80 'char *'
  15. | `-BuiltinType 0x1e8b6a0 'char'
  16. |-TypedefDecl 0x1e8c2d8 <<invalid sloc>> <invalid sloc> implicit __builtin_va_list 'struct __va_list_tag [1]'
  17. | `-ConstantArrayType 0x1e8c280 'struct __va_list_tag [1]' 1
  18. | `-RecordType 0x1e8c0a0 'struct __va_list_tag'
  19. | `-CXXRecord 0x1e8c008 '__va_list_tag'
  20. |-UsingDirectiveDecl 0x1ee3368 <gremlin.cpp:3:1, col:17> col:17 Namespace 0x1ee3300 'std'
  21. |-CXXRecordDecl 0x1ee33b8 <line:5:1, line:6:1> line:5:7 referenced class Inner definition
  22. | |-CXXRecordDecl 0x1ee34d0 <col:1, col:7> col:7 implicit class Inner
  23. | |-CXXConstructorDecl 0x1ee3720 <col:7> col:7 implicit referenced Inner 'void (void)' inline noexcept-unevaluated 0x1ee3720
  24. | |-CXXConstructorDecl 0x1ee3878 <col:7> col:7 implicit used Inner 'void (const class Inner &) throw()' inline
  25. | | |-ParmVarDecl 0x1ee39b0 <col:7> col:7 'const class Inner &'
  26. | | `-CompoundStmt 0x1ee3b88 <col:7>
  27. | `-CXXDestructorDecl 0x1ee3a70 <col:7> col:7 implicit referenced ~Inner 'void (void)' inline noexcept-unevaluated 0x1ee3a70
  28. |-FunctionDecl 0x1ee3640 <line:8:1, line:10:1> line:8:7 invalid in 'class Inner (int)'
  29. | |-ParmVarDecl 0x1ee3578 <col:10, col:17> col:17 invalid name 'int'
  30. | `-CompoundStmt 0x1ee3c40 <col:22, line:10:1>
  31. | `-ReturnStmt 0x1ee3c28 <line:9:2, col:15>
  32. | `-ExprWithCleanups 0x1ee3c10 <col:9, col:15> 'class Inner'
  33. | `-CXXConstructExpr 0x1ee3bd8 <col:9, col:15> 'class Inner' 'void (const class Inner &) throw()' elidable
  34. | `-MaterializeTemporaryExpr 0x1ee3b70 <col:9, col:15> 'const class Inner' lvalue
  35. | `-ImplicitCastExpr 0x1ee3b58 <col:9, col:15> 'const class Inner' <NoOp>
  36. | `-CXXTemporaryObjectExpr 0x1ee3a18 <col:9, col:15> 'class Inner' 'void (void)' zeroing
  37. |-FunctionDecl 0x1ee3db0 <line:12:1, line:14:1> line:12:7 invalid has 'class Inner (int, int)'
  38. | |-ParmVarDecl 0x1ee3c70 <col:11, col:18> col:18 invalid key 'int'
  39. | |-ParmVarDecl 0x1ee3ce0 <col:23, col:30> col:30 invalid value 'int'
  40. | `-CompoundStmt 0x1ee3f48 <col:36, line:14:1>
  41. | `-ReturnStmt 0x1ee3f30 <line:13:2, col:15>
  42. | `-ExprWithCleanups 0x1ee3f18 <col:9, col:15> 'class Inner'
  43. | `-CXXConstructExpr 0x1ee3ee0 <col:9, col:15> 'class Inner' 'void (const class Inner &) throw()' elidable
  44. | `-MaterializeTemporaryExpr 0x1ee3ec8 <col:9, col:15> 'const class Inner' lvalue
  45. | `-ImplicitCastExpr 0x1ee3eb0 <col:9, col:15> 'const class Inner' <NoOp>
  46. | `-CXXTemporaryObjectExpr 0x1ee3e78 <col:9, col:15> 'class Inner' 'void (void)' zeroing
  47. |-CXXRecordDecl 0x1ee3f68 <line:16:1, col:7> col:7 referenced class Vertex
  48. |-CXXRecordDecl 0x1ee4020 <line:18:1, line:28:1> line:18:7 referenced class Repeat definition
  49. | |-CXXRecordDecl 0x1ee4140 <col:1, col:7> col:7 implicit referenced class Repeat
  50. | |-AccessSpecDecl 0x1ee41d8 <line:19:1, col:8> col:1 private
  51. | |-FieldDecl 0x1ee4238 <line:20:2, col:10> col:10 referenced vertex 'class Vertex *'
  52. | |-AccessSpecDecl 0x1ee4280 <line:22:1, col:7> col:1 public
  53. | |-CXXConstructorDecl 0x1eea820 <line:23:2, col:43> col:2 used Repeat 'void (class Vertex *)'
  54. | | |-ParmVarDecl 0x1eea740 <col:9, col:17> col:17 used vertex 'class Vertex *'
  55. | | |-CXXCtorInitializer Field 0x1ee4238 'vertex' 'class Vertex *'
  56. | | | `-ImplicitCastExpr 0x1eeab10 <col:34> 'class Vertex *' <LValueToRValue>
  57. | | | `-DeclRefExpr 0x1eeaab8 <col:34> 'class Vertex *' lvalue ParmVar 0x1eea740 'vertex' 'class Vertex *'
  58. | | `-CompoundStmt 0x1eeab58 <col:42, col:43>
  59. | |-CXXMethodDecl 0x1eea9e0 <line:25:2, line:27:2> line:25:10 until 'class Vertex &(class Inner)'
  60. | | |-ParmVarDecl 0x1eea8f0 <col:16, col:22> col:22 what 'class Inner'
  61. | | `-CompoundStmt 0x1eeac10 <col:27, line:27:2>
  62. | | `-ReturnStmt 0x1eeabf8 <line:26:3, col:18>
  63. | | `-UnaryOperator 0x1eeabd8 <col:10, col:18> 'class Vertex' lvalue prefix '*'
  64. | | `-ImplicitCastExpr 0x1eeabc0 <col:12, col:18> 'class Vertex *' <LValueToRValue>
  65. | | `-MemberExpr 0x1eeab88 <col:12, col:18> 'class Vertex *' lvalue ->vertex 0x1ee4238
  66. | | `-CXXThisExpr 0x1eeab70 <col:12> 'class Repeat *' this
  67. | |-CXXConstructorDecl 0x1eeb4c8 <line:18:7> col:7 implicit used Repeat 'void (const class Repeat &) throw()' inline
  68. | | |-ParmVarDecl 0x1eeb600 <col:7> col:7 used 'const class Repeat &'
  69. | | |-CXXCtorInitializer Field 0x1ee4238 'vertex' 'class Vertex *'
  70. | | | `-ImplicitCastExpr 0x1eecda8 <col:7> 'class Vertex *' <LValueToRValue>
  71. | | | `-MemberExpr 0x1eecd58 <col:7> 'class Vertex *const' lvalue .vertex 0x1ee4238
  72. | | | `-DeclRefExpr 0x1eecd30 <col:7> 'const class Repeat' lvalue ParmVar 0x1eeb600 '' 'const class Repeat &'
  73. | | `-CompoundStmt 0x1eecdf0 <col:7>
  74. | `-CXXDestructorDecl 0x1eecbf0 <col:7> col:7 implicit referenced ~Repeat 'void (void)' inline noexcept-unevaluated 0x1eecbf0
  75. |-CXXRecordDecl 0x1eeac30 prev 0x1ee3f68 <line:30:1, line:47:1> line:30:7 referenced class Vertex definition
  76. | |-CXXRecordDecl 0x1eead28 <col:1, col:7> col:7 implicit referenced class Vertex
  77. | |-AccessSpecDecl 0x1eeadc0 <line:31:1, col:7> col:1 public
  78. | |-CXXMethodDecl 0x1eeaf40 <line:32:2, line:34:2> line:32:10 invalid has 'class Vertex &(int, int)'
  79. | | |-ParmVarDecl 0x1eeadf8 <col:14, col:21> col:21 invalid key 'int'
  80. | | |-ParmVarDecl 0x1eeae68 <col:26, col:33> col:33 invalid value 'int'
  81. | | `-CompoundStmt 0x1eeb450 <col:39, line:34:2>
  82. | | `-ReturnStmt 0x1eeb438 <line:33:3, col:11>
  83. | | `-UnaryOperator 0x1eeb418 <col:10, col:11> 'class Vertex' lvalue prefix '*'
  84. | | `-CXXThisExpr 0x1eeb400 <col:11> 'class Vertex *' this
  85. | |-CXXMethodDecl 0x1eeb0d0 <line:36:2, line:38:2> line:36:9 repeat 'class Repeat (class Inner)'
  86. | | |-ParmVarDecl 0x1eeb008 <col:16, col:22> col:22 what 'class Inner'
  87. | | `-CompoundStmt 0x1eeceb0 <col:27, line:38:2>
  88. | | `-ReturnStmt 0x1eece98 <line:37:3, col:21>
  89. | | `-ExprWithCleanups 0x1eece80 <col:10, col:21> 'class Repeat'
  90. | | `-CXXConstructExpr 0x1eece48 <col:10, col:21> 'class Repeat' 'void (const class Repeat &) throw()' elidable
  91. | | `-MaterializeTemporaryExpr 0x1eecd18 <col:10, col:21> 'const class Repeat' lvalue
  92. | | `-ImplicitCastExpr 0x1eecd00 <col:10, col:21> 'const class Repeat' <NoOp>
  93. | | `-CXXFunctionalCastExpr 0x1eeccd8 <col:10, col:21> 'class Repeat' functional cast to class Repeat <ConstructorConversion>
  94. | | `-CXXConstructExpr 0x1eeb668 <col:10, col:21> 'class Repeat' 'void (class Vertex *)'
  95. | | `-CXXThisExpr 0x1eeb480 <col:17> 'class Vertex *' this
  96. | |-CXXMethodDecl 0x1eeb1d0 <line:40:2, line:42:2> line:40:10 path 'class Vertex &(void)'
  97. | | `-CompoundStmt 0x1eecf20 <col:16, line:42:2>
  98. | | `-ReturnStmt 0x1eecf08 <line:41:3, col:11>
  99. | | `-UnaryOperator 0x1eecee8 <col:10, col:11> 'class Vertex' lvalue prefix '*'
  100. | | `-CXXThisExpr 0x1eeced0 <col:11> 'class Vertex *' this
  101. | |-CXXMethodDecl 0x1eeb350 <line:44:2, line:46:2> line:44:10 invalid by 'class Vertex &(int)'
  102. | | |-ParmVarDecl 0x1eeb288 <col:13, col:20> col:20 invalid name 'int'
  103. | | `-CompoundStmt 0x1eecf90 <col:25, line:46:2>
  104. | | `-ReturnStmt 0x1eecf78 <line:45:3, col:11>
  105. | | `-UnaryOperator 0x1eecf58 <col:10, col:11> 'class Vertex' lvalue prefix '*'
  106. | | `-CXXThisExpr 0x1eecf40 <col:11> 'class Vertex *' this
  107. | |-CXXConstructorDecl 0x1eed2e8 <line:30:7> col:7 implicit referenced Vertex 'void (void)' inline noexcept-unevaluated 0x1eed2e8
  108. | |-CXXConstructorDecl 0x1eed408 <col:7> col:7 implicit used Vertex 'void (const class Vertex &) throw()' inline
  109. | | |-ParmVarDecl 0x1eed540 <col:7> col:7 'const class Vertex &'
  110. | | `-CompoundStmt 0x1eed718 <col:7>
  111. | `-CXXDestructorDecl 0x1eed600 <col:7> col:7 implicit referenced ~Vertex 'void (void)' inline noexcept-unevaluated 0x1eed600
  112. |-CXXRecordDecl 0x1eecfb0 <line:49:1, line:54:1> line:49:7 referenced class Gremlin definition
  113. | |-CXXRecordDecl 0x1eed0d0 <col:1, col:7> col:7 implicit class Gremlin
  114. | |-AccessSpecDecl 0x1eed168 <line:50:1, col:7> col:1 public
  115. | |-CXXMethodDecl 0x1eed1e0 <line:51:2, line:53:2> line:51:9 used V 'class Vertex (void)'
  116. | | `-CompoundStmt 0x1eed7d0 <col:12, line:53:2>
  117. | | `-ReturnStmt 0x1eed7b8 <line:52:3, col:17>
  118. | | `-ExprWithCleanups 0x1eed7a0 <col:10, col:17> 'class Vertex'
  119. | | `-CXXConstructExpr 0x1eed768 <col:10, col:17> 'class Vertex' 'void (const class Vertex &) throw()' elidable
  120. | | `-MaterializeTemporaryExpr 0x1eed700 <col:10, col:17> 'const class Vertex' lvalue
  121. | | `-ImplicitCastExpr 0x1eed6e8 <col:10, col:17> 'const class Vertex' <NoOp>
  122. | | `-CXXTemporaryObjectExpr 0x1eed5a8 <col:10, col:17> 'class Vertex' 'void (void)' zeroing
  123. | |-CXXConstructorDecl 0x1eedff8 <line:49:7> col:7 implicit referenced Gremlin 'void (void)' inline noexcept-unevaluated 0x1eedff8
  124. | |-CXXConstructorDecl 0x1eee118 <col:7> col:7 implicit used Gremlin 'void (const class Gremlin &) throw()' inline
  125. | | |-ParmVarDecl 0x1eee250 <col:7> col:7 'const class Gremlin &'
  126. | | `-CompoundStmt 0x1eee428 <col:7>
  127. | `-CXXDestructorDecl 0x1eee310 <col:7> col:7 implicit referenced ~Gremlin 'void (void)' inline noexcept-unevaluated 0x1eee310
  128. |-FunctionDecl 0x1eed8c0 <line:56:1, line:61:1> line:56:6 used gremlin 'void (class Gremlin)'
  129. | |-ParmVarDecl 0x1eed800 <col:14, col:22> col:22 used g 'class Gremlin'
  130. | `-CompoundStmt 0x1eede18 <col:24, line:61:1>
  131. `-FunctionDecl 0x1eede80 <line:64:1, line:67:1> line:64:5 main 'int (void)'
  132. `-CompoundStmt 0x1eee650 <col:11, line:67:1>
  133. |-DeclStmt 0x1eee4c8 <line:65:2, col:23>
  134. | `-VarDecl 0x1eedf68 <col:2, col:22> col:10 used g 'class Gremlin' cinit
  135. | `-ExprWithCleanups 0x1eee4b0 <col:14, col:22> 'class Gremlin'
  136. | `-CXXConstructExpr 0x1eee478 <col:14, col:22> 'class Gremlin' 'void (const class Gremlin &) throw()' elidable
  137. | `-MaterializeTemporaryExpr 0x1eee410 <col:14, col:22> 'const class Gremlin' lvalue
  138. | `-ImplicitCastExpr 0x1eee3f8 <col:14, col:22> 'const class Gremlin' <NoOp>
  139. | `-CXXTemporaryObjectExpr 0x1eee2b8 <col:14, col:22> 'class Gremlin' 'void (void)' zeroing
  140. `-CallExpr 0x1eee5d0 <line:66:2, col:11> 'void'
  141. |-ImplicitCastExpr 0x1eee5b8 <col:2> 'void (*)(class Gremlin)' <FunctionToPointerDecay>
  142. | `-DeclRefExpr 0x1eee560 <col:2> 'void (class Gremlin)' lvalue Function 0x1eed8c0 'gremlin' 'void (class Gremlin)'
  143. `-CXXConstructExpr 0x1eee618 <col:10> 'class Gremlin' 'void (const class Gremlin &) throw()'
  144. `-ImplicitCastExpr 0x1eee600 <col:10> 'const class Gremlin' lvalue <NoOp>
  145. `-DeclRefExpr 0x1eee538 <col:10> 'class Gremlin' lvalue Var 0x1eedf68 'g' 'class Gremlin'
  146. 1 error generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement