Fraunhofer-AISEC / cpg

A library to extract Code Property Graphs from C/C++, Java, Go, Python, Ruby and every other language through LLVM-IR.
https://fraunhofer-aisec.github.io/cpg/
Apache License 2.0
246 stars 59 forks source link

Adding some nodes to the AST subtree that prob should be there #1550

Closed konradweiss closed 2 weeks ago

konradweiss commented 2 weeks ago

We noticed that when the elements in a RangedExpression where not properly returned by SubgraphWalker.flattenAST which created issues together with other methods. I went over all nodes and tried to identify fields that should also have the @AST annotation.

They should not, if they are already part of the AST in some other subtree and are only referenced here.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
75.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud