1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00
cdt/codan/org.eclipse.cdt.codan.checkers
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
..
.settings Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
META-INF Do not allow structured binding initializer referencing introduced name (#241) 2023-01-28 10:54:09 -05:00
OSGI-INF/l10n Do not allow structured binding initializer referencing introduced name (#241) 2023-01-28 10:54:09 -05:00
src/org/eclipse/cdt/codan Do not allow structured binding initializer referencing introduced name (#241) 2023-01-28 10:54:09 -05:00
.classpath Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
.project [279740] API scrub 2010-03-08 19:51:33 +00:00
about.html [releng] Update all legal files with update_legal_files.sh 2022-04-13 13:42:35 -04:00
build.properties Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh 2018-11-22 20:31:51 +00:00
plugin.xml Do not allow structured binding initializer referencing introduced name (#241) 2023-01-28 10:54:09 -05:00