[LLVMbugs] [Bug 19176] New: Suggest ':' when '=' used in range-based-for
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 18 11:37:15 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19176
Bug ID: 19176
Summary: Suggest ':' when '=' used in range-based-for
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: dblaikie at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Maybe I'm the odd one out (some diagnostic data mining might help verify this),
but I often find myself accidentally writing "for(foo f = foos)" instead of
"for(foo f : foos)"
A fixit hint/recovery would be nice here - if there's sufficient popularity of
this mistake.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140318/a1bc29e6/attachment.html>
More information about the llvm-bugs
mailing list