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
Variable declaration nodes (type: DeclStmt). Finally, declarations of global variables are saved in declaration statement nodes and connected to the source file they are contained in usingIS_FILE_OFedges.
The documentation says:
This does not seem to be the case.
When creating a CPG for
, joern finds thees nodes: https://gist.github.com/m1cm1c/da34d0cb559cf8fba7360ce51b3de0ed If you search for "foo", you will only find:
Both of these are in line 8, meaning that they are about the assignment
foo = argc;
, not about the declaration and definitionint foo = 0;
.The problem seems to be in this repo. The AST created by the code in this repo for the above-mention code is: https://gist.github.com/m1cm1c/4392d54c19e927b998bdf1462fa41573
foo
only occurs in two AST nodes:Again, both of these reference line 8, meaning that they are about
foo
's use, not aboutfoo
's declaration or definition.The text was updated successfully, but these errors were encountered: