[PATCH] Improve diagnostic message for misplaced square brackets

Richard Smith richard at metafoo.co.uk
Thu May 22 19:57:13 PDT 2014


Looks great, ship it!

Wait... one more thing:

  int [3] *x;

We should suggest adding parentheses here, because

  int *x[3];

means the wrong thing.

http://reviews.llvm.org/D2712






More information about the cfe-commits mailing list