Example of CMT++ Report (long form, with frequencies, file level summary)
<?xml version="1.0" encoding="ISO-8859-1"?>
<cmt_long_report>
<header_info>
<cmt_version>4.2</cmt_version>
<copyright>Copyright (c) 1993-2007 Testwell Oy</copyright>
<license_notes>
</license_notes>
<date>Sun Nov 18 15:07:18 2007</date>
<cmt_options> -lf -s -o report-lf-s.txt</cmt_options>
</header_info>
<file name="stack.h">
<file_total>
<vG>2</vG>
<vG_max>1</vG_max>
<vG_avg>1</vG_avg>
<LOCphy>60</LOCphy>
<LOCpro>22</LOCpro>
<LOCbl>12</LOCbl>
<LOCcom>29</LOCcom>
<N>68</N>
<N1>38</N1>
<N2>30</N2>
<n>33</n>
<n1>15</n1>
<n2>18</n2>
<V>343.019</V>
<B>0.088</B>
<D>12.500</D>
<E>4287.735</E>
<L>0.080</L>
<T>00:03:58</T>
<MaxND>0</MaxND>
<MIwoc>74</MIwoc>
<MIcwc>44</MIcwc>
<MI>118</MI>
<operators>
<token count="3">#</token>
<token count="1">&</token>
<token count="8">()</token>
<token count="1">*</token>
<token count="3">:</token>
<token count="13">;</token>
<token count="1">class</token>
<token count="1">endif</token>
<token count="1">ifndef</token>
<token count="1">private</token>
<token count="1">protected</token>
<token count="1">public</token>
<token count="1">typedef</token>
<token count="1">{}</token>
<token count="1">~</token>
</operators>
<operands>
<token count="2">STACK_H</token>
<token count="6">STACK_ITEM</token>
<token count="3">Stack</token>
<token count="1">clear</token>
<token count="1">define</token>
<token count="1">element</token>
<token count="1">height</token>
<token count="1">index</token>
<token count="1">int</token>
<token count="1">item</token>
<token count="1">myheight</token>
<token count="1">pop</token>
<token count="1">push</token>
<token count="1">size</token>
<token count="1">top</token>
<token count="4">unsigned</token>
<token count="1">value</token>
<token count="2">void</token>
</operands>
</file_total>
</file>
<file name="stack.cpp">
<file_total>
<vG>5</vG>
<vG_max>3</vG_max>
<vG_avg>1</vG_avg>
<LOCphy>152</LOCphy>
<LOCpro>49</LOCpro>
<LOCbl>25</LOCbl>
<LOCcom>78</LOCcom>
<N>174</N>
<N1>91</N1>
<N2>83</N2>
<n>48</n>
<n1>25</n1>
<n2>23</n2>
<V>971.783</V>
<B>0.414</B>
<D>45.109</D>
<E>43835.887</E>
<L>0.022</L>
<T>00:40:35</T>
<MaxND>2</MaxND>
<MIwoc>98</MIwoc>
<MIcwc>45</MIcwc>
<MI>143</MI>
<operators>
<token count="1">#</token>
<token count="1">&</token>
<token count="11">()</token>
<token count="1">*</token>
<token count="2">++</token>
<token count="1">+=</token>
<token count="2">,</token>
<token count="1">-</token>
<token count="1">--</token>
<token count="1">:</token>
<token count="8">::</token>
<token count="19">;</token>
<token count="1"><</token>
<token count="9">=</token>
<token count="2">></token>
<token count="1">>=</token>
<token count="7">[]</token>
<token count="1">const</token>
<token count="2">delete</token>
<token count="1">for()</token>
<token count="3">if()</token>
<token count="1">new</token>
<token count="4">return</token>
<token count="9">{}</token>
<token count="1">~</token>
</operators>
<operands>
<token count="7">0</token>
<token count="1">1</token>
<token count="1">40</token>
<token count="2">SIZE_STEP</token>
<token count="8">STACK_ITEM</token>
<token count="10">Stack</token>
<token count="1">clear</token>
<token count="1">element</token>
<token count="1">height</token>
<token count="5">i</token>
<token count="1">include</token>
<token count="2">index</token>
<token count="1">int</token>
<token count="8">item</token>
<token count="10">myheight</token>
<token count="3">new_value</token>
<token count="1">pop</token>
<token count="1">push</token>
<token count="4">size</token>
<token count="1">top</token>
<token count="3">unsigned</token>
<token count="9">value</token>
<token count="2">void</token>
</operands>
</file_total>
</file>
<file name="demofile.h">
<file_total>
<vG>1</vG>
<vG_max>1</vG_max>
<vG_avg>1</vG_avg>
<LOCphy>18</LOCphy>
<LOCpro>12</LOCpro>
<LOCbl>3</LOCbl>
<LOCcom alarmed="1">3</LOCcom>
<N>39</N>
<N1>20</N1>
<N2>19</N2>
<n>16</n>
<n1>7</n1>
<n2>9</n2>
<V>156.000</V>
<B>0.037</B>
<D>7.389</D>
<E>1152.667</E>
<L>0.135</L>
<T>00:01:04</T>
<MaxND>1</MaxND>
<MIwoc>113</MIwoc>
<MIcwc>30</MIcwc>
<MI>142</MI>
<operators>
<token count="5">()</token>
<token count="7">;</token>
<token count="2">=</token>
<token count="1">class</token>
<token count="1">extern</token>
<token count="3">{}</token>
<token count="1">~</token>
</operators>
<operands>
<token count="1">0</token>
<token count="1">5</token>
<token count="3">MyClass</token>
<token count="1">SomeFunction</token>
<token count="3">a</token>
<token count="1">foo1</token>
<token count="1">foo2</token>
<token count="2">i</token>
<token count="6">int</token>
</operands>
</file_total>
</file>
<file name="demofile.cpp">
<file_total>
<vG>11</vG>
<vG_max>6</vG_max>
<vG_avg>4</vG_avg>
<LOCphy>41</LOCphy>
<LOCpro>33</LOCpro>
<LOCbl>5</LOCbl>
<LOCcom alarmed="1">3</LOCcom>
<N>115</N>
<N1>64</N1>
<N2>51</N2>
<n>42</n>
<n1>22</n1>
<n2>20</n2>
<V>620.117</V>
<B>0.224</B>
<D>28.050</D>
<E>17394.268</E>
<L>0.036</L>
<T>00:16:06</T>
<MaxND>3</MaxND>
<MIwoc>100</MIwoc>
<MIcwc>20</MIcwc>
<MI>120</MI>
<operators>
<token count="1">#</token>
<token count="3">()</token>
<token count="1">+</token>
<token count="1">++</token>
<token count="1">-</token>
<token count="2">--</token>
<token count="2">:</token>
<token count="2">::</token>
<token count="12">;</token>
<token count="3">=</token>
<token count="1">==</token>
<token count="7">></token>
<token count="1">?</token>
<token count="2">break</token>
<token count="4">case ...:</token>
<token count="1">default</token>
<token count="1">else</token>
<token count="3">if()</token>
<token count="3">return</token>
<token count="1">switch()</token>
<token count="8">{}</token>
<token count="4">||</token>
</operators>
<operands>
<token count="5">0</token>
<token count="1">1</token>
<token count="1">10</token>
<token count="1">100</token>
<token count="1">2</token>
<token count="1">200</token>
<token count="1">3</token>
<token count="1">5</token>
<token count="1">6</token>
<token count="1">7</token>
<token count="1">8</token>
<token count="1">9</token>
<token count="2">MyClass</token>
<token count="1">SomeFunction</token>
<token count="13">a</token>
<token count="1">foo1</token>
<token count="1">foo2</token>
<token count="10">i</token>
<token count="1">include</token>
<token count="6">int</token>
</operands>
</file_total>
</file>
<system>
<files>4</files>
<functions>0</functions>
<LOCphy>271</LOCphy>
<LOCbl>45</LOCbl>
<LOCpro>116</LOCpro>
<LOCcom>113</LOCcom>
<semicolons>51</semicolons>
<vG>16</vG>
<MIwoc>107</MIwoc>
<MIcw>40</MIcw>
<MI>147</MI>
<alarms>
<file_vG>
<measured>4</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>1</lowlimit>
<highlimit>100</highlimit>
</file_vG>
<file_LOCpro>
<measured>4</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>4</lowlimit>
<highlimit>400</highlimit>
</file_LOCpro>
<file_comment_percent>
<measured>4</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>30</lowlimit>
<highlimit>75</highlimit>
</file_comment_percent>
<file_V>
<measured>4</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>100</lowlimit>
<highlimit>8000</highlimit>
</file_V>
<file_B>
<measured>4</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>0</lowlimit>
<highlimit>2</highlimit>
</file_B>
<file_MI>
<measured>4</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>65</lowlimit>
</file_MI>
<function_vG>
<measured>0</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>1</lowlimit>
<highlimit>15</highlimit>
</function_vG>
<function_LOCpro>
<measured>0</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>4</lowlimit>
<highlimit>40</highlimit>
</function_LOCpro>
<function_comment_percent>
<measured>0</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>30</lowlimit>
<highlimit>75</highlimit>
</function_comment_percent>
<function_V>
<measured>0</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>20</lowlimit>
<highlimit>1000</highlimit>
</function_V>
<function_MI>
<measured>0</measured>
<alarmed>0</alarmed>
<percent>0</percent>
<lowlimit>65</lowlimit>
</function_MI>
</alarms>
<error_messages count="0">
</error_messages>
</system>
</cmt_long_report>