weggli-rs / weggli

weggli is a fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.
Apache License 2.0
2.34k stars 130 forks source link

Templated calls inconsistencies when querying #64

Open 0vercl0k opened 2 years ago

0vercl0k commented 2 years ago

Hi!

First of all, thank you for such a fun tool to use - I've been enjoying it!

So I am not 100% sure what is expected, what isn't but it feels to me there is something going wrong. Here is my a.cc test case:

void foo(const int32_t a1) {
        const auto &a = a::b::c::d::my_call<std::string>(a1);
        auto b = my_call<std::string>(a1);
        auto c = my_call(a1);
        auto d = my_call<string>(a1);
}

And here are the queries with their associated results:

Maybe I am doing something wrong 😅? Let me know if you need anything more from me.

Cheers