Closed dopelsunce closed 4 years ago
Can you paste the exact command you're using? On my machine, when I run the tool with the flag -alltypes
on the following code:
int a[10];
int b[] = {1};
it converts to:
int a _Checked[10];
int b _Checked[1] = {1};
Running without -alltypes
enabled results in no conversion occurring.
Never mind, I invoked cconv-standalone
from the wrong path so I was using the old version checked into the master branch. I was able to get the same results as yours after fixing the path.
Thanks!
Hi, nice tool! Not sure if my configuration is correct, but I encountered this issue.
Gets translated to the following if
a
is in the external scope and not used in the code:But I expect
a
to keep its size, regardless of whether it is used:Similarly,
int a[] = { 1 };
gets translated to_Ptr<int> a = { 1 };
. The latter triggers a compiler error:I'm using the BigRefactor branch, with
-alltypes
enabled.