[cfe-commits] [Patch] Fixit hint for += after a declaration.

Richard Trieu rtrieu at google.com
Fri Jan 13 18:34:45 PST 2012

Add a new error message and fixit hint for += after a declaration.  This is
similar to how Clang handles a == after a declaration.

plusequaldeclare1.cc:3:9: error: invalid '+=' at end of declaration; did
      you mean '='?
  int x += 6;
1 error generated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120113/0640932c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plusequal.patch
Type: text/x-patch
Size: 6047 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120113/0640932c/attachment.bin>

More information about the cfe-commits mailing list