[analyser] memset arguments checker

Hi all

I have an idea for memset checker for handling accidental args swap such as:

struct A { … };

struct A a;

memset(&a, sizeof(struct A), 0); // expected-warning {{possibly wrong order of arguments ‘sizeof(struct A)’ and ‘0’ passed as arguments ‘value’ and ‘num’}}

Probably it can be AST checker but in some cases it can be more precise if it would be extension of CStringChecker. Any suggestions in which way is more robust for such checker.

Thanks, Alexey K

clang-tidy has this check:

Hm, ok. Thanks, Malcolm!