danmar/cppcheck — pull request #57 by richq (2011-11-06 14:39:58+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.