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

Adjusting `HasType` type once a language changes #1526

Closed oxisto closed 1 month ago

oxisto commented 1 month ago

We need to adjust the UnknownType once we know the language, otherwise there is a problem when comparing types. This stems from the fact that we initialise the type property with an unknown type that has a null language.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

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

See analysis details on SonarCloud