weggli
weggli copied to clipboard
Templated calls inconsistencies when querying
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:
$ ./target/debug/weggli --cpp '$f()' ./test.ccmatchesa::b::c::d::my_call<std::string>(a1);andmy_call(a1);but not the other two lines$ ./target/debug/weggli --cpp '$f<$f2>()' ./test.ccmatchesmy_call<string>(a1);but not the other lines which seems odd as well$ ./target/debug/weggli --cpp '$f<std::string>()' ./test.ccmatchesmy_call<std::string>(a1);but nota::b::c::d::my_call<std::string>(a1);
Maybe I am doing something wrong 😅? Let me know if you need anything more from me.
Cheers