1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 09:35:23 +02:00
cdt/codan/org.eclipse.cdt.codan.checkers/META-INF
Igor V. Kovalenko fe7a9d7856
Do not allow structured binding initializer referencing introduced name (#241)
If name lookup ends up with a variable, additionally check if node being
resolved is part of the structured binding initializer introducing found
variable. If this is the case, produce problem binding and report structured
binding declaration error via codan.

This change also prevents infinite recursion trying to resolve auto type of
introduced variable while evaluating such problematic initializer.
2023-01-28 10:54:09 -05:00
..
MANIFEST.MF Do not allow structured binding initializer referencing introduced name (#241) 2023-01-28 10:54:09 -05:00