You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two issues with declaration statements or declaration sequences. The first one is, that it seems that all declarations in a sequence are assigned the same type. However, this is not entirely correct, if you look at:
int *a, b;
This actually should declare two variables, one with type int* and one with type int. In our CPG, both variables have type int*, which is incorrect.
Second issue is regarding class types that are declared within a simple declaration, i.e.
classA {
} myA;
While the CPG correctly parses the type of the variable myA as A, the declaration statement (if used in a function) only contains a variable declaration for myA, but it should also contain a record declaration for A.
The text was updated successfully, but these errors were encountered:
There are two issues with declaration statements or declaration sequences. The first one is, that it seems that all declarations in a sequence are assigned the same type. However, this is not entirely correct, if you look at:
int *a, b;
This actually should declare two variables, one with type
int*
and one with typeint
. In our CPG, both variables have typeint*
, which is incorrect.Second issue is regarding class types that are declared within a simple declaration, i.e.
While the CPG correctly parses the type of the variable
myA
asA
, the declaration statement (if used in a function) only contains a variable declaration formyA
, but it should also contain a record declaration forA
.The text was updated successfully, but these errors were encountered: