[PATCH] D52791: [Diagnostics] Check for misleading pointer declarations

Nicolas Lesser via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 3 13:38:40 PDT 2018


Rakete1111 added a comment.

There's a false positive.

  int **A, *B; // false positive: declaring a variable of type 'int *'; did you mean to declare a pointer?

And IMO this should also warn:

  int **A, B; // no warning currently


https://reviews.llvm.org/D52791





More information about the cfe-commits mailing list