danmar/cppcheck — pull request #58 by richq (2011-11-06 20:23:32+00:00)
Title: Fix namespaced types for auto_ptr new[] errors

This fixes false negatives for code such as:

std::auto_ptr p(new foo::bar[10]);

The idea is to find a "new", search for the end token ";", then see if
the declaration ends in a closing square bracket. Also fixes other cases
that checked for "new %type% [" so that they work with namespaces.

This is with the better simpleMatch check.