Synopsis - Cross-Reference

File: /tests/Parsers/Cxx/expected/macro.xml
  1<?xml version='1.0' encoding='ISO-8859-1'?>
  2<ast>
  3 <declarations>
  4  <instance accessibility="0" class="Synopsis.AST.Macro" file="Parsers/Cxx/input/macro.cc" language="C++" line="4" name="LONGER" text="12345678" type="macro"/>
  5  <instance accessibility="0" class="Synopsis.AST.Macro" file="Parsers/Cxx/input/macro.cc" language="C++" line="5" name="SHORTER" text="1234" type="macro"/>
  6  <instance accessibility="0" class="Synopsis.AST.Macro" file="Parsers/Cxx/input/macro.cc" language="C++" line="6" name="LINKINSIDE" text="x" type="macro"/>
  7  <instance accessibility="0" class="Synopsis.AST.Macro" file="Parsers/Cxx/input/macro.cc" language="C++" line="7" name="ARGS" text="x" type="macro">
  8   <parameters>
  9    a
 10    b
 11    c
 12   </parameters>
 13  </instance>
 14  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="1" name="x" type="global variable">
 15   <vtype>
 16    <instance class="Synopsis.Type.Base" language="C++" name="int"/>
 17   </vtype>
 18  </instance>
 19  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="8" name="A" type="global variable">
 20   <vtype/>
 21  </instance>
 22  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="8" name="A2" type="global variable">
 23   <vtype/>
 24  </instance>
 25  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="9" name="B" type="global variable">
 26   <vtype/>
 27  </instance>
 28  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="9" name="B2" type="global variable">
 29   <vtype/>
 30  </instance>
 31  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="10" name="C" type="global variable">
 32   <vtype/>
 33  </instance>
 34  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="10" name="C2" type="global variable">
 35   <vtype/>
 36  </instance>
 37  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="11" name="D" type="global variable">
 38   <vtype/>
 39  </instance>
 40  <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/macro.cc" language="C++" line="11" name="D2" type="global variable">
 41   <vtype/>
 42  </instance>
 43 </declarations>
 44 <types>
 45  <instance class="Synopsis.Type.Declared" language="C++" name="A">
 46   <declaration/>
 47  </instance>
 48  <instance class="Synopsis.Type.Declared" language="C++" name="A2">
 49   <declaration/>
 50  </instance>
 51  <instance class="Synopsis.Type.Declared" language="C++" name="ARGS">
 52   <declaration/>
 53  </instance>
 54  <instance class="Synopsis.Type.Declared" language="C++" name="B">
 55   <declaration/>
 56  </instance>
 57  <instance class="Synopsis.Type.Declared" language="C++" name="B2">
 58   <declaration/>
 59  </instance>
 60  <instance class="Synopsis.Type.Declared" language="C++" name="C">
 61   <declaration/>
 62  </instance>
 63  <instance class="Synopsis.Type.Declared" language="C++" name="C2">
 64   <declaration/>
 65  </instance>
 66  <instance class="Synopsis.Type.Declared" language="C++" name="D">
 67   <declaration/>
 68  </instance>
 69  <instance class="Synopsis.Type.Declared" language="C++" name="D2">
 70   <declaration/>
 71  </instance>
 72  <instance class="Synopsis.Type.Declared" language="C++" name="LINKINSIDE">
 73   <declaration/>
 74  </instance>
 75  <instance class="Synopsis.Type.Declared" language="C++" name="LONGER">
 76   <declaration/>
 77  </instance>
 78  <instance class="Synopsis.Type.Declared" language="C++" name="SHORTER">
 79   <declaration/>
 80  </instance>
 81  <instance class="Synopsis.Type.Declared" language="C++" name="x">
 82   <declaration/>
 83  </instance>
 84 </types>
 85 <files>
 86  <instance class="Synopsis.AST.SourceFile" filename="Parsers/Cxx/input/macro.cc" is_main="1" language="C++">
 87   <declarations/>
 88   <macro_calls>
 89    <key>
 90     8
 91    </key>
 92    <value>
 93     <instance class="Synopsis.AST.MacroCall" diff="-4" end="18" name="LONGER" start="8"/>
 94    </value>
 95    <key>
 96     9
 97    </key>
 98    <value>
 99     <instance class="Synopsis.AST.MacroCall" diff="1" end="14" name="SHORTER" start="8"/>
100    </value>
101    <key>
102     10
103    </key>
104    <value>
105     <instance class="Synopsis.AST.MacroCall" diff="7" end="11" name="LINKINSIDE" start="8"/>
106    </value>
107    <key>
108     11
109    </key>
110    <value>
111     <instance class="Synopsis.AST.MacroCall" diff="10" end="11" name="ARGS" start="8"/>
112    </value>
113   </macro_calls>
114  </instance>
115 </files>
116</ast>