In C23 standard the auto keyword allows type inference doing pretty much the same job as __auto_type GNU extension. The latter is supported by your extension and if I hover my mouse over declared variable I see that the type is infered correctly.
But if I change __auto_type to auto an error is yield:
This code compiles and works correctly with -std=c2x flag.
Since __auto_type is already supported, can auto behave the same way if C standard parameter is set to c23?
C standard is set to
c23
in extension settings.In C23 standard the
auto
keyword allows type inference doing pretty much the same job as__auto_type
GNU extension. The latter is supported by your extension and if I hover my mouse over declared variable I see that the type is infered correctly.But if I change
__auto_type
toauto
an error is yield: This code compiles and works correctly with-std=c2x
flag.Since
__auto_type
is already supported, canauto
behave the same way if C standard parameter is set toc23
?