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
279 stars 62 forks source link

SymbolResolver: use `symbols` instead of `fields` for resolving member expressions #1763

Open maximiliankaul opened 6 days ago

maximiliankaul commented 6 days ago

This would avoid ugly workarounds with fields / functions declared outside of a record. See go / python / (c++???)

maximiliankaul commented 6 days ago

Additionally, findSymbols -> lookupSymbolsByName