[Automated review] Does not seem to cope with c++ structured bindings
Categories
(Developer Infrastructure :: Source Code Analysis, defect, P2)
Tracking
(Not tracked)
People
(Reporter: bwc, Unassigned)
References
Details
Phabricator URL: https://phabricator.services.mozilla.com/D70400
https://en.cppreference.com/w/cpp/language/structured_binding
This feature is allowed in mozilla code according to https://developer.mozilla.org/en-US/docs/Mozilla/Using_CXX_in_Mozilla_code
This feature is not used much in our codebase yet, but it does show up:
Comment 1•6 years ago
|
||
The priority flag is not set for this bug.
:andi, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•6 years ago
|
||
Looking other the log this has nothing to do with the C++ structured bindings but more with range based loops, at least from the log we can see:
FIXME: Unconsumed set of 2 nodes: /CXXForRangeStmt
Updated•6 years ago
|
| Reporter | ||
Comment 4•6 years ago
|
||
Maybe it is trying to warn that we're using a structured binding with two things in it, but only using one of them inside the loop, and somehow getting tripped up trying to report that? That's a reasonable thing to warn about.
Comment 5•6 years ago
|
||
Yes, that could be a lead but the problem is that we cannot reproduce this issue.
Updated•3 years ago
|
Updated•3 years ago
|
Description
•