Synopsis - Cross-Reference
File: /tests/Parsers/Cxx/expected/groups.xml1<?xml version='1.0' encoding='ISO-8859-1'?> 2<ast> 3 <declarations> 4 <instance accessibility="0" class="Synopsis.AST.Class" file="Parsers/Cxx/input/groups.cc" language="C++" line="8" name="foo" type="struct"> 5 <comments> 6 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="1" suspect="1"> 7 <text> 8 // group documentation 9// @group first group { 10 11 </text> 12 </instance> 13 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="4" suspect="1"> 14 <text> 15 // some comment 16// extending over multiple lines 17 18 </text> 19 </instance> 20 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="7" suspect="0"> 21 <text> 22 // another comment 23 24 </text> 25 </instance> 26 </comments> 27 <declarations> 28 <instance accessibility="1" class="Synopsis.AST.Builtin" file="Parsers/Cxx/input/groups.cc" language="C++" line="7" name="EOS" type="EOS"/> 29 </declarations> 30 </instance> 31 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="11" name="test1" type="global variable"> 32 <vtype> 33 <instance class="Synopsis.Type.Base" language="C++" name="int"/> 34 </vtype> 35 </instance> 36 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="12" name="test2" type="global variable"> 37 <vtype/> 38 </instance> 39 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="14" name="bar" type="global variable"> 40 <comments> 41 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="13" suspect="0"> 42 <text> 43 // } 44 45 </text> 46 </instance> 47 </comments> 48 <vtype/> 49 </instance> 50 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="17" name="test3" type="global variable"> 51 <comments> 52 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="15" suspect="0"> 53 <text> 54 // another group 55// @group tests { 56 57 </text> 58 </instance> 59 </comments> 60 <vtype/> 61 </instance> 62 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="18" name="test4" type="global variable"> 63 <vtype/> 64 </instance> 65 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="24" name="f" type="global variable"> 66 <comments> 67 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="19" suspect="1"> 68 <text> 69 // } 70 71 </text> 72 </instance> 73 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="21" suspect="1"> 74 <text> 75 // @group outer { 76 77 </text> 78 </instance> 79 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="23" suspect="0"> 80 <text> 81 // @group inner { 82 83 </text> 84 </instance> 85 </comments> 86 <vtype/> 87 </instance> 88 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="26" name="test5" type="global variable"> 89 <comments> 90 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="25" suspect="0"> 91 <text> 92 // @group xxx { not a group 93 94 </text> 95 </instance> 96 </comments> 97 <vtype/> 98 </instance> 99 <instance accessibility="0" class="Synopsis.AST.Variable" constr="0" file="Parsers/Cxx/input/groups.cc" language="C++" line="30" name="test6" type="global variable"> 100 <comments> 101 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="27" suspect="0"> 102 <text> 103 // } and not a group end 104// } 105// and not a group either 106 107 </text> 108 </instance> 109 </comments> 110 <vtype/> 111 </instance> 112 <instance accessibility="0" class="Synopsis.AST.Builtin" file="Parsers/Cxx/input/groups.cc" language="C++" line="31" name="EOS" type="EOS"> 113 <comments> 114 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="31" suspect="1"> 115 <text> 116 // } 117 118 </text> 119 </instance> 120 <instance class="Synopsis.AST.Comment" file="Parsers/Cxx/input/groups.cc" line="33" suspect="1"> 121 <text> 122 // } 123 124 </text> 125 </instance> 126 </comments> 127 </instance> 128 </declarations> 129 <types> 130 <instance class="Synopsis.Type.Declared" language="C++" name="EOS"> 131 <declaration/> 132 </instance> 133 <instance class="Synopsis.Type.Declared" language="C++" name="bar"> 134 <declaration/> 135 </instance> 136 <instance class="Synopsis.Type.Declared" language="C++" name="f"> 137 <declaration/> 138 </instance> 139 <instance class="Synopsis.Type.Declared" language="C++" name="foo"> 140 <declaration/> 141 </instance> 142 <instance class="Synopsis.Type.Declared" language="C++" name="test1"> 143 <declaration/> 144 </instance> 145 <instance class="Synopsis.Type.Declared" language="C++" name="test2"> 146 <declaration/> 147 </instance> 148 <instance class="Synopsis.Type.Declared" language="C++" name="test3"> 149 <declaration/> 150 </instance> 151 <instance class="Synopsis.Type.Declared" language="C++" name="test4"> 152 <declaration/> 153 </instance> 154 <instance class="Synopsis.Type.Declared" language="C++" name="test5"> 155 <declaration/> 156 </instance> 157 <instance class="Synopsis.Type.Declared" language="C++" name="test6"> 158 <declaration/> 159 </instance> 160 </types> 161 <files> 162 <instance class="Synopsis.AST.SourceFile" filename="Parsers/Cxx/input/groups.cc" is_main="1" language="C++"> 163 <declarations/> 164 <macro_calls/> 165 </instance> 166 </files> 167</ast>