[PATCH] Suggest fix-it ':' when '=' used in for-range-declaration while initializing an auto

Ismail Pazarbasi ismail.pazarbasi at gmail.com
Tue Apr 15 14:34:36 PDT 2014


  TentativeParsingAction has been removed. Diagnostics has been moved into `ParseDeclarationAfterDeclaratorAndAttributes`. The note has been converted into a warning. We are trying to identify a single variable declaration in a for statement where type of variable is `auto`.

Hi dblaikie, bkramer,

http://reviews.llvm.org/D3370

CHANGE SINCE LAST DIFF
  http://reviews.llvm.org/D3370?vs=8495&id=8541#toc

Files:
  include/clang/Basic/DiagnosticParseKinds.td
  include/clang/Parse/Parser.h
  lib/Parse/ParseDecl.cpp
  test/Parser/cxx0x-for-range.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3370.2.patch
Type: text/x-patch
Size: 6660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140415/dbf42fda/attachment.bin>


More information about the cfe-commits mailing list