int main(void)
{
int try = 0; int i=0; int j=0;
for (i=0; i<10; i++)
{
++try;
for (j=0; j<10; j++)
{
try++;
}
}
}
...in a C file results in a syntax error (in the line with ++try) even
if explicitly stated to be handled as "C" file. One could argue if it is
wise to use C++ keywords in C, but its a false positive. Happened to me
while parsing a third party lib - so its at least not my code...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I forgot to mention that I experienced thisbehaviour in v 1.8.9. However, I'll wait for 1.9.0 - if it's still there I'll report back, otherwise it seems solved. Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
given this code:
int main(void)
{
int try = 0; int i=0; int j=0;
for (i=0; i<10; i++)
{
++try;
for (j=0; j<10; j++)
{
try++;
}
}
}
...in a C file results in a syntax error (in the line with ++try) even
if explicitly stated to be handled as "C" file. One could argue if it is
wise to use C++ keywords in C, but its a false positive. Happened to me
while parsing a third party lib - so its at least not my code...
Yes it is a false positive for sure.
I fail to reproduce with git head but I can reproduce with 1.88 so I guess it has been fixed.
I forgot to mention that I experienced thisbehaviour in v 1.8.9. However, I'll wait for 1.9.0 - if it's still there I'll report back, otherwise it seems solved. Thank you!