I have created the following rule file for cpp check:
<?xml version="1.0"?>
<rule version="1">
<pattern>virtual .* \( .*dword .* \)</pattern>
<message>
<id>virtual function</id>
<summary>Possible error </summary>
</message>
</rule>
This rule is detecting only the first matching item in the code what will be the problem.