Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templated calls inconsistencies when querying #64

Open
0vercl0k opened this issue Aug 17, 2022 · 0 comments
Open

Templated calls inconsistencies when querying #64

0vercl0k opened this issue Aug 17, 2022 · 0 comments

Comments

@0vercl0k
Copy link

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.cc matches a::b::c::d::my_call<std::string>(a1); and my_call(a1); but not the other two lines
  • $ ./target/debug/weggli --cpp '$f<$f2>()' ./test.cc matches my_call<string>(a1); but not the other lines which seems odd as well
  • $ ./target/debug/weggli --cpp '$f<std::string>()' ./test.cc matches my_call<std::string>(a1); but not a::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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant