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
248 stars 60 forks source link

C++ frontend does not detect function overloading of const/non-const methods #1483

Closed oxisto closed 1 month ago

oxisto commented 2 months ago

In C++ you can overload the same function signature with a variant that is const (and then has a MyClass* const receiver) and a non-const variant. Currently, for us, we see the functions, but they have an identical function signature, since we do not take the const into account.

This might not be so trivial to solve.